27 #ifndef _CEGUIFalEventLinkDefinition_h_
28 #define _CEGUIFalEventLinkDefinition_h_
30 #include "../String.h"
31 #include "../IteratorBase.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
43 class CEGUIEXPORT EventLinkDefinition :
44 public AllocatedObject<EventLinkDefinition>
47 EventLinkDefinition(
const String& event_name);
48 ~EventLinkDefinition();
51 void addLinkTarget(
const String& widget,
const String& event);
53 void clearLinkTargets();
56 void initialiseWidget(Window& window)
const;
59 void cleanUpWidget(Window& window)
const;
62 void setName(
const String& name);
64 const String& getName()
const;
68 Window* getTargetWindow(Window& start_wnd,
69 const String& name)
const;
74 typedef std::pair<String,String> StringPair;
76 typedef std::vector<StringPair CEGUI_VECTOR_ALLOC(StringPair)> LinkTargetCollection;
79 LinkTargetCollection d_targets;
81 typedef ConstVectorIterator<LinkTargetCollection> LinkTargetIterator;
82 LinkTargetIterator getLinkTargetIterator()
const;
91 #endif // end of guard _CEGUIFalEventLinkDefinition_h_