30 #ifndef _CEGUILayoutContainer_h_
31 #define _CEGUILayoutContainer_h_
33 #include "../CEGUIWindow.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
85 void markNeedsLayouting();
91 bool needsLayouting()
const;
97 virtual void layout() = 0;
104 virtual void layoutIfNecessary();
107 virtual Rect getUnclippedInnerRect_impl(
void)
const;
110 virtual void update(
float elapsed);
114 virtual Rect getClientChildWindowContentArea_impl()
const;
119 if (class_name ==
"LayoutContainer")
return true;
124 size_t getIdxOfChildWindow(
Window* wnd)
const;
127 virtual void addChild_impl(
Window* wnd);
129 virtual void removeChild_impl(
Window* wnd);
143 virtual bool handleChildSized(
const EventArgs& e);
154 virtual bool handleChildMarginChanged(
const EventArgs& e);
165 virtual bool handleChildAdded(
const EventArgs& e);
176 virtual bool handleChildRemoved(
const EventArgs& e);
194 bool d_needsLayouting;
196 typedef std::multimap<Window*, Event::Connection> ConnectionTracker;
203 #if defined(_MSC_VER)
204 # pragma warning(pop)
207 #endif // end of guard _CEGUILayoutContainer_h_
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUILayoutContainer.h:117
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIWindow.h:3928
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUILayoutContainer.h:54
ConnectionTracker d_eventConnections
Tracks event connections we make.
Definition: CEGUILayoutContainer.h:198
static const String EventNamespace
Namespace for global events.
Definition: CEGUILayoutContainer.h:61
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44
String class used within the GUI system.
Definition: CEGUIString.h:57
Two dimensional vector class built using unified dimensions (UDims). The UVector2 class is used for r...
Definition: CEGUIUDim.h:128