Crazy Eddie's GUI System
0.8.1
|
A Layout Container window layouting it's children vertically. More...
Public Member Functions | |
VerticalLayoutContainer (const String &type, const String &name) | |
Constructor for GUISheet windows. | |
virtual | ~VerticalLayoutContainer (void) |
Destructor for GUISheet windows. | |
virtual void | layout () |
(re)layouts all windows inside this layout container immediately More... | |
Public Member Functions inherited from CEGUI::SequentialLayoutContainer | |
SequentialLayoutContainer (const String &type, const String &name) | |
Constructor for Window base class. More... | |
virtual | ~SequentialLayoutContainer (void) |
Destructor for Window base class. | |
size_t | getPositionOfChild (Window *wnd) const |
Gets the position of given child window. | |
size_t | getPositionOfChild (const String &wnd) const |
Gets the position of given child window. | |
Window * | getChildAtPosition (size_t position) const |
Gets the child window that currently is at given position. | |
virtual void | swapChildPositions (size_t wnd1, size_t wnd2) |
Swaps windows at given positions. | |
void | swapChildren (Window *wnd1, Window *wnd2) |
Swaps positions of given windows. | |
void | swapChildren (const String &wnd1, Window *wnd2) |
Swaps positions of given windows. | |
void | swapChildren (Window *wnd1, const String &wnd2) |
Swaps positions of given windows. | |
void | swapChildren (const String &wnd1, const String &wnd2) |
Swaps positions of given windows. | |
virtual void | moveChildToPosition (Window *wnd, size_t position) |
Moves a window that is alrady child of thi layout container to given position (if the window is currently in a position that is smaller than given position, given position is automatically decremented. | |
void | moveChildToPosition (const String &wnd, size_t position) |
Moves a window that is alrady child of thi layout container to given position (if the window is currently in a position that is smaller than given position, given position is automatically decremented. | |
void | moveChild (Window *window, int delta=1) |
Moves a window forward or backward, depending on delta (-1 moves it backward one step, 1 moves it forward one step) More... | |
void | addChildToPosition (Window *window, size_t position) |
Adds a window to given position. | |
void | removeChildFromPosition (size_t position) |
Removes a window from given position. | |
Public Member Functions inherited from CEGUI::LayoutContainer | |
LayoutContainer (const String &type, const String &name) | |
Constructor for Window base class. More... | |
virtual | ~LayoutContainer (void) |
Destructor for Window base class. | |
void | markNeedsLayouting () |
marks this layout container for relayouting before drawing | |
bool | needsLayouting () const |
returns true if this layout container will be relayouted before drawing | |
virtual void | layoutIfNecessary () |
(re)layouts all windows inside this layout container if it was marked necessary | |
virtual void | update (float elapsed) |
Cause window to update itself and any attached children. Client code does not need to call this method; to ensure full, and proper updates, call the injectTimePulse methodname method provided by the System class. More... | |
virtual const CachedRectf & | getClientChildContentArea () const |
Return a Rect that is used by client child elements as content area. More... | |
virtual void | notifyScreenAreaChanged (bool recursive) |
Inform the window, and optionally all children, that screen area rectangles have changed. More... | |
Public Member Functions inherited from CEGUI::Window | |
Window (const String &type, const String &name) | |
Constructor for Window base class. More... | |
virtual | ~Window (void) |
Destructor for Window base class. | |
const String & | getType (void) const |
return a String object holding the type name for this Window. More... | |
bool | isDestroyedByParent (void) const |
returns whether or not this Window is set to be destroyed when its parent window is destroyed. More... | |
bool | isAlwaysOnTop (void) const |
returns whether or not this Window is an always on top Window. Also known as a top-most window. More... | |
bool | isDisabled () const |
return whether the Window is currently disabled More... | |
bool | isEffectiveDisabled () const |
return whether the Window is currently disabled More... | |
bool | isVisible () const |
return true if the Window is currently visible. More... | |
bool | isEffectiveVisible () const |
return true if the Window is currently visible. More... | |
bool | isActive (void) const |
return true if this is the active Window. An active window is a window that may receive user inputs. More... | |
bool | isClippedByParent (void) const |
return true if this Window is clipped so that its rendering will not pass outside of its parent Window area. More... | |
uint | getID (void) const |
return the ID code currently assigned to this Window by client code. More... | |
bool | isChild (uint ID) const |
returns whether at least one window with the given ID code is attached to this Window as a child. More... | |
bool | isChildRecursive (uint ID) const |
returns whether at least one window with the given ID code is attached to this Window or any of it's children as a child. More... | |
Window * | getChildAtIdx (size_t idx) const |
returns a pointer to the child window at the specified index. Idx is the index of the window in the child window list. It is based on the order in which the children were added and is stable. More... | |
Window * | getChild (const String &name_path) const |
return the attached child window that the given name path references. More... | |
Window * | getChildRecursive (const String &name) const |
return a pointer to the first attached child window with the specified name. Children are traversed recursively. More... | |
Window * | getChild (uint ID) const |
return a pointer to the first attached child window with the specified ID value. More... | |
Window * | getChildRecursive (uint ID) const |
return a pointer to the first attached child window with the specified ID value. Children are traversed recursively. More... | |
Window * | getActiveChild (void) |
return a pointer to the Window that currently has input focus starting with this Window. More... | |
const Window * | getActiveChild (void) const |
bool | isAncestor (uint ID) const |
return true if any Window with the given ID is some ancestor of this Window. More... | |
const Font * | getFont (bool useDefault=true) const |
return the active Font object for the Window. More... | |
const String & | getText (void) const |
return the current text for the Window More... | |
const String & | getTextVisual () const |
return text string with visual ordering of glyphs. | |
bool | inheritsAlpha (void) const |
return true if the Window inherits alpha from its parent(s). More... | |
float | getAlpha (void) const |
return the current alpha value set for this Window More... | |
float | getEffectiveAlpha (void) const |
return the effective alpha value that will be used when rendering this window, taking into account inheritance of parent window(s) alpha. More... | |
const Rectf & | getOuterRectClipper () const |
Return a Rect that describes the rendering clipping rect based upon the outer rect area of the window. More... | |
const Rectf & | getInnerRectClipper () const |
Return a Rect that describes the rendering clipping rect based upon the inner rect area of the window. More... | |
const Rectf & | getClipRect (const bool non_client=false) const |
Return a Rect that describes the rendering clipping rect for the Window. More... | |
const Rectf & | getHitTestRect () const |
Return the Rect that descibes the clipped screen area that is used for determining whether this window has been hit by a certain point. More... | |
Window * | getCaptureWindow () const |
return the Window that currently has inputs captured. More... | |
bool | isCapturedByThis (void) const |
return true if this Window has input captured. More... | |
bool | isCapturedByAncestor (void) const |
return true if an ancestor window has captured inputs. More... | |
bool | isCapturedByChild (void) const |
return true if a child window has captured inputs. More... | |
virtual bool | isHit (const Vector2f &position, const bool allow_disabled=false) const |
check if the given pixel position would hit this window. More... | |
Window * | getChildAtPosition (const Vector2f &position) const |
return the child Window that is hit by the given pixel position More... | |
Window * | getTargetChildAtPosition (const Vector2f &position, const bool allow_disabled=false) const |
return the child Window that is 'hit' by the given position, and is allowed to handle mouse events. More... | |
Window * | getParent () const |
return the parent of this Window. More... | |
const Image * | getMouseCursor (bool useDefault=true) const |
Return a pointer to the mouse cursor image to use when the mouse cursor is within this window's area. More... | |
void * | getUserData (void) const |
Return the user data set for this Window. More... | |
bool | restoresOldCapture (void) const |
Return whether this window is set to restore old input capture when it loses input capture. More... | |
bool | isZOrderingEnabled (void) const |
Return whether z-order changes are enabled or disabled for this Window. More... | |
bool | wantsMultiClickEvents (void) const |
Return whether this window will receive multi-click events or multiple 'down' events instead. More... | |
bool | isMouseAutoRepeatEnabled (void) const |
Return whether mouse button down event autorepeat is enabled for this window. More... | |
float | getAutoRepeatDelay (void) const |
Return the current auto-repeat delay setting for this window. More... | |
float | getAutoRepeatRate (void) const |
Return the current auto-repeat rate setting for this window. More... | |
bool | distributesCapturedInputs (void) const |
Return whether the window wants inputs passed to its attached child windows when the window has inputs captured. More... | |
bool | isUsingDefaultTooltip (void) const |
Return whether this Window is using the system default Tooltip for its Tooltip window. More... | |
Tooltip * | getTooltip (void) const |
Return a pointer to the Tooltip object used by this Window. The value returned may point to the system default Tooltip, a custom Window specific Tooltip, or be NULL. More... | |
String | getTooltipType (void) const |
Return the custom tooltip type. More... | |
const String & | getTooltipText (void) const |
Return the current tooltip text set for this Window. More... | |
bool | inheritsTooltipText (void) const |
Return whether this window inherits Tooltip text from its parent when its own tooltip text is not set. More... | |
bool | isRiseOnClickEnabled (void) const |
Return whether this window will rise to the top of the z-order when clicked with the left mouse button. More... | |
GeometryBuffer & | getGeometryBuffer () |
Return the GeometryBuffer object for this Window. More... | |
const String & | getLookNFeel () const |
Get the name of the LookNFeel assigned to this window. More... | |
bool | getModalState (void) const |
Get whether or not this Window is the modal target. More... | |
const String & | getUserString (const String &name) const |
Returns a named user string. More... | |
bool | isUserStringDefined (const String &name) const |
Return whether a user string with the specified name exists. More... | |
Window * | getActiveSibling () |
Returns the active sibling window. More... | |
bool | isMousePassThroughEnabled (void) const |
Returns whether this window should ignore mouse event and pass them through to and other windows behind it. In effect making the window transparent to the mouse. More... | |
bool | isAutoWindow (void) const |
Returns whether this window is an auto window. More... | |
bool | isWritingXMLAllowed (void) const |
Returns whether this window is allowed to write XML. | |
bool | isDragDropTarget () const |
Returns whether this Window object will receive events generated by the drag and drop support in the system. More... | |
void | getRenderingContext (RenderingContext &ctx) const |
Fill in the RenderingContext ctx with details of the RenderingSurface where this Window object should normally do it's rendering. | |
virtual void | getRenderingContext_impl (RenderingContext &ctx) const |
implementation of the default getRenderingContext logic. | |
RenderingSurface * | getRenderingSurface () const |
return the RenderingSurface currently set for this window. May return 0. | |
RenderingSurface & | getTargetRenderingSurface () const |
return the RenderingSurface that will be used by this window as the target for rendering. | |
bool | isUsingAutoRenderingSurface () const |
Returns whether automatic use of an imagery caching RenderingSurface (i.e. a RenderingWindow) is enabled for this window. The reason we emphasise 'automatic' is because the client may manually set a RenderingSurface that does exactly the same job. More... | |
const Window * | getRootWindow () const |
Returns the window at the root of the hierarchy starting at this Window. The root window is defined as the first window back up the hierarchy that has no parent window. More... | |
Window * | getRootWindow () |
virtual void | initialiseComponents (void) |
Initialises the Window based object ready for use. More... | |
void | setDestroyedByParent (bool setting) |
Set whether or not this Window will automatically be destroyed when its parent Window is destroyed. More... | |
void | setAlwaysOnTop (bool setting) |
Set whether this window is always on top, or not. More... | |
void | setEnabled (bool setting) |
Set whether this window is enabled or disabled. A disabled window normally can not be interacted with, and may have different rendering. More... | |
void | setDisabled (bool setting) |
Set whether this window is enabled or disabled. A disabled window normally can not be interacted with, and may have different rendering. More... | |
void | enable (void) |
enable the Window to allow interaction. More... | |
void | disable (void) |
disable the Window to prevent interaction. More... | |
void | setVisible (bool setting) |
Set whether the Window is visible or hidden. More... | |
void | show (void) |
show the Window. More... | |
void | hide (void) |
hide the Window. More... | |
void | activate (void) |
Activate the Window giving it input focus and bringing it to the top of all windows with the same always-on-top settig as this Window. More... | |
void | deactivate (void) |
Deactivate the window. No further inputs will be received by the window until it is re-activated either programmatically or by the user interacting with the gui. More... | |
void | setClippedByParent (bool setting) |
Set whether this Window will be clipped by its parent window(s). More... | |
void | setID (uint ID) |
Set the current ID for the Window. More... | |
void | setText (const String &text) |
Set the current text string for the Window. More... | |
void | insertText (const String &text, const String::size_type position) |
Insert the text string text into the current text string for the Window object at the position specified by position. More... | |
void | appendText (const String &text) |
Append the string text to the currect text string for the Window object. More... | |
void | setFont (const Font *font) |
Set the font used by this Window. More... | |
void | setFont (const String &name) |
Set the font used by this Window. More... | |
void | removeChild (uint ID) |
Remove the first child Window with the specified ID. If there is more than one attached Window objects with the specified ID, only the fist one encountered will be removed. More... | |
Window * | createChild (const String &type, const String &name="") |
Creates a child window attached to this window. More... | |
void | destroyChild (Window *wnd) |
Destroys a child window of this window. More... | |
void | destroyChild (const String &name_path) |
Destroys a child window of this window. More... | |
void | moveToFront () |
Move the Window to the top of the z order. More... | |
void | moveToBack () |
Move the Window to the bottom of the Z order. More... | |
void | moveInFront (const Window *const window) |
Move this window immediately above it's sibling window in the z order. More... | |
void | moveBehind (const Window *const window) |
Move this window immediately behind it's sibling window in the z order. More... | |
size_t | getZIndex () const |
Return the (visual) z index of the window on it's parent. More... | |
bool | isInFront (const Window &wnd) const |
Return whether /a this Window is in front of the given window. More... | |
bool | isBehind (const Window &wnd) const |
Return whether /a this Window is behind the given window. More... | |
bool | captureInput (void) |
Captures input to this window. More... | |
void | releaseInput (void) |
Releases input capture from this Window. If this Window does not have inputs captured, nothing happens. More... | |
void | setRestoreOldCapture (bool setting) |
Set whether this window will remember and restore the previous window that had inputs captured. More... | |
void | setAlpha (const float alpha) |
Set the current alpha value for this window. More... | |
void | setInheritsAlpha (bool setting) |
Sets whether this Window will inherit alpha from its parent windows. More... | |
void | invalidate (void) |
Invalidate this window causing at least this window to be redrawn during the next rendering pass. More... | |
void | invalidate (const bool recursive) |
Invalidate this window and - dependant upon recursive - all child content, causing affected windows to be redrawn during the next rendering pass. More... | |
void | setMouseCursor (const Image *image) |
Set the mouse cursor image to be used when the mouse enters this window. More... | |
void | setMouseCursor (const String &name) |
Set the mouse cursor image to be used when the mouse enters this window. More... | |
void | setUserData (void *user_data) |
Set the user data set for this Window. More... | |
void | setZOrderingEnabled (bool setting) |
Set whether z-order changes are enabled or disabled for this Window. More... | |
void | setWantsMultiClickEvents (bool setting) |
Set whether this window will receive multi-click events or multiple 'down' events instead. More... | |
void | setMouseAutoRepeatEnabled (bool setting) |
Set whether mouse button down event autorepeat is enabled for this window. More... | |
void | setAutoRepeatDelay (float delay) |
Set the current auto-repeat delay setting for this window. More... | |
void | setAutoRepeatRate (float rate) |
Set the current auto-repeat rate setting for this window. More... | |
void | setDistributesCapturedInputs (bool setting) |
Set whether the window wants inputs passed to its attached child windows when the window has inputs captured. More... | |
void | notifyDragDropItemEnters (DragContainer *item) |
Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer class. | |
void | notifyDragDropItemLeaves (DragContainer *item) |
Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer class. | |
void | notifyDragDropItemDropped (DragContainer *item) |
Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer class. | |
virtual void | destroy (void) |
Internal destroy method which actually just adds the window and any parent destructed child windows to the dead pool. More... | |
void | setTooltip (Tooltip *tooltip) |
Set the custom Tooltip object for this Window. This value may be 0 to indicate that the Window should use the system default Tooltip object. More... | |
void | setTooltipType (const String &tooltipType) |
Set the custom Tooltip to be used by this Window by specifying a Window type. More... | |
void | setTooltipText (const String &tip) |
Set the tooltip text for this window. More... | |
void | setInheritsTooltipText (bool setting) |
Set whether this window inherits Tooltip text from its parent when its own tooltip text is not set. More... | |
void | setRiseOnClickEnabled (bool setting) |
Set whether this window will rise to the top of the z-order when clicked with the left mouse button. More... | |
virtual void | setLookNFeel (const String &look) |
Set the LookNFeel that shoule be used for this window. More... | |
void | setModalState (bool state) |
Set the modal state for this Window. More... | |
virtual void | performChildWindowLayout (bool nonclient_sized_hint=false, bool client_sized_hint=false) |
Layout child window content. More... | |
void | setUserString (const String &name, const String &value) |
Sets the value a named user string, creating it as required. More... | |
void | render () |
Causes the Window object to render itself and all of it's attached children. More... | |
virtual bool | performCopy (Clipboard &clipboard) |
Asks the widget to perform a clipboard copy to the provided clipboard. More... | |
virtual bool | performCut (Clipboard &clipboard) |
Asks the widget to perform a clipboard cut to the provided clipboard. More... | |
virtual bool | performPaste (Clipboard &clipboard) |
Asks the widget to perform a clipboard paste from the provided clipboard. More... | |
virtual void | writeXMLToStream (XMLSerializer &xml_stream) const |
Writes an xml representation of this window object to out_stream. More... | |
virtual void | beginInitialisation (void) |
Sets the internal 'initialising' flag to true. This can be use to optimize initialisation of some widgets, and is called automatically by the layout XML handler when it has created a window. That is just after the window has been created, but before any children or properties are read. | |
virtual void | endInitialisation (void) |
Sets the internal 'initialising' flag to false. This is called automatically by the layout XML handler when it is done creating a window. That is after all properties and children have been loaded and just before the next sibling gets created. | |
void | setMousePassThroughEnabled (bool setting) |
Sets whether this window should ignore mouse events and pass them through to any windows behind it. In effect making the window transparent to the mouse. More... | |
void | setWindowRenderer (const String &name) |
Assign the WindowRenderer type to be used when rendering this window. More... | |
WindowRenderer * | getWindowRenderer (void) const |
Get the currently assigned WindowRenderer. (Look'N'Feel specification). More... | |
const String & | getWindowRendererName () const |
Get the factory name of the currently assigned WindowRenderer. (Look'N'Feel specification). More... | |
void | setWritingXMLAllowed (bool allow) |
Sets whether this window is allowed to write XML. | |
void | setFalagardType (const String &type, const String &rendererType="") |
Changes the widget's falagard type, thus changing its look'n'feel and optionally its renderer in the process. More... | |
void | setDragDropTarget (bool setting) |
Specifies whether this Window object will receive events generated by the drag and drop support in the system. More... | |
void | setRenderingSurface (RenderingSurface *surface) |
Set the RenderingSurface to be associated with this Window, or 0 if none is required. More... | |
void | invalidateRenderingSurface () |
Invalidate the chain of rendering surfaces from this window backwards to ensure they get properly redrawn - but doing the minimum amount of work possibe - next render. | |
void | setUsingAutoRenderingSurface (bool setting) |
Sets whether automatic use of an imagery caching RenderingSurface (i.e. a RenderingWindow) is enabled for this window. The reason we emphasise 'atutomatic' is because the client may manually set a RenderingSurface that does exactlythe same job. More... | |
const RenderedString & | getRenderedString () const |
Return the parsed RenderedString object for this window. | |
RenderedStringParser * | getCustomRenderedStringParser () const |
Return a pointer to any custom RenderedStringParser set, or 0 if none. | |
void | setCustomRenderedStringParser (RenderedStringParser *parser) |
Set a custom RenderedStringParser, or 0 to remove an existing one. | |
virtual RenderedStringParser & | getRenderedStringParser () const |
return the active RenderedStringParser to be used | |
bool | isTextParsingEnabled () const |
return whether text parsing is enabled for this window. | |
void | setTextParsingEnabled (const bool setting) |
set whether text parsing is enabled for this window. | |
virtual void | setMargin (const UBox &margin) |
set margin | |
const UBox & | getMargin () const |
retrieves currently set margin | |
Vector2f | getUnprojectedPosition (const Vector2f &pos) const |
return Vector2 pos after being fully unprojected for this Window. | |
const BidiVisualMapping * | getBidiVisualMapping () const |
return the pointer to the BidiVisualMapping for this window, if any. | |
void | banPropertyFromXML (const String &property_name) |
Add the named property to the XML ban list for this window. More... | |
void | unbanPropertyFromXML (const String &property_name) |
Remove the named property from the XML ban list for this window. | |
bool | isPropertyBannedFromXML (const String &property_name) const |
Return whether the named property is banned from XML. More... | |
void | banPropertyFromXML (const Property *property) |
Add the given property to the XML ban list for this window. | |
void | unbanPropertyFromXML (const Property *property) |
Remove the given property from the XML ban list for this window. | |
bool | isPropertyBannedFromXML (const Property *property) const |
Return whether given property is banned from XML. More... | |
void | setUpdateMode (const WindowUpdateMode mode) |
Set the window update mode. This mode controls the behaviour of the Window::update member function such that updates are processed for this window (and therefore it's child content) according to the set mode. More... | |
WindowUpdateMode | getUpdateMode () const |
Return the current window update mode that is set for this Window. This mode controls the behaviour of the Window::update member function such that updates are processed for this window (and therefore it's child content) according to the set mode. More... | |
void | setMouseInputPropagationEnabled (const bool enabled) |
Set whether mouse input that is not directly handled by this Window (including it's event subscribers) should be propagated back to the Window's parent. More... | |
bool | isMouseInputPropagationEnabled () const |
Return whether mouse input that is not directly handled by this Window (including it's event subscribers) should be propagated back to the Window's parent. More... | |
Window * | clone (const bool deepCopy=true) const |
Clones this Window and returns the result. More... | |
virtual void | clonePropertiesTo (Window &target) const |
copies this widget's properties to given target widget | |
virtual void | cloneChildWidgetsTo (Window &target) const |
copies this widget's child widgets to given target widget | |
GUIContext & | getGUIContext () const |
return the GUIContext this window is associated with. | |
void | setGUIContext (GUIContext *context) |
function used internally. Do not call this from client code. | |
void | syncTargetSurface () |
ensure that the window will be rendered to the correct target surface. | |
void | setAutoWindow (bool is_auto) |
Set whether this window is marked as an auto window. More... | |
bool | isMouseContainedInArea () const |
Return whether Window thinks mouse is currently within its area. More... | |
const Sizef & | getRootContainerSize () const |
Return the size of the root container (such as screen size). More... | |
Public Member Functions inherited from CEGUI::NamedElement | |
NamedElement (const String &name="") | |
Constructor. More... | |
virtual | ~NamedElement () |
Destructor. | |
virtual void | setName (const String &name) |
Renames the element. More... | |
const String & | getName () const |
Return a String object holding the name of this Element. | |
String | getNamePath () const |
Return a String object that describes the name path for this Element. | |
bool | isChild (const String &name_path) const |
Checks whether given name path references a NamedElement that is attached to this Element. More... | |
bool | isChildRecursive (const String &name) const |
returns whether at least one window with the given name is attached to this Window or any of it's children as a child. More... | |
bool | isAncestor (const String &name) const |
Return true if the specified element name is a name of some ancestor of this Element. More... | |
NamedElement * | getChildElement (const String &name_path) const |
Return the attached child element that the given name path references. More... | |
NamedElement * | getChildElementRecursive (const String &name) const |
Find the first child with the given name, recursively and breadth-first. More... | |
void | removeChild (const String &name_path) |
Remove the Element referenced by the given name path from this Element's child list. More... | |
Public Member Functions inherited from CEGUI::Element | |
Element () | |
Constructor. | |
virtual | ~Element () |
Destructor. | |
Element * | getParentElement () const |
Retrieves parent of this element. More... | |
virtual void | setArea (const UVector2 &pos, const USize &size) |
Set the Element area. More... | |
void | setArea (const UDim &xpos, const UDim &ypos, const UDim &width, const UDim &height) |
void | setArea (const URect &area) |
const URect & | getArea () const |
Return the element's area. More... | |
void | setPosition (const UVector2 &pos) |
Set the element's position. More... | |
void | setXPosition (const UDim &pos) |
void | setYPosition (const UDim &pos) |
const UVector2 & | getPosition () const |
Get the element's position. More... | |
const UDim & | getXPosition () const |
const UDim & | getYPosition () const |
virtual void | setHorizontalAlignment (const HorizontalAlignment alignment) |
Set the horizontal alignment. More... | |
HorizontalAlignment | getHorizontalAlignment () const |
Get the horizontal alignment. More... | |
virtual void | setVerticalAlignment (const VerticalAlignment alignment) |
Set the vertical alignment. More... | |
VerticalAlignment | getVerticalAlignment () const |
Get the vertical alignment. More... | |
void | setSize (const USize &size) |
Set the element's size. More... | |
void | setWidth (const UDim &width) |
void | setHeight (const UDim &height) |
USize | getSize () const |
Get the element's size. More... | |
UDim | getWidth () const |
UDim | getHeight () const |
void | setMinSize (const USize &size) |
Set the element's minimum size. More... | |
const USize & | getMinSize () const |
Get the element's minimum size. More... | |
void | setMaxSize (const USize &size) |
Set the element's maximum size. More... | |
const USize & | getMaxSize () const |
Get the element's maximum size. More... | |
void | setAspectMode (const AspectMode mode) |
Sets current aspect mode and recalculates the area rect. More... | |
AspectMode | getAspectMode () const |
Retrieves currently used aspect mode. More... | |
void | setAspectRatio (const float ratio) |
Sets target aspect ratio. More... | |
float | getAspectRatio () const |
Retrieves target aspect ratio. More... | |
void | setPixelAligned (const bool setting) |
Sets whether this Element is pixel aligned (both position and size, basically the 4 "corners"). More... | |
bool | isPixelAligned () const |
Checks whether this Element is pixel aligned. More... | |
const Vector2f & | getPixelPosition () const |
Return the element's absolute (or screen, depending on the type of the element) position in pixels. More... | |
const Sizef & | getPixelSize () const |
Return the element's size in pixels. More... | |
Sizef | calculatePixelSize (bool skipAllPixelAlignment=false) const |
Calculates this element's pixel size. More... | |
Sizef | getParentPixelSize (bool skipAllPixelAlignment=false) const |
Return the pixel size of the parent element. More... | |
void | setRotation (const Quaternion &rotation) |
sets rotation of this widget More... | |
const Quaternion & | getRotation () const |
retrieves rotation of this widget More... | |
void | addChild (Element *element) |
Add the specified Element as a child of this Element. More... | |
void | removeChild (Element *element) |
Remove the Element Element's child list. More... | |
Element * | getChildElementAtIdx (size_t idx) const |
return a pointer to the child element that is attached to 'this' at the given index. More... | |
size_t | getChildCount () const |
Returns number of child elements attached to this Element. | |
bool | isChild (const Element *element) const |
Checks whether given element is attached to this Element. | |
bool | isAncestor (const Element *element) const |
Checks whether the specified Element is an ancestor of this Element. More... | |
void | setNonClient (const bool setting) |
Set whether the Element is non-client. More... | |
bool | isNonClient () const |
Checks whether this element was set to be non client. More... | |
const CachedRectf & | getUnclippedOuterRect () const |
Return a Rect that describes the unclipped outer rect area of the Element. More... | |
const CachedRectf & | getUnclippedInnerRect () const |
Return a Rect that describes the unclipped inner rect area of the Element. More... | |
const CachedRectf & | getUnclippedRect (const bool inner) const |
Return a Rect that describes the unclipped area covered by the Element. More... | |
virtual const CachedRectf & | getNonClientChildContentArea () const |
Return a Rect that is used by client child elements as content area. More... | |
const CachedRectf & | getChildContentArea (const bool non_client=false) const |
Return a Rect that is used to position and size child elements. More... | |
Public Member Functions inherited from CEGUI::PropertySet | |
PropertySet (void) | |
Constructs a new PropertySet object. | |
virtual | ~PropertySet (void) |
Destructor for PropertySet objects. | |
void | addProperty (Property *property) |
Adds a new Property to the PropertySet. More... | |
void | removeProperty (const String &name) |
Removes a Property from the PropertySet. More... | |
Property * | getPropertyInstance (const String &name) const |
Retrieves a property instance (that was previously added) More... | |
void | clearProperties (void) |
Removes all Property objects from the PropertySet. More... | |
bool | isPropertyPresent (const String &name) const |
Checks to see if a Property with the given name is in the PropertySet. More... | |
const String & | getPropertyHelp (const String &name) const |
Return the help text for the specified Property. More... | |
String | getProperty (const String &name) const |
Gets the current value of the specified Property. More... | |
template<typename T > | |
PropertyHelper< T >::return_type | getProperty (const String &name) const |
Gets the current value of the specified Property. More... | |
void | setProperty (const String &name, const String &value) |
Sets the current value of a Property. More... | |
template<typename T > | |
void | setProperty (const String &name, typename PropertyHelper< T >::pass_type value) |
Sets the current value of a Property. More... | |
bool | isPropertyDefault (const String &name) const |
Returns whether a Property is at it's default value. More... | |
String | getPropertyDefault (const String &name) const |
Returns the default value of a Property as a String. More... | |
PropertyIterator | getPropertyIterator (void) const |
Return a PropertySet::PropertyIterator object to iterate over the available Properties. | |
Public Member Functions inherited from CEGUI::EventSet | |
EventSet () | |
Constructor for EventSet objects. | |
virtual | ~EventSet (void) |
Destructor for EventSet objects. | |
void | addEvent (const String &name) |
Creates a new Event object with the given name and adds it to the EventSet. More... | |
void | addEvent (Event &event) |
Adds the given Event object to the EventSet. Ownership of the object passes to EventSet and it will be deleted when it is removed from the EventSet - whether explicitly via removeEvent or when the EventSet is destroyed. More... | |
void | removeEvent (const String &name) |
Removes the Event with the given name. All connections to the event are disconnected, and the underlying Event object is destroyed. More... | |
void | removeEvent (Event &event) |
Removes the given event from the EventSet. All connections to the event are disconnected, and the event object is destroyed. More... | |
void | removeAllEvents (void) |
Remove all Event objects from the EventSet. Add connections will be disconnected, and all Event objects destroyed. | |
bool | isEventPresent (const String &name) |
Checks to see if an Event with the given name is present in this EventSet. More... | |
virtual Event::Connection | subscribeEvent (const String &name, Event::Subscriber subscriber) |
Subscribes a handler to the named Event. If the named Event is not yet present in the EventSet, it is created and added. More... | |
virtual Event::Connection | subscribeEvent (const String &name, Event::Group group, Event::Subscriber subscriber) |
Subscribes a handler to the specified group of the named Event. If the named Event is not yet present in the EventSet, it is created and added. More... | |
template<typename Arg1 , typename Arg2 > | |
Event::Connection | subscribeEvent (const String &name, Arg1 arg1, Arg2 arg2) |
Subscribes a handler to the named Event. If the named Event is not yet present in the EventSet, it is created and added. More... | |
template<typename Arg1 , typename Arg2 > | |
Event::Connection | subscribeEvent (const String &name, Event::Group group, Arg1 arg1, Arg2 arg2) |
Subscribes a handler to the named Event. If the named Event is not yet present in the EventSet, it is created and added. More... | |
virtual Event::Connection | subscribeScriptedEvent (const String &name, const String &subscriber_name) |
Subscribes the named Event to a scripted funtion. More... | |
virtual Event::Connection | subscribeScriptedEvent (const String &name, Event::Group group, const String &subscriber_name) |
Subscribes the specified group of the named Event to a scripted funtion. More... | |
virtual void | fireEvent (const String &name, EventArgs &args, const String &eventNamespace="") |
Fires the named event passing the given EventArgs object. More... | |
bool | isMuted (void) const |
Return whether the EventSet is muted or not. More... | |
void | setMutedState (bool setting) |
Set the mute state for this EventSet. More... | |
Event * | getEventObject (const String &name, bool autoAdd=false) |
Return a pointer to the Event object with the given name, optionally adding such an Event object to the EventSet if it does not already exist. More... | |
EventIterator | getEventIterator (void) const |
Return a EventSet::EventIterator object to iterate over the events currently added to the EventSet. | |
Static Public Attributes | |
static const String | WidgetTypeName |
The unique typename of this widget. | |
Static Public Attributes inherited from CEGUI::SequentialLayoutContainer | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventChildOrderChanged |
fired when child windows get rearranged | |
Static Public Attributes inherited from CEGUI::LayoutContainer | |
static const String | EventNamespace |
Namespace for global events. | |
Static Public Attributes inherited from CEGUI::Window | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventUpdated |
static const String | EventTextChanged |
static const String | EventFontChanged |
static const String | EventAlphaChanged |
static const String | EventIDChanged |
static const String | EventActivated |
static const String | EventDeactivated |
static const String | EventShown |
static const String | EventHidden |
static const String | EventEnabled |
static const String | EventDisabled |
static const String | EventClippedByParentChanged |
static const String | EventDestroyedByParentChanged |
static const String | EventInheritsAlphaChanged |
static const String | EventAlwaysOnTopChanged |
static const String | EventInputCaptureGained |
static const String | EventInputCaptureLost |
static const String | EventInvalidated |
static const String | EventRenderingStarted |
static const String | EventRenderingEnded |
static const String | EventDestructionStarted |
static const String | EventDragDropItemEnters |
static const String | EventDragDropItemLeaves |
static const String | EventDragDropItemDropped |
static const String | EventWindowRendererAttached |
static const String | EventWindowRendererDetached |
static const String | EventTextParsingChanged |
static const String | EventMarginChanged |
static const String | EventMouseEntersArea |
static const String | EventMouseLeavesArea |
static const String | EventMouseEntersSurface |
static const String | EventMouseLeavesSurface |
static const String | EventMouseMove |
static const String | EventMouseWheel |
static const String | EventMouseButtonDown |
static const String | EventMouseButtonUp |
static const String | EventMouseClick |
static const String | EventMouseDoubleClick |
static const String | EventMouseTripleClick |
static const String | EventKeyDown |
static const String | EventKeyUp |
static const String | EventCharacterKey |
static const String | TooltipNameSuffix |
Widget name suffix for automatically created tooltip widgets. | |
static const String | WindowXMLElementName |
static const String | AutoWindowXMLElementName |
static const String | UserStringXMLElementName |
static const String | WindowTypeXMLAttributeName |
static const String | WindowNameXMLAttributeName |
static const String | AutoWindowNamePathXMLAttributeName |
static const String | UserStringNameXMLAttributeName |
static const String | UserStringValueXMLAttributeName |
Static Public Attributes inherited from CEGUI::NamedElement | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventNameChanged |
Static Public Attributes inherited from CEGUI::Element | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventSized |
static const String | EventParentSized |
static const String | EventMoved |
static const String | EventHorizontalAlignmentChanged |
static const String | EventVerticalAlignmentChanged |
static const String | EventRotated |
static const String | EventChildAdded |
static const String | EventChildRemoved |
static const String | EventZOrderChanged |
static const String | EventNonClientChanged |
Additional Inherited Members | |
Public Types inherited from CEGUI::PropertySet | |
typedef ConstMapIterator < PropertyRegistry > | PropertyIterator |
Public Types inherited from CEGUI::EventSet | |
typedef ConstMapIterator < EventMap > | EventIterator |
Protected Types inherited from CEGUI::LayoutContainer | |
typedef std::multimap< Window *, Event::Connection > | ConnectionTracker |
Protected Member Functions inherited from CEGUI::SequentialLayoutContainer | |
virtual void | onChildOrderChanged (WindowEventArgs &e) |
Handler called when children of this window gets rearranged in any way. More... | |
Protected Attributes inherited from CEGUI::LayoutContainer | |
bool | d_needsLayouting |
ConnectionTracker | d_eventConnections |
Tracks event connections we make. | |
CachedRectf | d_clientChildContentArea |
Static Protected Attributes inherited from CEGUI::Window | |
CEGUI::Window::WindowRendererProperty | d_windowRendererProperty |
CEGUI::Window::LookNFeelProperty | d_lookNFeelProperty |
static BasicRenderedStringParser | d_basicStringParser |
Shared instance of a parser to be used in most instances. | |
static DefaultRenderedStringParser | d_defaultStringParser |
Shared instance of a parser to be used when rendering text verbatim. | |
A Layout Container window layouting it's children vertically.
|
virtual |
(re)layouts all windows inside this layout container immediately
Implements CEGUI::LayoutContainer.