An abstract base class providing common functionality and specifying the required interface for derived classes. More...
Inherits GUI::EventSet.
Inherited by GUI::ButtonBase, GUI::Combobox, GUI::DragContainer, GUI::Editbox, GUI::FrameWindow, GUI::GroupBox, GUI::GUISheet, GUI::ItemEntry, GUI::ItemListBase, GUI::Listbox, GUI::ListHeader, GUI::ListHeaderSegment, GUI::MultiColumnList, GUI::MultiLineEditbox, GUI::ProgressBar, GUI::ScrollablePane, GUI::Scrollbar, GUI::ScrolledContainer, GUI::Slider, GUI::Spinner, GUI::TabControl, GUI::Titlebar, GUI::Tooltip, and GUI::Tree.
Public Member Functions | |
string | getType () |
return a String object holding the type name for this Window. | |
string | getName () |
return a String object holding the name of this Window. | |
bool | isDestroyedByParent () |
returns whether or not this Window is set to be destroyed when its parent window is destroyed. | |
bool | isAlwaysOnTop () |
returns whether or not this Window is an always on top Window. Also known as a top-most window. | |
bool | isDisabled (bool localOnly=false) |
return whether the Window is currently disabled | |
bool | isVisible (bool localOnly=false) |
return true if the Window is currently visible. | |
bool | isActive () |
return true if this is the active Window. An active window is a window that may receive user inputs. | |
bool | isClippedByParent () |
return true if this Window is clipped so that its rendering will not pass outside of its parent Window area. | |
int | getID () |
return the ID code currently assigned to this Window by client code. | |
int | getChildCount () |
return the number of child Window objects currently attached to this Window. | |
bool | isChild (string name) |
returns whether a Window with the specified name is currently attached to this Window as a child. | |
bool | isChild (int ID) |
returns whether at least one window with the given ID code is attached to this Window as a child. | |
bool | isChildRecursive (int ID) |
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. | |
bool | isChild (Window window) |
return true if the given Window is a child of this window. | |
Window | getChild (string name) |
return a pointer to the child window with the specified name. | |
Window | getChild (int ID) |
return a pointer to the first attached child window with the specified ID value. | |
Window | getChildRecursive (string name) |
return a pointer to the first attached child window with the specified name. Children are traversed recursively. | |
Window | getChildRecursive (int ID) |
return a pointer to the first attached child window with the specified ID value. Children are traversed recursively. | |
Window | getChildAtIdx (int idx) |
return a pointer to the child window that is attached to 'this' at the given index. | |
Window | getActiveChild () |
return a pointer to the Window that currently has input focus starting with this Window. | |
bool | isAncestor (string name) |
return true if the specified Window is some ancestor of this Window | |
bool | isAncestor (int ID) |
return true if any Window with the given ID is some ancestor of this Window. | |
bool | isAncestor (Window window) |
return true if the specified Window is some ancestor of this Window. | |
Font | getFont () |
return the active Font object for the Window. | |
string | getText () |
return the current text for the Window | |
bool | inheritsAlpha () |
return true if the Window inherits alpha from its parent(s). | |
float | getAlpha () |
return the current alpha value set for this Window | |
float | getEffectiveAlpha () |
return the effective alpha value that will be used when rendering this window, taking into account inheritance of parent window(s) alpha. | |
Rect | getPixelRect () |
return a Rect object describing the Window area in screen space. | |
Rect | getInnerRect () |
return a Rect object describing the clipped inner area for this window. | |
Rect | getUnclippedPixelRect () |
return a Rect object describing the Window area unclipped, in screen space. | |
Rect | getUnclippedInnerRect () |
Return a Rect object that describes, unclipped, the inner rectangle for this window. The inner rectangle is typically an area that excludes some frame or other rendering that should not be touched by subsequent rendering. | |
Window | getCaptureWindow () |
return the Window that currently has inputs captured. | |
bool | isCapturedByThis () |
return true if this Window has input captured. | |
bool | isCapturedByAncestor () |
return true if an ancestor window has captured inputs. | |
bool | isCapturedByChild (void) |
return true if a child window has captured inputs. | |
bool | isHit (Vector2 position) |
check if the given pixel position would hit this window. | |
Window | getChildAtPosition (Vector2 position) |
return the child Window that is hit by the given pixel position | |
Window | getTargetChildAtPosition (Vector2 position) |
return the child Window that is 'hit' by the given position, and is allowed to handle mouse events. | |
Window | getParent () |
return the parent of this Window. | |
Image | getMouseCursor () |
Return a pointer to the mouse cursor image to use when the mouse cursor is within this window's area. | |
bool | restoresOldCapture (void) |
Return whether this window is set to restore old input capture when it loses input capture. | |
bool | isZOrderingEnabled () |
Return whether z-order changes are enabled or disabled for this Window. | |
bool | wantsMultiClickEvents () |
Return whether this window will receive multi-click events or multiple 'down' events instead. | |
bool | isMouseAutoRepeatEnabled () |
Return whether mouse button down event autorepeat is enabled for this window. | |
float | getAutoRepeatDelay () |
Return the current auto-repeat delay setting for this window. | |
float | getAutoRepeatRate () |
Return the current auto-repeat rate setting for this window. | |
bool | distributesCapturedInputs () |
Return whether the window wants inputs passed to its attached child windows when the window has inputs captured. | |
bool | isUsingDefaultTooltip () |
Return whether this Window is using the system default Tooltip for its Tooltip window. | |
Tooltip | getTooltip () |
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. | |
string | getTooltipType () |
Return the custom tooltip type. | |
string | getTooltipText () |
Return the current tooltip text set for this Window. | |
bool | inheritsTooltipText () |
Return whether this window inherits Tooltip text from its parent when its own tooltip text is not set. | |
bool | isRiseOnClickEnabled () |
Return whether this window will rise to the top of the z-order when clicked with the left mouse button. | |
bool | testClassName (string class_name) |
Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. | |
int | getVerticalAlignment () |
Get the vertical alignment. | |
int | getHorizontalAlignment () |
Get the horizontal alignment. | |
string | getLookNFeel () |
Get the name of the LookNFeel assigned to this window. | |
bool | getModalState () |
Get whether or not this Window is the modal target. | |
string | getUserString (string name) |
Returns a named user string. | |
bool | isUserStringDefined (string name) |
Return whether a user string with the specified name exists. | |
Size | getParentPixelSize () |
Return the pixel size of the parent element. This always returns a valid object. | |
float | getParentPixelWidth () |
Return the pixel Width of the parent element. This always returns a valid number. | |
float | getParentPixelHeight () |
Return the pixel Height of the parent element. This always returns a valid number. | |
bool | isMousePassThroughEnabled () |
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. | |
bool | isDragDropTarget () |
Returns whether this Window object will receive events generated by the drag and drop support in the system. | |
void | rename (string new_name) |
Renames the window. | |
void | setDestroyedByParent (bool setting) |
Set whether or not this Window will automatically be destroyed when its parent Window is destroyed. | |
void | setAlwaysOnTop (bool setting) |
Set whether this window is always on top, or not. | |
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. | |
void | enable (void) |
enable the Window to allow interaction. | |
void | disable (void) |
disable the Window to prevent interaction. | |
void | setVisible (bool setting) |
Set whether the Window is visible or hidden. | |
void | show (void) |
show the Window. | |
void | hide (void) |
hide the Window. | |
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. | |
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. | |
void | setClippedByParent (bool setting) |
Set whether this Window will be clipped by its parent window(s). | |
void | setID (int ID) |
Set the current ID for the Window. | |
void | setText (string text) |
Set the current text string for the Window. | |
void | insertText (string text, int position) |
Insert the text string text into the current text string for the Window object at the position specified by position. | |
void | appendText (string text) |
Append the string text to the currect text string for the Window object. | |
void | setFont (Font font) |
Set the font used by this Window. | |
void | setFont (string name) |
Set the font used by this Window. | |
void | addChildWindow (string name) |
Add the named Window as a child of this Window. If the Window name is already attached to a Window, it is detached before being added to this Window. | |
void | addChildWindow (Window window) |
Add the specified Window as a child of this Window. If the Window window is already attached to a Window, it is detached before being added to this Window. | |
void | removeChildWindow (string name) |
Remove the named Window from this windows child list. | |
void | removeChildWindow (Window window) |
Remove the specified Window form this windows child list. | |
void | removeChildWindow (int 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. | |
void | moveToFront () |
Move the Window to the top of the z order. | |
void | moveToBack () |
Move the Window to the bottom of the Z order. | |
bool | captureInput () |
Captures input to this window. | |
void | releaseInput () |
Releases input capture from this Window. If this Window does not have inputs captured, nothing happens. | |
void | setRestoreCapture (bool setting) |
Set whether this window will remember and restore the previous window that had inputs captured. | |
void | setAlpha (float alpha) |
Set the current alpha value for this window. | |
void | setInheritsAlpha (bool setting) |
Sets whether this Window will inherit alpha from its parent windows. | |
void | requestRedraw (void) |
Signal the System object to redraw (at least) this Window on the next render cycle. | |
void | setMouseCursor (string imageset, string image_name) |
Set the mouse cursor image to be used when the mouse enters this window. | |
void | setZOrderingEnabled (bool setting) |
Set whether z-order changes are enabled or disabled for this Window. | |
void | setWantsMultiClickEvents (bool setting) |
Set whether this window will receive multi-click events or multiple 'down' events instead. | |
void | setMouseAutoRepeatEnabled (bool setting) |
Set whether mouse button down event autorepeat is enabled for this window. | |
void | setAutoRepeatDelay (float delay) |
Set the current auto-repeat delay setting for this window. | |
void | setAutoRepeatRate (float rate) |
Set the current auto-repeat rate setting for this window. | |
void | setDistributesCapturedInputs (bool setting) |
Set whether the window wants inputs passed to its attached child windows when the window has inputs captured. | |
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. | |
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. | |
void | setTooltipType (string tooltipType) |
Set the custom Tooltip to be used by this Window by specifying a Window type. | |
void | setTooltipText (string tip) |
Set the tooltip text for this window. | |
void | setInheritsTooltipText (bool setting) |
Set whether this window inherits Tooltip text from its parent when its own tooltip text is not set. | |
void | setRiseOnClickEnabled (bool setting) |
Set whether this window will rise to the top of the z-order when clicked with the left mouse button. | |
void | setVerticalAlignment (int alignment) |
Set the vertical alignment. | |
void | setHorizontalAlignment (int alignment) |
Set the horizontal alignment. | |
void | setLookNFeel (string look) |
Set the LookNFeel that shoule be used for this window. | |
void | setModalState (bool state) |
Set the modal state for this Window. | |
void | setUserString (string name, string value) |
Sets the value a named user string, creating it as required. | |
void | setArea (UDim xpos, UDim ypos, UDim width, UDim height) |
Set the window area. | |
void | setArea (UVector2 pos, UVector2 size) |
Set the window area. | |
void | setArea (URect area) |
Set the window area. | |
void | setPosition (UVector2 pos) |
Set the window's position. | |
void | setXPosition (UDim x) |
Set the window's X position. | |
void | setYPosition (UDim y) |
Set the window's Y position. | |
void | setSize (UVector2 size) |
Set the window's size. | |
void | setWidth (UDim width) |
Set the window's width. | |
void | setHeight (UDim height) |
Set the window's height. | |
void | setMaxSize (UVector2 size) |
Set the window's maximum size. | |
void | setMinSize (UVector2 size) |
Set the window's minimum size. | |
URect | getArea () |
Return the windows area. | |
UVector2 | getPosition () |
Get the window's position. | |
UDim | getXPosition () |
Get the window's X position. | |
UDim | getYPosition () |
Get the window's Y position. | |
UVector2 | getSize () |
Get the window's size. | |
UDim | getWidth () |
Get the window's width. | |
UDim | getHeight () |
Get the window's height. | |
UVector2 | getMaxSize () |
Get the window's maximum size. | |
UVector2 | getMinSize () |
Get the window's minimum size. | |
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. | |
void | setWindowRenderer (string name) |
Assign the WindowRenderer to specify the Look'N'Feel specification to be used. | |
string | getWindowRendererName () |
Get the factory name of the currently assigned WindowRenderer. (Look'N'Feel specification). | |
void | setDragDropTarget (bool setting) |
Specifies whether this Window object will receive events generated by the drag and drop support in the system. | |
Public Member Functions inherited from GUI::EventSet | |
void | addEvent (string name) |
Add a new Event to the EventSet with the given name. | |
void | removeEvent (string name) |
Removes the Event with the given name. All connections to the event are disconnected. | |
void | removeAllEvents () |
Remove all Event objects from the EventSet. | |
bool | isEventPresent (string name) |
Checks to see if an Event with the given name is present in the EventSet. | |
EventConnection | subscribeEvent (string name, string subscriber_name) |
Subscribes the named Event to a scripted funtion. | |
void | fireEvent (string name, EventArgs args, string eventNamespace="") |
Fires the named event passing the given EventArgs object. | |
bool | isMuted () |
Return whether the EventSet is muted or not. | |
void | setMutedState (bool setting) |
Set the mute state for this EventSet. |
Qualified Iterators | |
Property | Property |
Can be used to iterate over the properties currently added to the PropertySet of this Window. |
Additional Inherited Members | |
Public Attributes inherited from GUI::EventSet | |
Event | Event |
Can be used to iterate over the events currently added to the EventSet. |
An abstract base class providing common functionality and specifying the required interface for derived classes.
The Window base class is core UI object class that the the system knows about; for this reason, every other window, widget, or similar item within the system must be derived from Window.
The base class provides the common functionality required by all UI objects, and specifies the minimal interface required to be implemented by derived classes.
string GUI::Window::getType | ( | ) |
string GUI::Window::getName | ( | ) |
bool GUI::Window::isDestroyedByParent | ( | ) |
bool GUI::Window::isAlwaysOnTop | ( | ) |
bool GUI::Window::isDisabled | ( | bool | localOnly = false | ) |
return whether the Window is currently disabled
localOnly | States whether to only return the state set for this window, and not to factor in inherited state from ancestor windows. |
bool GUI::Window::isVisible | ( | bool | localOnly = false | ) |
return true if the Window is currently visible.
When true is returned from this function does not mean that the window is not completely obscured by other windows, just that the window will be processed when rendering, and is not explicitly marked as hidden.
localOnly | States whether to only return the state set for this window, and not to factor in inherited state from ancestor windows. |
bool GUI::Window::isActive | ( | ) |
return true if this is the active Window. An active window is a window that may receive user inputs.
Mouse events are always sent to the window containing the mouse cursor regardless of what this function reports (unless a window has captured inputs). The active state mainly determines where send other, for example keyboard, inputs.
bool GUI::Window::isClippedByParent | ( | ) |
int GUI::Window::getID | ( | ) |
int GUI::Window::getChildCount | ( | ) |
bool GUI::Window::isChild | ( | string | name | ) |
bool GUI::Window::isChild | ( | int | ID | ) |
returns whether at least one window with the given ID code is attached to this Window as a child.
ID | uint ID code to look for. |
bool GUI::Window::isChildRecursive | ( | int | ID | ) |
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.
WARNING! This function can be very expensive and should only be used when you have no other option available. If you decide to use it anyway, make sure the window hierarchy from the entry point is small.
ID | uint ID code to look for. |
bool GUI::Window::isChild | ( | Window | window | ) |
Window GUI::Window::getChild | ( | string | name | ) |
return a pointer to the child window with the specified name.
This function will throw an exception if no child object with the given name is attached. This decision was made (over returning NULL if no window was found) so that client code can assume that if the call returns it has a valid window pointer. We provide the isChild() functions for checking if a given window is attached.
name | String object holding the name of the child window for which a pointer is to be returned. |
UnknownObjectException | thrown if no window named name is attached to this Window. |
Window GUI::Window::getChild | ( | int | ID | ) |
return a pointer to the first attached child window with the specified ID value.
This function will throw an exception if no child object with the given ID is attached. This decision was made (over returning NULL if no window was found) so that client code can assume that if the call returns it has a valid window pointer. We provide the isChild() functions for checking if a given window is attached.
ID | uint value specifying the ID code of the window to return a pointer to. |
UnknownObjectException | thrown if no window with the ID code ID is attached to this Window. |
Window GUI::Window::getChildRecursive | ( | string | name | ) |
return a pointer to the first attached child window with the specified name. Children are traversed recursively.
Contrary to the non recursive version of this function, this one will not throw an exception, but return 0 in case no child was found.
name | String object holding the name of the child window for which a pointer is to be returned. |
If no child is found with the name name, 0 is returned.
Window GUI::Window::getChildRecursive | ( | int | ID | ) |
return a pointer to the first attached child window with the specified ID value. Children are traversed recursively.
Contrary to the non recursive version of this function, this one will not throw an exception, but return 0 in case no child was found.
ID | uint value specifying the ID code of the window to return a pointer to. |
Window GUI::Window::getChildAtIdx | ( | int | idx | ) |
return a pointer to the child window that is attached to 'this' at the given index.
idx | Index of the child window whos pointer should be returned. This value is not bounds checked, client code should ensure that this is less than the value returned by getChildCount(). |
Window GUI::Window::getActiveChild | ( | ) |
return a pointer to the Window that currently has input focus starting with this Window.
bool GUI::Window::isAncestor | ( | string | name | ) |
bool GUI::Window::isAncestor | ( | int | ID | ) |
bool GUI::Window::isAncestor | ( | Window | window | ) |
Font GUI::Window::getFont | ( | ) |
string GUI::Window::getText | ( | ) |
bool GUI::Window::inheritsAlpha | ( | ) |
float GUI::Window::getAlpha | ( | ) |
return the current alpha value set for this Window
float GUI::Window::getEffectiveAlpha | ( | ) |
return the effective alpha value that will be used when rendering this window, taking into account inheritance of parent window(s) alpha.
Rect GUI::Window::getPixelRect | ( | ) |
return a Rect object describing the Window area in screen space.
Rect GUI::Window::getInnerRect | ( | ) |
Rect GUI::Window::getUnclippedPixelRect | ( | ) |
Rect GUI::Window::getUnclippedInnerRect | ( | ) |
Return a Rect object that describes, unclipped, the inner rectangle for this window. The inner rectangle is typically an area that excludes some frame or other rendering that should not be touched by subsequent rendering.
Window GUI::Window::getCaptureWindow | ( | ) |
bool GUI::Window::isCapturedByThis | ( | ) |
bool GUI::Window::isCapturedByAncestor | ( | ) |
bool GUI::Window::isCapturedByChild | ( | void | ) |
bool GUI::Window::isHit | ( | Vector2 | position | ) |
return the child Window that is hit by the given pixel position
position | Vector2 object describing the position to check. The position describes a pixel offset from the top-left corner of the display. |
return the child Window that is 'hit' by the given position, and is allowed to handle mouse events.
position | Vector2 object describing the position to check. The position describes a pixel offset from the top-left corner of the display. |
Window GUI::Window::getParent | ( | ) |
Image GUI::Window::getMouseCursor | ( | ) |
Return a pointer to the mouse cursor image to use when the mouse cursor is within this window's area.
bool GUI::Window::restoresOldCapture | ( | void | ) |
Return whether this window is set to restore old input capture when it loses input capture.
This is only really useful for certain sub-components for widget writers.
bool GUI::Window::isZOrderingEnabled | ( | ) |
Return whether z-order changes are enabled or disabled for this Window.
bool GUI::Window::wantsMultiClickEvents | ( | ) |
bool GUI::Window::isMouseAutoRepeatEnabled | ( | ) |
Return whether mouse button down event autorepeat is enabled for this window.
float GUI::Window::getAutoRepeatDelay | ( | ) |
Return the current auto-repeat delay setting for this window.
float GUI::Window::getAutoRepeatRate | ( | ) |
Return the current auto-repeat rate setting for this window.
bool GUI::Window::distributesCapturedInputs | ( | ) |
bool GUI::Window::isUsingDefaultTooltip | ( | ) |
Tooltip GUI::Window::getTooltip | ( | ) |
string GUI::Window::getTooltipType | ( | ) |
Return the custom tooltip type.
string GUI::Window::getTooltipText | ( | ) |
Return the current tooltip text set for this Window.
bool GUI::Window::inheritsTooltipText | ( | ) |
Return whether this window inherits Tooltip text from its parent when its own tooltip text is not set.
bool GUI::Window::isRiseOnClickEnabled | ( | ) |
Return whether this window will rise to the top of the z-order when clicked with the left mouse button.
bool GUI::Window::testClassName | ( | string | class_name | ) |
Return whether this window was inherited from the given class name at some point in the inheritance hierarchy.
class_name | The class name that is to be checked. |
int GUI::Window::getVerticalAlignment | ( | ) |
Get the vertical alignment.
Returns the vertical alignment for the window. This setting affects how the windows position is interpreted relative to its parent.
int GUI::Window::getHorizontalAlignment | ( | ) |
Get the horizontal alignment.
Returns the horizontal alignment for the window. This setting affects how the windows position is interpreted relative to its parent.
string GUI::Window::getLookNFeel | ( | ) |
Get the name of the LookNFeel assigned to this window.
bool GUI::Window::getModalState | ( | ) |
string GUI::Window::getUserString | ( | string | name | ) |
Returns a named user string.
name | String object holding the name of the string to be returned. |
UnknownObjectException | thrown if a user string named name does not exist. |
bool GUI::Window::isUserStringDefined | ( | string | name | ) |
Return whether a user string with the specified name exists.
name | String object holding the name of the string to be checked. |
Size GUI::Window::getParentPixelSize | ( | ) |
float GUI::Window::getParentPixelWidth | ( | ) |
Return the pixel Width of the parent element. This always returns a valid number.
float GUI::Window::getParentPixelHeight | ( | ) |
Return the pixel Height of the parent element. This always returns a valid number.
bool GUI::Window::isMousePassThroughEnabled | ( | ) |
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.
bool GUI::Window::isDragDropTarget | ( | ) |
void GUI::Window::rename | ( | string | new_name | ) |
Renames the window.
new_name | String object holding the new name for the window. |
AlreadyExistsException | thrown if a Window named new_name already exists in the system. |
void GUI::Window::setDestroyedByParent | ( | bool | setting | ) |
void GUI::Window::setAlwaysOnTop | ( | bool | setting | ) |
Set whether this window is always on top, or not.
setting |
|
void GUI::Window::setEnabled | ( | bool | setting | ) |
|
inline |
enable the Window to allow interaction.
|
inline |
disable the Window to prevent interaction.
void GUI::Window::setVisible | ( | bool | setting | ) |
Set whether the Window is visible or hidden.
|
inline |
show the Window.
|
inline |
hide the Window.
void GUI::Window::activate | ( | void | ) |
void GUI::Window::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.
void GUI::Window::setClippedByParent | ( | bool | setting | ) |
void GUI::Window::setID | ( | int | ID | ) |
void GUI::Window::setText | ( | string | text | ) |
void GUI::Window::insertText | ( | string | text, |
int | position | ||
) |
Insert the text string text into the current text string for the Window object at the position specified by position.
text | String object holding the text that is to be inserted into the Window object's current text string. |
position | The characted index position where the string text should be inserted. |
void GUI::Window::appendText | ( | string | text | ) |
void GUI::Window::setFont | ( | Font | font | ) |
void GUI::Window::setFont | ( | string | name | ) |
void GUI::Window::addChildWindow | ( | string | name | ) |
void GUI::Window::addChildWindow | ( | Window | window | ) |
void GUI::Window::removeChildWindow | ( | string | name | ) |
void GUI::Window::removeChildWindow | ( | Window | window | ) |
void GUI::Window::removeChildWindow | ( | int | 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.
ID | ID number assigned to the Window to be removed. If no Window with ID code ID is attached, nothing happens. |
void GUI::Window::moveToFront | ( | ) |
Move the Window to the top of the z order.
void GUI::Window::moveToBack | ( | ) |
Move the Window to the bottom of the Z order.
bool GUI::Window::captureInput | ( | ) |
Captures input to this window.
void GUI::Window::releaseInput | ( | ) |
void GUI::Window::setRestoreCapture | ( | bool | setting | ) |
Set whether this window will remember and restore the previous window that had inputs captured.
setting |
|
void GUI::Window::setAlpha | ( | float | alpha | ) |
Set the current alpha value for this window.
alpha | The new alpha value for the window. Value should be between 0.0f and 1.0f. |
void GUI::Window::setInheritsAlpha | ( | bool | setting | ) |
void GUI::Window::requestRedraw | ( | void | ) |
void GUI::Window::setMouseCursor | ( | string | imageset, |
string | image_name | ||
) |
Set the mouse cursor image to be used when the mouse enters this window.
imageset | String object that contains the name of the Imageset that contains the image to be used. |
image_name | String object that contains the name of the Image on imageset that is to be used. |
UnknownObjectException | thrown if imageset is not known, or if imageset contains no Image named image_name. |
void GUI::Window::setZOrderingEnabled | ( | bool | setting | ) |
Set whether z-order changes are enabled or disabled for this Window.
setting |
|
void GUI::Window::setWantsMultiClickEvents | ( | bool | setting | ) |
Set whether this window will receive multi-click events or multiple 'down' events instead.
setting |
void GUI::Window::setMouseAutoRepeatEnabled | ( | bool | setting | ) |
Set whether mouse button down event autorepeat is enabled for this window.
setting |
|
void GUI::Window::setAutoRepeatDelay | ( | float | delay | ) |
Set the current auto-repeat delay setting for this window.
delay | float value indicating the delay, in seconds, defore the first repeat mouse button down event should be triggered when autorepeat is enabled. |
void GUI::Window::setAutoRepeatRate | ( | float | rate | ) |
Set the current auto-repeat rate setting for this window.
rate | float value indicating the rate, in seconds, at which repeat mouse button down events should be generated after the initial delay has expired. |
void GUI::Window::setDistributesCapturedInputs | ( | bool | setting | ) |
void GUI::Window::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.
tooltip | Pointer to a valid Tooltip based object which should be used as the tooltip for this Window, or 0 to indicate that the Window should use the system default Tooltip object. Note that when passing a pointer to a Tooltip object, ownership of the Tooltip does not pass to this Window object. |
void GUI::Window::setTooltipType | ( | string | tooltipType | ) |
Set the custom Tooltip to be used by this Window by specifying a Window type.
The Window will internally attempt to create an instance of the specified window type (which must be derived from the base Tooltip class). If the Tooltip creation fails, the error is logged and the Window will revert to using either the existing custom Tooltip or the system default Tooltip.
tooltipType | String object holding the name of the Tooltip based Window type which should be used as the Tooltip for this Window. |
void GUI::Window::setTooltipText | ( | string | tip | ) |
Set the tooltip text for this window.
tip | String object holding the text to be displayed in the tooltip for this Window. |
void GUI::Window::setInheritsTooltipText | ( | bool | setting | ) |
Set whether this window inherits Tooltip text from its parent when its own tooltip text is not set.
setting |
|
|
inline |
Set whether this window will rise to the top of the z-order when clicked with the left mouse button.
setting |
|
void GUI::Window::setVerticalAlignment | ( | int | alignment | ) |
Set the vertical alignment.
Modifies the vertical alignment for the window. This setting affects how the windows position is interpreted relative to its parent.
alignment | One of the VerticalAlignment enumerated values. |
void GUI::Window::setHorizontalAlignment | ( | int | alignment | ) |
Set the horizontal alignment.
Modifies the horizontal alignment for the window. This setting affects how the windows position is interpreted relative to its parent.
alignment | One of the HorizontalAlignment enumerated values. |
void GUI::Window::setLookNFeel | ( | string | look | ) |
Set the LookNFeel that shoule be used for this window.
look | String object holding the name of the look to be assigned to the window. |
UnknownObjectException | thrown if the look'n'feel specified by look does not exist. |
void GUI::Window::setModalState | ( | bool | state | ) |
void GUI::Window::setUserString | ( | string | name, |
string | value | ||
) |
Sets the value a named user string, creating it as required.
name | String object holding the name of the string to be returned. |
value | String object holding the value to be assigned to the user string. |
Set the window area.
Sets the area occupied by this window. The defined area is offset from the top-left corner of this windows parent window or from the top-left corner of the display if this window has no parent (i.e. it is the root window).
Set the window area.
Sets the area occupied by this window. The defined area is offset from the top-left corner of this windows parent window or from the top-left corner of the display if this window has no parent (i.e. it is the root window).
void GUI::Window::setArea | ( | URect | area | ) |
Set the window area.
Sets the area occupied by this window. The defined area is offset from the top-left corner of this windows parent window or from the top-left corner of the display if this window has no parent (i.e. it is the root window).
area | URect describing the new area rectangle of the window area. |
void GUI::Window::setPosition | ( | UVector2 | pos | ) |
Set the window's position.
Sets the position of the area occupied by this window. The position is offset from the top-left corner of this windows parent window or from the top-left corner of the display if this window has no parent (i.e. it is the root window).
pos | UVector2 describing the new position (top-left corner) of the window area. |
void GUI::Window::setXPosition | ( | UDim | x | ) |
Set the window's X position.
Sets the x position (left edge) of the area occupied by this window. The position is offset from the left edge of this windows parent window or from the left edge of the display if this window has no parent (i.e. it is the root window).
x | UDim describing the new x position of the window area. |
void GUI::Window::setYPosition | ( | UDim | y | ) |
Set the window's Y position.
Sets the y position (top edge) of the area occupied by this window. The position is offset from the top edge of this windows parent window or from the top edge of the display if this window has no parent (i.e. it is the root window).
y | UDim describing the new y position of the window area. |
void GUI::Window::setSize | ( | UVector2 | size | ) |
Set the window's size.
Sets the size of the area occupied by this window.
size | UVector2 describing the new size of the window area. |
void GUI::Window::setWidth | ( | UDim | width | ) |
Set the window's width.
Sets the width of the area occupied by this window.
width | UDim describing the new width of the window area. |
void GUI::Window::setHeight | ( | UDim | height | ) |
Set the window's height.
Sets the height of the area occupied by this window.
height | UDim describing the new height of the window area. |
void GUI::Window::setMaxSize | ( | UVector2 | size | ) |
Set the window's maximum size.
Sets the maximum size that this windows area may occupy (whether size changes occur by user interaction, general system operation, or by direct setting by client code).
size | UVector2 describing the new maximum size of the window area. |
void GUI::Window::setMinSize | ( | UVector2 | size | ) |
Set the window's minimum size.
Sets the minimum size that this windows area may occupy (whether size changes occur by user interaction, general system operation, or by direct setting by client code).
size | UVector2 describing the new minimum size of the window area. |
URect GUI::Window::getArea | ( | ) |
Return the windows area.
Returns the area occupied by this window. The defined area is offset from the top-left corner of this windows parent window or from the top-left corner of the display if this window has no parent (i.e. it is the root window).
UVector2 GUI::Window::getPosition | ( | ) |
Get the window's position.
Gets the position of the area occupied by this window. The position is offset from the top-left corner of this windows parent window or from the top-left corner of the display if this window has no parent (i.e. it is the root window).
UDim GUI::Window::getXPosition | ( | ) |
Get the window's X position.
Gets the x position (left edge) of the area occupied by this window. The position is offset from the left edge of this windows parent window or from the left edge of the display if this window has no parent (i.e. it is the root window).
UDim GUI::Window::getYPosition | ( | ) |
Get the window's Y position.
Gets the y position (top edge) of the area occupied by this window. The position is offset from the top edge of this windows parent window or from the top edge of the display if this window has no parent (i.e. it is the root window).
UVector2 GUI::Window::getSize | ( | ) |
Get the window's size.
Gets the size of the area occupied by this window.
UDim GUI::Window::getWidth | ( | ) |
Get the window's width.
Gets the width of the area occupied by this window.
UDim GUI::Window::getHeight | ( | ) |
Get the window's height.
Gets the height of the area occupied by this window.
UVector2 GUI::Window::getMaxSize | ( | ) |
Get the window's maximum size.
Gets the maximum size that this windows area may occupy (whether size changes occur by user interaction, general system operation, or by direct setting by client code).
UVector2 GUI::Window::getMinSize | ( | ) |
Get the window's minimum size.
Gets the minimum size that this windows area may occupy (whether size changes occur by user interaction, general system operation, or by direct setting by client code).
|
inline |
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.
setting | true if mouse pass through is enabled. false if mouse pass through is not enabled. |
void GUI::Window::setWindowRenderer | ( | string | name | ) |
Assign the WindowRenderer to specify the Look'N'Feel specification to be used.
name | The factory name of the WindowRenderer to use. |
string GUI::Window::getWindowRendererName | ( | ) |
Get the factory name of the currently assigned WindowRenderer. (Look'N'Feel specification).
void GUI::Window::setDragDropTarget | ( | bool | setting | ) |