Crazy Eddie's GUI System
0.8.7
|
29 #ifndef _CEGUILayoutContainer_h_
30 #define _CEGUILayoutContainer_h_
32 #include "../Window.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
116 Rectf getClientChildContentArea_impl(
bool skipAllPixelAlignment)
const;
118 size_t getIdxOfChild(
Window* wnd)
const;
191 bool d_needsLayouting;
193 typedef std::multimap<Window*, Event::Connection> ConnectionTracker;
202 #if defined(_MSC_VER)
203 # pragma warning(pop)
206 #endif // end of guard _CEGUILayoutContainer_h_
LayoutContainer(const String &type, const String &name)
Constructor for Window base class.
virtual void notifyScreenAreaChanged(bool recursive)
Inform the window, and optionally all children, that screen area rectangles have changed.
virtual ~LayoutContainer(void)
Destructor for Window base class.
virtual bool handleChildAdded(const EventArgs &e)
Handler called when child window gets added.
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: Element.h:211
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: LayoutContainer.h:54
virtual void layout()=0
(re)layouts all windows inside this layout container immediately
void markNeedsLayouting()
marks this layout container for relayouting before drawing
static const String EventNamespace
Namespace for global events.
Definition: LayoutContainer.h:60
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
virtual UVector2 getBoundingSizeForWindow(Window *window) const
returns bounding size for window, including margins
ConnectionTracker d_eventConnections
Tracks event connections we make.
Definition: LayoutContainer.h:195
virtual const CachedRectf & getClientChildContentArea() const
Return a Rect that is used by client child elements as content area.
virtual bool handleChildRemoved(const EventArgs &e)
Handler called when child window gets removed.
virtual void update(float elapsed)
Cause window to update itself and any attached children. Client code does not need to call this metho...
void onParentSized(ElementEventArgs &e)
Handler called when this window's parent window has been resized. If this window is the root / GUI Sh...
virtual bool handleChildSized(const EventArgs &e)
Handler called when child window gets sized.
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
virtual void removeChild_impl(Element *element)
Remove given element from child list.
virtual bool handleChildMarginChanged(const EventArgs &e)
Handler called when child window changes margin(s)
virtual UVector2 getOffsetForWindow(Window *window) const
returns margin offset for given window
String class used within the GUI system.
Definition: String.h:64
bool needsLayouting() const
returns true if this layout container will be relayouted before drawing
virtual void addChild_impl(Element *element)
Add given element to child list at an appropriate position.
virtual void layoutIfNecessary()
(re)layouts all windows inside this layout container if it was marked necessary
A tiny wrapper to hide some of the dirty work of rect caching.
Definition: Element.h:315
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
A positioned and sized rectangular node in a tree graph.
Definition: Element.h:246
virtual Rectf getUnclippedInnerRect_impl(bool skipAllPixelAlignment) const
Default implementation of function to return Element's inner rect area.