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