28 #ifndef _CEGUIFalWidgetLookFeel_h_
29 #define _CEGUIFalWidgetLookFeel_h_
31 #include "./StateImagery.h"
32 #include "./WidgetComponent.h"
33 #include "./ImagerySection.h"
34 #include "./PropertyInitialiser.h"
35 #include "./PropertyDefinition.h"
36 #include "./PropertyLinkDefinition.h"
37 #include "./EventLinkDefinition.h"
38 #include "./NamedArea.h"
39 #include "./NamedDefinitionCollator.h"
43 # pragma warning(push)
44 # pragma warning(disable : 4251)
91 const String& getName()
const;
106 void renameImagerySection(
const String& oldName,
const String& newName);
151 void clearImagerySections();
160 void clearWidgetComponents();
169 void clearStateSpecifications();
178 void clearPropertyInitialisers();
191 void initialiseWidget(
Window& widget)
const;
204 void cleanUpWidget(
Window& widget)
const;
220 bool isStateImageryPresent(
const String& state)
const;
232 void addNamedArea(
const NamedArea& area);
241 void clearNamedAreas();
256 void renameNamedArea(
const String& oldName,
const String& newName);
273 bool isNamedAreaDefined(
const String& name)
const;
286 void layoutChildWidgets(
const Window& owner)
const;
319 void clearPropertyDefinitions();
328 void clearPropertyLinkDefinitions();
339 void addAnimationName(
const String& anim_name);
345 void clearEventLinkDefinitions();
401 WidgetComponent* retrieveWidgetComponentFromList(
const String& name,
bool includeInheritedElements =
false);
481 CEGUI_SET_ALLOC(String)> StringSet;
514 typedef std::vector<PropertyInitialiser
518 typedef std::vector<PropertyDefinitionBase*
521 typedef std::vector<PropertyDefinitionBase*
538 return d_propertyDefinitions;
553 return d_propertyLinkDefinitions;
571 bool handleFontRenderSizeChange(
Window& window,
const Font* font)
const;
588 StateImageryPointerMap getStateImageryMap(
bool includeInheritedElements =
false);
603 ImagerySectionPointerMap getImagerySectionMap(
bool includeInheritedElements =
false);
618 NamedAreaPointerMap getNamedAreaMap(
bool includeInheritedElements =
false);
633 WidgetComponentPointerMap getWidgetComponentMap(
bool includeInheritedElements =
false);
648 PropertyInitialiserPointerMap getPropertyInitialiserMap(
bool includeInheritedElements =
false);
663 PropertyDefinitionBasePointerMap getPropertyDefinitionMap(
bool includeInheritedElements =
false);
678 PropertyDefinitionBasePointerMap getPropertyLinkDefinitionMap(
bool includeInheritedElements =
false);
693 EventLinkDefinitionPointerMap getEventLinkDefinitionMap(
bool includeInheritedElements =
false);
704 StringSet getStateImageryNames(
bool inherits =
false)
const;
706 StringSet getStateNames(
bool inherits =
false)
const;
707 StringSet getImagerySectionNames(
bool inherits =
false)
const;
709 StringSet getImageryNames(
bool inherits =
false)
const;
710 StringSet getNamedAreaNames(
bool inherits =
false)
const;
711 StringSet getWidgetComponentNames(
bool inherits =
false)
const;
713 StringSet getWidgetNames(
bool inherits =
false)
const;
714 StringSet getPropertyInitialiserNames(
bool inherits =
false)
const;
715 StringSet getPropertyDefinitionNames(
bool inherits =
false)
const;
716 StringSet getPropertyLinkDefinitionNames(
bool inherits =
false)
const;
717 StringSet getEventLinkDefinitionNames(
bool inherits =
false)
const;
718 StringSet getAnimationNames(
bool inherits =
false)
const;
733 CEGUI_MAP_ALLOC(String, StateImagery)> StateList;
735 CEGUI_MAP_ALLOC(String, ImagerySection)> ImageryList;
737 CEGUI_MAP_ALLOC(String, NamedArea)> NamedAreaList;
740 typedef std::vector<WidgetComponent
741 CEGUI_VECTOR_ALLOC(WidgetComponent)> WidgetList;
743 typedef std::vector<String
744 CEGUI_VECTOR_ALLOC(String)> AnimationList;
746 typedef std::multimap<
Window*, AnimationInstance*
747 > AnimationInstanceMap;
750 typedef std::vector<EventLinkDefinition
751 CEGUI_VECTOR_ALLOC(EventLinkDefinition)> EventLinkDefinitionList;
758 ImageryList d_imagerySections;
760 WidgetList d_childWidgets;
762 StateList d_stateImagery;
764 PropertyList d_properties;
766 NamedAreaList d_namedAreas;
768 mutable PropertyDefinitionList d_propertyDefinitions;
770 mutable PropertyLinkDefinitionList d_propertyLinkDefinitions;
772 AnimationList d_animations;
774 mutable AnimationInstanceMap d_animationInstances;
776 EventLinkDefinitionList d_eventLinkDefinitions;
786 CEGUI_SET_ALLOC(String)> AnimationNameSet;
790 void appendChildWidgetComponents(WidgetComponentCollator& col,
bool inherits =
true)
const;
791 void appendPropertyDefinitions(PropertyDefinitionCollator& col,
bool inherits =
true)
const;
792 void appendPropertyLinkDefinitions(PropertyLinkDefinitionCollator& col,
bool inherits =
true)
const;
793 void appendPropertyInitialisers(PropertyInitialiserCollator& col,
bool inherits =
true)
const;
794 void appendEventLinkDefinitions(EventLinkDefinitionCollator& col,
bool inherits =
true)
const;
795 void appendAnimationNames(AnimationNameSet& set,
bool inherits =
true)
const;
831 StateIterator getStateIterator(
bool inherits =
false)
const;
839 ImageryIterator getImageryIterator(
bool inherits =
false)
const;
848 NamedAreaIterator getNamedAreaIterator(
bool inherits =
false)
const;
857 WidgetComponentIterator getWidgetComponentIterator(
bool inherits =
false)
const;
866 PropertyDefinitionIterator getPropertyDefinitionIterator(
bool inherits =
false)
const;
875 PropertyLinkDefinitionIterator getPropertyLinkDefinitionIterator(
bool inherits =
false)
const;
884 PropertyInitialiserIterator getPropertyInitialiserIterator(
bool inherits =
false)
const;
893 EventLinkDefinitionIterator getEventLinkDefinitionIterator(
bool inherits =
false)
const;
902 AnimationNameIterator getAnimationNameIterator(
bool inherits =
false)
const;
908 #if defined(_MSC_VER)
909 # pragma warning(pop)
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5579
void CEGUIEXPORT swap(String &str1, String &str2)
Swap the contents for two String objects.
common base class used for types representing a new property to be available on all widgets that use ...
Definition: PropertyDefinitionBase.h:42
Definition: MemoryAllocatedObject.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
iterator for vectors
Definition: IteratorBase.h:287
NamedArea defines an area for a component which may later be obtained and referenced by a name unique...
Definition: NamedArea.h:40
Class the encapsulates imagery for a given widget state.
Definition: StateImagery.h:46
Class that holds information about a property and it's required initial value.
Definition: PropertyInitialiser.h:40
Class that encapsulates a typeface.
Definition: Font.h:58
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Helper container used to implement inherited collections of component definitions specified in a Widg...
Definition: NamedDefinitionCollator.h:47
iterator class for maps
Definition: IteratorBase.h:196
Class used to create XML Document.
Definition: XMLSerializer.h:85
Class that encapsulates a re-usable collection of imagery specifications.
Definition: ImagerySection.h:47
Definition: EventLinkDefinition.h:43
Defines an 'animation instance' class.
Definition: AnimationInstance.h:73
String class used within the GUI system.
Definition: String.h:62