Crazy Eddies GUI System
0.6.0
|
Base class for the multi column list widget. More...
Classes | |
struct | ListRow |
Struct used internally to represent a row in the list and also to ease sorting of the rows. More... | |
Public Types | |
enum | SelectionMode { RowSingle, RowMultiple, CellSingle, CellMultiple, NominatedColumnSingle, NominatedColumnMultiple, ColumnSingle, ColumnMultiple, NominatedRowSingle, NominatedRowMultiple } |
Enumerated values for the selection modes possible with a Multi-column list. | |
Public Member Functions | |
bool | isUserSortControlEnabled (void) const |
Return whether user manipulation of the sort column and direction are enabled. More... | |
bool | isUserColumnSizingEnabled (void) const |
Return whether the user may size column segments. More... | |
bool | isUserColumnDraggingEnabled (void) const |
Return whether the user may modify the order of the columns. More... | |
uint | getColumnCount (void) const |
Return the number of columns in the multi-column list. More... | |
uint | getRowCount (void) const |
Return the number of rows in the multi-column list. More... | |
uint | getSortColumn (void) const |
Return the zero based index of the current sort column. There must be at least one column to successfully call this method. More... | |
uint | getColumnWithID (uint col_id) const |
Return the zero based column index of the column with the specified ID. More... | |
uint | getColumnWithHeaderText (const String &text) const |
Return the zero based index of the column whos header text matches the specified text. More... | |
UDim | getTotalColumnHeadersWidth (void) const |
Return the total width of all column headers. More... | |
UDim | getColumnHeaderWidth (uint col_idx) const |
Return the width of the specified column header (and therefore the column itself). More... | |
ListHeaderSegment::SortDirection | getSortDirection (void) const |
Return the currently set sort direction. More... | |
ListHeaderSegment & | getHeaderSegmentForColumn (uint col_idx) const |
Return the ListHeaderSegment object for the specified column. More... | |
uint | getItemRowIndex (const ListboxItem *item) const |
Return the zero based index of the Row that contains item. More... | |
uint | getItemColumnIndex (const ListboxItem *item) const |
Return the current zero based index of the column that contains item. More... | |
MCLGridRef | getItemGridReference (const ListboxItem *item) const |
Return the grid reference for item. More... | |
ListboxItem * | getItemAtGridReference (const MCLGridRef &grid_ref) const |
Return a pointer to the ListboxItem at the specified grid reference. More... | |
bool | isListboxItemInColumn (const ListboxItem *item, uint col_idx) const |
return whether ListboxItem item is attached to the column at index col_idx. More... | |
bool | isListboxItemInRow (const ListboxItem *item, uint row_idx) const |
return whether ListboxItem item is attached to the row at index row_idx. More... | |
bool | isListboxItemInList (const ListboxItem *item) const |
return whether ListboxItem item is attached to the list box. More... | |
ListboxItem * | findColumnItemWithText (const String &text, uint col_idx, const ListboxItem *start_item) const |
Return the ListboxItem in column col_idx that has the text string text. More... | |
ListboxItem * | findRowItemWithText (const String &text, uint row_idx, const ListboxItem *start_item) const |
Return the ListboxItem in row row_idx that has the text string text. More... | |
ListboxItem * | findListItemWithText (const String &text, const ListboxItem *start_item) const |
Return the ListboxItem that has the text string text. More... | |
ListboxItem * | getFirstSelectedItem (void) const |
Return a pointer to the first selected ListboxItem attached to this list box. More... | |
ListboxItem * | getNextSelected (const ListboxItem *start_item) const |
Return a pointer to the next selected ListboxItem after start_item. More... | |
uint | getSelectedCount (void) const |
Return the number of selected ListboxItems attached to this list box. More... | |
bool | isItemSelected (const MCLGridRef &grid_ref) const |
Return whether the ListboxItem at grid_ref is selected. More... | |
uint | getNominatedSelectionColumnID (void) const |
Return the ID of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes. More... | |
uint | getNominatedSelectionColumn (void) const |
Return the index of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes. More... | |
uint | getNominatedSelectionRow (void) const |
Return the index of the currently set nominated selection row to be used when in one of the NominatedRow* selection modes. More... | |
MultiColumnList::SelectionMode | getSelectionMode (void) const |
Return the currently set selection mode. More... | |
bool | isVertScrollbarAlwaysShown (void) const |
Return whether the vertical scroll bar is always shown. More... | |
bool | isHorzScrollbarAlwaysShown (void) const |
Return whether the horizontal scroll bar is always shown. More... | |
uint | getColumnID (uint col_idx) const |
Return the ID code assigned to the requested column. More... | |
uint | getRowID (uint row_idx) const |
Return the ID code assigned to the requested row. More... | |
uint | getRowWithID (uint row_id) const |
Return the zero based row index of the row with the specified ID. More... | |
Rect | getListRenderArea (void) const |
Return a Rect object describing, in un-clipped pixels, the window relative area that is to be used for rendering list items. More... | |
Scrollbar * | getVertScrollbar () const |
Return a pointer to the vertical scrollbar component widget for this MultiColumnList. More... | |
Scrollbar * | getHorzScrollbar () const |
Return a pointer to the horizontal scrollbar component widget for this MultiColumnList. More... | |
ListHeader * | getListHeader () const |
Return a pointer to the list header component widget for this MultiColumnList. More... | |
float | getTotalRowsHeight (void) const |
Return the sum of all row heights in pixels. | |
float | getWidestColumnItemWidth (uint col_idx) const |
Return the pixel width of the widest item in the given column. | |
float | getHighestRowItemHeight (uint row_idx) const |
Return, in pixels, the height of the highest item in the given row. | |
virtual void | initialiseComponents (void) |
Initialise the Window based object ready for use. More... | |
void | resetList (void) |
Remove all items from the list. More... | |
void | addColumn (const String &text, uint col_id, const UDim &width) |
Add a column to the list box. More... | |
void | insertColumn (const String &text, uint col_id, const UDim &width, uint position) |
Insert a new column in the list. More... | |
void | removeColumn (uint col_idx) |
Removes a column from the list box. This will cause any ListboxItem using the autoDelete option in the column to be deleted. More... | |
void | removeColumnWithID (uint col_id) |
Removes a column from the list box. This will cause any ListboxItem using the autoDelete option in the column to be deleted. More... | |
void | moveColumn (uint col_idx, uint position) |
Move the column at index col_idx so it is at index position. More... | |
void | moveColumnWithID (uint col_id, uint position) |
Move the column with ID col_id so it is at index position. More... | |
uint | addRow (uint row_id=0) |
Add an empty row to the list box. More... | |
uint | addRow (ListboxItem *item, uint col_id, uint row_id=0) |
Add a row to the list box, and set the item in the column with ID col_id to item. More... | |
uint | insertRow (uint row_idx, uint row_id=0) |
Insert an empty row into the list box. More... | |
uint | insertRow (ListboxItem *item, uint col_id, uint row_idx, uint row_id=0) |
Insert a row into the list box, and set the item in the column with ID col_id to item. More... | |
void | removeRow (uint row_idx) |
Remove the list box row with index row_idx. Any ListboxItem in row row_idx using autoDelete mode will be deleted. More... | |
void | setItem (ListboxItem *item, const MCLGridRef &position) |
Set the ListboxItem for grid reference position. More... | |
void | setItem (ListboxItem *item, uint col_id, uint row_idx) |
Set the ListboxItem for the column with ID col_id in row row_idx. More... | |
void | setSelectionMode (MultiColumnList::SelectionMode sel_mode) |
Set the selection mode for the list box. More... | |
void | setNominatedSelectionColumnID (uint col_id) |
Set the column to be used for the NominatedColumn* selection modes. More... | |
void | setNominatedSelectionColumn (uint col_idx) |
Set the column to be used for the NominatedColumn* selection modes. More... | |
void | setNominatedSelectionRow (uint row_idx) |
Set the row to be used for the NominatedRow* selection modes. More... | |
void | setSortDirection (ListHeaderSegment::SortDirection direction) |
Set the sort direction to be used. More... | |
void | setSortColumn (uint col_idx) |
Set the column to be used as the sort key. More... | |
void | setSortColumnByID (uint col_id) |
Set the column to be used as the sort key. More... | |
void | setShowVertScrollbar (bool setting) |
Set whether the vertical scroll bar should always be shown, or just when needed. More... | |
void | setShowHorzScrollbar (bool setting) |
Set whether the horizontal scroll bar should always be shown, or just when needed. More... | |
void | clearAllSelections (void) |
Removed the selected state from any currently selected ListboxItem attached to the list. More... | |
void | setItemSelectState (ListboxItem *item, bool state) |
Sets or clears the selected state of the given ListboxItem which must be attached to the list. More... | |
void | setItemSelectState (const MCLGridRef &grid_ref, bool state) |
Sets or clears the selected state of the ListboxItem at the given grid reference. More... | |
void | handleUpdatedItemData (void) |
Inform the list box that one or more attached ListboxItems have been externally modified, and the list should re-sync its internal state and refresh the display as needed. More... | |
void | setColumnHeaderWidth (uint col_idx, const UDim &width) |
Set the width of the specified column header (and therefore the column itself). More... | |
void | setUserSortControlEnabled (bool setting) |
Set whether user manipulation of the sort column and direction are enabled. More... | |
void | setUserColumnSizingEnabled (bool setting) |
Set whether the user may size column segments. More... | |
void | setUserColumnDraggingEnabled (bool setting) |
Set whether the user may modify the order of the columns. More... | |
void | autoSizeColumnHeader (uint col_idx) |
Automatically determines the "best fit" size for the specified column and sets the column width to the same. More... | |
void | setRowID (uint row_idx, uint row_id) |
Set the ID code assigned to a given row. More... | |
MultiColumnList (const String &type, const String &name) | |
Constructor for the Multi-column list base class. | |
virtual | ~MultiColumnList (void) |
Destructor for the multi-column list base class. | |
![]() | |
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... | |
const String & | getName (void) const |
return a String object holding the name of this Window. More... | |
const String & | getPrefix (void) const |
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 (bool localOnly=false) const |
return whether the Window is currently disabled More... | |
bool | isVisible (bool localOnly=false) 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... | |
size_t | getChildCount (void) const |
return the number of child Window objects currently attached to this Window. More... | |
bool | isChild (const String &name) const |
returns whether a Window with the specified name is currently attached to this Window as a child. 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... | |
bool | isChild (const Window *window) const |
return true if the given Window is a child of this window. More... | |
Window * | getChild (const String &name) const |
return a pointer to the child window with the specified name. More... | |
Window * | recursiveChildSearch (const String &name) const |
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 * | getChildAtIdx (size_t idx) const |
return a pointer to the child window that is attached to 'this' at the given index. 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 (const String &name) const |
return true if the specified Window is some ancestor of this Window More... | |
bool | isAncestor (uint ID) const |
return true if any Window with the given ID is some ancestor of this Window. More... | |
bool | isAncestor (const Window *window) const |
return true if the specified Window is some ancestor of this Window. More... | |
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... | |
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... | |
Rect | getPixelRect (void) const |
return a Rect object describing the Window area in screen space. More... | |
virtual Rect | getPixelRect_impl (void) const |
return a Rect object describing the Window area in screen space. More... | |
Rect | getInnerRect (void) const |
return a Rect object describing the clipped inner area for this window. More... | |
Rect | getUnclippedPixelRect (void) const |
return a Rect object describing the Window area unclipped, in screen space. More... | |
Rect | getUnclippedInnerRect (void) const |
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. More... | |
virtual Rect | getUnclippedInnerRect_impl (void) const |
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. 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 Vector2 &position) const |
check if the given pixel position would hit this window. More... | |
Window * | getChildAtPosition (const Vector2 &position) const |
return the child Window that is hit by the given pixel position More... | |
Window * | getTargetChildAtPosition (const Vector2 &position) const |
return the child Window that is 'hit' by the given position, and is allowed to handle mouse events. More... | |
Window * | getParent (void) 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... | |
Size | getPixelSize (void) const |
Return the window size in pixels. 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... | |
bool | testClassName (const String &class_name) const |
Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. More... | |
VerticalAlignment | getVerticalAlignment () const |
Get the vertical alignment. More... | |
HorizontalAlignment | getHorizontalAlignment () const |
Get the horizontal alignment. More... | |
RenderCache & | getRenderCache () |
Return the RenderCache 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... | |
Size | getParentPixelSize (void) const |
Return the pixel size of the parent element. This always returns a valid object. More... | |
float | getParentPixelWidth (void) const |
Return the pixel Width of the parent element. This always returns a valid number. More... | |
float | getParentPixelHeight (void) const |
Return the pixel Height of the parent element. This always returns a valid number. 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-child window. All auto-child windows have "__auto_" in their name, but this is faster. | |
bool | isWritingXMLAllowed (void) const |
Returns whether this window is allowed to write XML. | |
EventSet::Iterator | getEventIterator () const |
Helper method that returns an EventSet::Iterator object that can be used to iterate over the events currently added to the EventSet of this Window. More... | |
PropertySet::Iterator | getPropertyIterator () const |
Helper method that returns a PropertySet::Iterator object that can be used to iterate over the events currently added to the PropertySet of this Window. More... | |
bool | isDragDropTarget () const |
Returns whether this Window object will receive events generated by the drag and drop support in the system. More... | |
void | rename (const String &new_name) |
Renames the window. 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 | 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 | setPrefix (String prefix) |
void | setText (const String &text) |
Set the current text string for the Window. More... | |
void | setFont (Font *font) |
Set the font used by this Window. More... | |
void | setFont (const String &name) |
Set the font used by this Window. More... | |
void | addChildWindow (const 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. More... | |
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. More... | |
void | removeChildWindow (const String &name) |
Remove the named Window from this windows child list. More... | |
void | removeChildWindow (Window *window) |
Remove the specified Window form this windows child list. More... | |
void | removeChildWindow (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... | |
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... | |
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 | setRestoreCapture (bool setting) |
Set whether this window will remember and restore the previous window that had inputs captured. More... | |
void | setAlpha (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 | requestRedraw (void) const |
Signal the System object to redraw (at least) this Window on the next render cycle. More... | |
void | setMouseCursor (const Image *image) |
Set the mouse cursor image to be used when the mouse enters this window. More... | |
void | setMouseCursor (MouseCursorImage image) |
Set the mouse cursor image to be used when the mouse enters this window. More... | |
void | setMouseCursor (const String &imageset, const String &image_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... | |
void | setVerticalAlignment (const VerticalAlignment alignment) |
Set the vertical alignment. More... | |
void | setHorizontalAlignment (const HorizontalAlignment alignment) |
Set the horizontal alignment. 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 () |
method called to perform extended laying out of attached child windows. More... | |
void | setUserString (const String &name, const String &value) |
Sets the value a named user string, creating it as required. More... | |
void | setArea (const UDim &xpos, const UDim &ypos, const UDim &width, const UDim &height) |
Set the window area. More... | |
void | setArea (const UVector2 &pos, const UVector2 &size) |
Set the window area. More... | |
void | setArea (const URect &area) |
Set the window area. More... | |
void | setPosition (const UVector2 &pos) |
Set the window's position. More... | |
void | setXPosition (const UDim &x) |
Set the window's X position. More... | |
void | setYPosition (const UDim &y) |
Set the window's Y position. More... | |
void | setSize (const UVector2 &size) |
Set the window's size. More... | |
void | setWidth (const UDim &width) |
Set the window's width. More... | |
void | setHeight (const UDim &height) |
Set the window's height. More... | |
void | setMaxSize (const UVector2 &size) |
Set the window's maximum size. More... | |
void | setMinSize (const UVector2 &size) |
Set the window's minimum size. More... | |
const URect & | getArea () const |
Return the windows area. More... | |
const UVector2 & | getPosition () const |
Get the window's position. More... | |
const UDim & | getXPosition () const |
Get the window's X position. More... | |
const UDim & | getYPosition () const |
Get the window's Y position. More... | |
UVector2 | getSize () const |
Get the window's size. More... | |
UDim | getWidth () const |
Get the window's width. More... | |
UDim | getHeight () const |
Get the window's height. More... | |
const UVector2 & | getMaxSize () const |
Get the window's maximum size. More... | |
const UVector2 & | getMinSize () const |
Get the window's minimum size. More... | |
void | render (void) |
Causes the Window object to render itself and all of it's attached children. More... | |
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 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 to specify the Look'N'Feel specification to be used. More... | |
WindowRenderer * | getWindowRenderer (void) const |
Get the currently assigned WindowRenderer. (Look'N'Feel specification). More... | |
String | getWindowRendererName (void) 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 | notifyScreenAreaChanged (void) |
Recursively inform all children that the screen area has changed, and needs to be re-cached. | |
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... | |
![]() | |
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... | |
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... | |
void | setProperty (const String &name, const String &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... | |
Iterator | getIterator (void) const |
Return a PropertySet::Iterator object to iterate over the available Properties. | |
![]() | |
EventSet () | |
Constructor for EventSet objects. | |
virtual | ~EventSet (void) |
Destructor for EventSet objects. | |
void | addEvent (const String &name) |
Add a new Event to the EventSet with the given name. More... | |
void | removeEvent (const String &name) |
Removes the Event with the given name. All connections to the event are disconnected. More... | |
void | removeAllEvents (void) |
Remove all Event objects from the EventSet. More... | |
bool | isEventPresent (const String &name) |
Checks to see if an Event with the given name is present in the 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... | |
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... | |
Iterator | getIterator (void) const |
Return a EventSet::Iterator object to iterate over the events currently added to the EventSet. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | WidgetTypeName |
Window factory name. | |
static const String | EventSelectionModeChanged |
Event fired when the selection mode for the list box changes. | |
static const String | EventNominatedSelectColumnChanged |
Event fired when the nominated select column changes. | |
static const String | EventNominatedSelectRowChanged |
Event fired when the nominated select row changes. | |
static const String | EventVertScrollbarModeChanged |
Event fired when the vertical scroll bar 'force' setting changes. | |
static const String | EventHorzScrollbarModeChanged |
Event fired when the horizontal scroll bar 'force' setting changes. | |
static const String | EventSelectionChanged |
Event fired when the current selection(s) within the list box changes. | |
static const String | EventListContentsChanged |
Event fired when the contents of the list box changes. | |
static const String | EventSortColumnChanged |
Event fired when the sort column changes. | |
static const String | EventSortDirectionChanged |
Event fired when the sort direction changes. | |
static const String | EventListColumnSized |
Event fired when the width of a column in the list changes. | |
static const String | EventListColumnMoved |
Event fired when the column order changes. | |
static const String | VertScrollbarNameSuffix |
Widget name suffix for the vertical scrollbar component. | |
static const String | HorzScrollbarNameSuffix |
Widget name suffix for the horizontal scrollbar component. | |
static const String | ListHeaderNameSuffix |
Widget name suffix for the list header component. | |
![]() | |
static const String | EventNamespace |
< Namespace for global events | |
static const String | EventWindowUpdated |
static const String | EventParentSized |
Parent of this Window has been re-sized. | |
static const String | EventSized |
Window size has changed. | |
static const String | EventMoved |
Window position has changed. | |
static const String | EventTextChanged |
Text string for the Window has changed. | |
static const String | EventFontChanged |
Font object for the Window has been changed. | |
static const String | EventAlphaChanged |
Alpha blend value for the Window has changed. | |
static const String | EventIDChanged |
Client assigned ID code for the Window has changed. | |
static const String | EventActivated |
Window has been activated (has input focus) | |
static const String | EventDeactivated |
Window has been deactivated (loses input focus) | |
static const String | EventShown |
Window has been made visible. | |
static const String | EventHidden |
Window has been hidden from view. | |
static const String | EventEnabled |
Window has been enabled (interaction is possible) | |
static const String | EventDisabled |
Window has been disabled (interaction is no longer possible) | |
static const String | EventClippedByParentChanged |
Clipping by parent mode has been modified. | |
static const String | EventDestroyedByParentChanged |
Destruction by parent mode has been modified. | |
static const String | EventInheritsAlphaChanged |
Alpha inherited from parent mode has been modified. | |
static const String | EventAlwaysOnTopChanged |
Always on top mode has been modified. | |
static const String | EventInputCaptureGained |
Window has captured all inputs. | |
static const String | EventInputCaptureLost |
Window has lost it's capture on inputs. | |
static const String | EventRenderingStarted |
Rendering of the Window has started. | |
static const String | EventRenderingEnded |
Rendering for the Window has finished. | |
static const String | EventChildAdded |
A child Window has been added. | |
static const String | EventChildRemoved |
A child window has been removed. | |
static const String | EventDestructionStarted |
Destruction of the Window is about to begin. | |
static const String | EventZOrderChanged |
The z-order of the window has changed. | |
static const String | EventDragDropItemEnters |
A DragContainer has been dragged over this window. | |
static const String | EventDragDropItemLeaves |
A DragContainer has left this window. | |
static const String | EventDragDropItemDropped |
A DragContainer was dropped on this Window. | |
static const String | EventVerticalAlignmentChanged |
The vertical alignment of the window has changed. | |
static const String | EventHorizontalAlignmentChanged |
The vertical alignment of the window has changed. | |
static const String | EventWindowRendererAttached |
The a new window renderer was attached. | |
static const String | EventWindowRendererDetached |
The currently assigned window renderer was detached. | |
static const String | EventMouseEnters |
Mouse cursor has entered the Window. | |
static const String | EventMouseLeaves |
Mouse cursor has left the Window. | |
static const String | EventMouseMove |
Mouse cursor was moved within the area of the Window. | |
static const String | EventMouseWheel |
Mouse wheel was scrolled within the Window. | |
static const String | EventMouseButtonDown |
A mouse button was pressed down within the Window. | |
static const String | EventMouseButtonUp |
A mouse button was released within the Window. | |
static const String | EventMouseClick |
A mouse button was clicked (down then up) within the Window. | |
static const String | EventMouseDoubleClick |
A mouse button was double-clicked within the Window. | |
static const String | EventMouseTripleClick |
A mouse button was triple-clicked within the Window. | |
static const String | EventKeyDown |
A key on the keyboard was pressed. | |
static const String | EventKeyUp |
A key on the keyboard was released. | |
static const String | EventCharacterKey |
A text character was typed on the keyboard. | |
static const String | TooltipNameSuffix |
Widget name suffix for automatically created tooltip widgets. | |
static const String | AutoWidgetNameSuffix |
Something that all generated widgets will have in their names. | |
Protected Types | |
typedef std::vector< ListRow > | ListItemGrid |
![]() | |
typedef std::vector< Window * > | ChildList |
typedef std::map< String, String, String::FastLessCompare > | UserStringMap |
typedef std::set< String, String::FastLessCompare > | BannedXMLPropertySet |
std::set used to determine whether a window should write a property to XML or not. if the property name is present the property will not be written | |
![]() | |
typedef std::map< String, Event *, String::FastLessCompare > | EventMap |
Protected Member Functions | |
void | configureScrollbars (void) |
Return a Rect object describing, in un-clipped pixels, the window relative area that is to be used for rendering list items. More... | |
bool | selectRange (const MCLGridRef &start, const MCLGridRef &end) |
select all strings between positions start and end. (inclusive). Returns true if something was modified. | |
bool | clearAllSelections_impl (void) |
Clear the selected state for all items (implementation) More... | |
ListboxItem * | getItemAtPoint (const Point &pt) const |
Return the ListboxItem under the given window local pixel co-ordinate. More... | |
bool | setItemSelectState_impl (const MCLGridRef grid_ref, bool state) |
Set select state for the given item. This appropriately selects other items depending upon the select mode. Returns true if something is changed, else false. | |
void | setSelectForItemsInRow (uint row_idx, bool state) |
Set select state for all items in the given row. | |
void | setSelectForItemsInColumn (uint col_idx, bool state) |
Set select state for all items in the given column. | |
void | moveColumn_impl (uint col_idx, uint position) |
Move the column at index col_idx so it is at index position. Implementation version which does not move the header segment (since that may have already happened). More... | |
bool | resetList_impl (void) |
Remove all items from the list. More... | |
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 hierarchy. More... | |
virtual bool | validateWindowRenderer (const String &name) const |
Function used in checking if a WindowRenderer is valid for this window. More... | |
int | writePropertiesXML (XMLSerializer &xml_stream) const |
void | resortList () |
Causes the internal list to be (re)sorted. | |
virtual void | onSelectionModeChanged (WindowEventArgs &e) |
Handler called when the selection mode of the list box changes. | |
virtual void | onNominatedSelectColumnChanged (WindowEventArgs &e) |
Handler called when the nominated selection column changes. | |
virtual void | onNominatedSelectRowChanged (WindowEventArgs &e) |
Handler called when the nominated selection row changes. | |
virtual void | onVertScrollbarModeChanged (WindowEventArgs &e) |
Handler called when the vertical scroll bar 'force' mode is changed. | |
virtual void | onHorzScrollbarModeChanged (WindowEventArgs &e) |
Handler called when the horizontal scroll bar 'force' mode is changed. | |
virtual void | onSelectionChanged (WindowEventArgs &e) |
Handler called when the current selection changes. | |
virtual void | onListContentsChanged (WindowEventArgs &e) |
Handler called when the list contents is changed. | |
virtual void | onSortColumnChanged (WindowEventArgs &e) |
Handler called when the sort column changes. | |
virtual void | onSortDirectionChanged (WindowEventArgs &e) |
Handler called when the sort direction changes. | |
virtual void | onListColumnSized (WindowEventArgs &e) |
Handler called when a column is sized. | |
virtual void | onListColumnMoved (WindowEventArgs &e) |
Handler called when the column order is changed. | |
virtual void | onFontChanged (WindowEventArgs &e) |
Handler called when the window's font is changed. More... | |
virtual void | onSized (WindowEventArgs &e) |
Handler called when the window's size changes. More... | |
virtual void | onMouseButtonDown (MouseEventArgs &e) |
Handler called when a mouse button has been depressed within this window's area. More... | |
virtual void | onMouseWheel (MouseEventArgs &e) |
Handler called when the mouse wheel (z-axis) position changes within this window's area. More... | |
bool | handleHeaderScroll (const EventArgs &e) |
bool | handleHeaderSegMove (const EventArgs &e) |
bool | handleColumnSizeChange (const EventArgs &e) |
bool | handleHorzScrollbar (const EventArgs &e) |
bool | handleVertScrollbar (const EventArgs &e) |
bool | handleSortColumnChange (const EventArgs &e) |
bool | handleSortDirectionChange (const EventArgs &e) |
bool | handleHeaderSegDblClick (const EventArgs &e) |
![]() | |
virtual void | onMoved (WindowEventArgs &e) |
Handler called when the window's position changes. More... | |
virtual void | onTextChanged (WindowEventArgs &e) |
Handler called when the window's text is changed. More... | |
virtual void | onAlphaChanged (WindowEventArgs &e) |
Handler called when the window's alpha blend value is changed. More... | |
virtual void | onIDChanged (WindowEventArgs &e) |
Handler called when the window's client assigned ID is changed. More... | |
virtual void | onShown (WindowEventArgs &e) |
Handler called when the window is shown (made visible). More... | |
virtual void | onHidden (WindowEventArgs &e) |
Handler called when the window is hidden. More... | |
virtual void | onEnabled (WindowEventArgs &e) |
Handler called when the window is enabled. More... | |
virtual void | onDisabled (WindowEventArgs &e) |
Handler called when the window is disabled. More... | |
virtual void | onClippingChanged (WindowEventArgs &e) |
Handler called when the window's setting for being clipped by it's parent is changed. More... | |
virtual void | onParentDestroyChanged (WindowEventArgs &e) |
Handler called when the window's setting for being destroyed automatically be it's parent is changed. More... | |
virtual void | onInheritsAlphaChanged (WindowEventArgs &e) |
Handler called when the window's setting for inheriting alpha-blending is changed. More... | |
virtual void | onAlwaysOnTopChanged (WindowEventArgs &e) |
Handler called when the window's always-on-top setting is changed. More... | |
virtual void | onCaptureGained (WindowEventArgs &e) |
Handler called when this window gains capture of mouse inputs. More... | |
virtual void | onCaptureLost (WindowEventArgs &e) |
Handler called when this window loses capture of mouse inputs. More... | |
virtual void | onRenderingStarted (WindowEventArgs &e) |
Handler called when rendering for this window has started. More... | |
virtual void | onRenderingEnded (WindowEventArgs &e) |
Handler called when rendering for this window has ended. More... | |
virtual void | onZChanged (WindowEventArgs &e) |
Handler called when the z-order position of this window has changed. More... | |
virtual void | onDestructionStarted (WindowEventArgs &e) |
Handler called when this window's destruction sequence has begun. More... | |
virtual void | onActivated (ActivationEventArgs &e) |
Handler called when this window has become the active window. More... | |
virtual void | onDeactivated (ActivationEventArgs &e) |
Handler called when this window has lost input focus and has been deactivated. More... | |
virtual void | onParentSized (WindowEventArgs &e) |
Handler called when this window's parent window has been resized. If this window is the root / GUI Sheet window, this call will be made when the display size changes. More... | |
virtual void | onChildAdded (WindowEventArgs &e) |
Handler called when a child window is added to this window. More... | |
virtual void | onChildRemoved (WindowEventArgs &e) |
Handler called when a child window is removed from this window. More... | |
virtual void | onMouseEnters (MouseEventArgs &e) |
Handler called when the mouse cursor has entered this window's area. More... | |
virtual void | onMouseLeaves (MouseEventArgs &e) |
Handler called when the mouse cursor has left this window's area. More... | |
virtual void | onMouseMove (MouseEventArgs &e) |
Handler called when the mouse cursor has been moved within this window's area. More... | |
virtual void | onMouseButtonUp (MouseEventArgs &e) |
Handler called when a mouse button has been released within this window's area. More... | |
virtual void | onMouseClicked (MouseEventArgs &e) |
Handler called when a mouse button has been clicked (that is depressed and then released, within a specified time) within this window's area. More... | |
virtual void | onMouseDoubleClicked (MouseEventArgs &e) |
Handler called when a mouse button has been double-clicked within this window's area. More... | |
virtual void | onMouseTripleClicked (MouseEventArgs &e) |
Handler called when a mouse button has been triple-clicked within this window's area. More... | |
virtual void | onKeyDown (KeyEventArgs &e) |
Handler called when a key as been depressed while this window has input focus. More... | |
virtual void | onKeyUp (KeyEventArgs &e) |
Handler called when a key as been released while this window has input focus. More... | |
virtual void | onCharacter (KeyEventArgs &e) |
Handler called when a character-key has been pressed while this window has input focus. More... | |
virtual void | onDragDropItemEnters (DragDropEventArgs &e) |
Handler called when a DragContainer is dragged over this window. More... | |
virtual void | onDragDropItemLeaves (DragDropEventArgs &e) |
Handler called when a DragContainer is dragged over this window. More... | |
virtual void | onDragDropItemDropped (DragDropEventArgs &e) |
Handler called when a DragContainer is dragged over this window. More... | |
virtual void | onVerticalAlignmentChanged (WindowEventArgs &e) |
Handler called when the vertical alignment setting for the window is changed. More... | |
virtual void | onHorizontalAlignmentChanged (WindowEventArgs &e) |
Handler called when the horizontal alignment setting for the window is changed. More... | |
virtual void | onWindowRendererAttached (WindowEventArgs &e) |
Handler called when a new window renderer object is attached. More... | |
virtual void | onWindowRendererDetached (WindowEventArgs &e) |
Handler called when the currently attached window renderer object is detached. More... | |
virtual void | updateSelf (float elapsed) |
Perform actual update processing for this Window. More... | |
virtual void | drawSelf (float z) |
Perform the actual rendering for this Window. More... | |
virtual void | populateRenderCache () |
Update the rendering cache. More... | |
void | setParent (Window *parent) |
Set the parent window for this window object. More... | |
Size | getSize_impl (const Window *window) const |
void | generateAutoRepeatEvent (MouseButton button) |
Fires off a repeated mouse button down event for this window. | |
void | banPropertyFromXML (const Property *property) |
Adds a property to the XML ban list. | |
bool | isPropertyBannedFromXML (const Property *property) const |
Returns whether a property is banned from XML. | |
bool | isPropertyAtDefault (const Property *property) const |
Returns whether a property is at it's default value. This function is different from Property::isDefatult as it takes the assigned look'n'feel (if the is one) into account. | |
void | notifyClippingChanged (void) |
Recursively inform all children that the clipping has changed and screen rects needs to be recached. | |
virtual void | cleanupChildren (void) |
Cleanup child windows. | |
virtual void | addChild_impl (Window *wnd) |
Add given window to child list at an appropriate position. | |
virtual void | removeChild_impl (Window *wnd) |
Remove given window from child list. | |
virtual void | onZChange_impl (void) |
Notify 'this' and all siblings of a ZOrder change event. | |
void | addStandardProperties (void) |
Add standard CEGUI::Window properties. | |
virtual bool | moveToFront_impl (bool wasClicked) |
Implements move to front behavior. More... | |
bool | doRiseOnClick (void) |
Implementation of rise on click functionality. More... | |
void | setArea_impl (const UVector2 &pos, const UVector2 &size, bool topLeftSizing=false, bool fireEvents=true) |
Implementation method to modify window area while correctly applying min / max size processing, and firing any appropriate events. More... | |
void | addWindowToDrawList (Window &wnd, bool at_back=false) |
Add the given window to the drawing list at an appropriate position for it's settings and the required direction. Basically, when at_back is false, the window will appear in front of all other windows with the same 'always on top' setting. When at_back is true, the window will appear behind all other windows wih the same 'always on top' setting. More... | |
void | removeWindowFromDrawList (const Window &wnd) |
Removes the window from the drawing list. If the window is not attached to the drawing list then nothing happens. More... | |
bool | isTopOfZOrder () const |
Return whether the window is at the top of the Z-Order. This will correctly take into account 'Always on top' windows as needed. More... | |
virtual int | writeChildWindowsXML (XMLSerializer &xml_stream) const |
virtual bool | writeAutoChildWindowXML (XMLSerializer &xml_stream) const |
Window (const Window &wnd) | |
Window & | operator= (const Window &wnd) |
![]() | |
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... | |
void | fireEvent_impl (const String &name, EventArgs &args) |
Implementation event firing member. | |
EventSet (EventSet &e) | |
EventSet & | operator= (EventSet &e) |
Static Protected Member Functions | |
static bool | pred_descend (const ListRow &a, const ListRow &b) |
std algorithm predicate used for sorting in descending order | |
Protected Attributes | |
bool | d_forceVertScroll |
true if vertical scrollbar should always be displayed | |
bool | d_forceHorzScroll |
true if horizontal scrollbar should always be displayed | |
SelectionMode | d_selectMode |
Holds selection mode (represented by settings below). | |
uint | d_nominatedSelectCol |
Nominated column for single column selection. | |
uint | d_nominatedSelectRow |
Nominated row for single row selection. | |
bool | d_multiSelect |
Allow multiple selections. | |
bool | d_fullRowSelect |
All items in a row are selected. | |
bool | d_fullColSelect |
All items in a column are selected. | |
bool | d_useNominatedRow |
true if we use a nominated row to select. | |
bool | d_useNominatedCol |
true if we use a nominated col to select. | |
ListboxItem * | d_lastSelected |
holds pointer to the last selected item (used in range selections) | |
uint | d_columnCount |
keeps track of the number of columns. | |
ListItemGrid | d_grid |
Holds the list box data. | |
![]() | |
ChildList | d_children |
The list of child Window objects attached to this. | |
ChildList | d_drawList |
Child window objects arranged in rendering order. | |
Window * | d_oldCapture |
The Window that previously had capture (used for restoreOldCapture mode) | |
Window * | d_parent |
Holds pointer to the parent window. | |
Font * | d_font |
Holds pointer to the Window objects current Font. | |
String | d_text |
Holds the text / label / caption for this Window. | |
uint | d_ID |
User ID assigned to this Window. | |
float | d_alpha |
Alpha transparency setting for the Window. | |
URect | d_area |
This Window objects area as defined by a URect. | |
Size | d_pixelSize |
Current constrained pixel size of the window. | |
const Image * | d_mouseCursor |
Holds pointer to the Window objects current mouse cursor image. | |
UserStringMap | d_userStrings |
Holds a collection of named user string values. | |
void * | d_userData |
Holds pointer to some user assigned data. | |
HorizontalAlignment | d_horzAlign |
Specifies the base for horizontal alignment. | |
VerticalAlignment | d_vertAlign |
Specifies the base for vertical alignment. | |
UVector2 | d_minSize |
current minimum size for the window. | |
UVector2 | d_maxSize |
current maximum size for the window. | |
bool | d_enabled |
true when Window is enabled | |
bool | d_visible |
true when Window is visible (that is it will be rendered, but may be obscured so no necesarily really visible) | |
bool | d_active |
true when Window is the active Window (receiving inputs). | |
bool | d_clippedByParent |
true when Window will be clipped by parent Window area Rect. | |
bool | d_destroyedByParent |
true when Window will be auto-destroyed by parent. | |
bool | d_alwaysOnTop |
true if Window will be drawn on top of all other Windows | |
bool | d_inheritsAlpha |
true if the Window inherits alpha from the parent Window | |
bool | d_restoreOldCapture |
true if the Window restores capture to the previous window when it releases capture. | |
bool | d_zOrderingEnabled |
true if the Window responds to z-order change requests. | |
bool | d_wantsMultiClicks |
true if the Window wishes to hear about multi-click mouse events. | |
bool | d_distCapturedInputs |
true if unhandled captured inputs should be distributed to child windows. | |
bool | d_riseOnClick |
True if the window should come to the front of the z order in response to a left mouse button down event. | |
bool | d_autoRepeat |
true if button will auto-repeat mouse button down events while mouse button is held down. | |
float | d_repeatDelay |
seconds before first repeat event is fired | |
float | d_repeatRate |
secons between further repeats after delay has expired. | |
bool | d_repeating |
implements repeating - is true after delay has elapsed, | |
float | d_repeatElapsed |
implements repeating - tracks time elapsed. | |
MouseButton | d_repeatButton |
Button we're tracking (implication of this is that we only support one button at a time). | |
bool | d_dragDropTarget |
true if window will receive drag and drop related notifications | |
String | d_tooltipText |
Text string used as tip for this window. | |
Tooltip * | d_customTip |
Possible custom Tooltip for this window. | |
bool | d_weOwnTip |
true if this Window created the custom Tooltip. | |
bool | d_inheritsTipText |
true if the Window inherits tooltip text from its parent (when none set for itself). | |
RenderCache | d_renderCache |
Object which acts as a cache for Images to be drawn by this Window. | |
bool | d_needsRedraw |
true if window image cache needs to be regenerated. | |
String | d_lookName |
Name of the Look assigned to this window (if any). | |
WindowRenderer * | d_windowRenderer |
The WindowRenderer module that implements the Look'N'Feel specification. | |
bool | d_initialising |
true when this window is currently being initialised (creating children etc) | |
bool | d_destructionStarted |
true when this window is being destroyed. | |
bool | d_mousePassThroughEnabled |
true if this window can never be "hit" by the cursor. false for normal mouse event handling. | |
bool | d_autoWindow |
true when this window is an auto-window (it's name contains __auto_) | |
BannedXMLPropertySet | d_bannedXMLProperties |
bool | d_allowWriteXML |
true if this window is allowed to write XML, false if not | |
Rect | d_screenUnclippedRect |
current unclipped screen rect in pixels | |
bool | d_screenUnclippedRectValid |
Rect | d_screenUnclippedInnerRect |
current unclipped inner screen rect in pixels | |
bool | d_screenUnclippedInnerRectValid |
Rect | d_screenRect |
current fully clipped screen rect in pixels | |
bool | d_screenRectValid |
Rect | d_screenInnerRect |
current fully clipped inner screen rect in pixels | |
bool | d_screenInnerRectValid |
const String | d_type |
String holding the type name for the Window (is also the name of the WindowFactory that created us) | |
String | d_name |
The name of the window (GUI system unique). | |
String | d_falagardType |
Type name of the window as defined in a Falagard mapping. | |
String | d_windowPrefix |
The prefix used on this window (if any) when created instanced windows. | |
![]() | |
EventMap | d_events |
bool | d_muted |
true if events for this EventSet have been muted. | |
Friends | |
class | MultiColumnListWindowRenderer |
Additional Inherited Members | |
![]() | |
static Window * | getCaptureWindow (void) |
return the Window that currently has inputs captured. More... | |
![]() | |
static Window * | d_captureWindow = 0 |
Window that has captured inputs. | |
static WindowProperties::Alpha | d_alphaProperty |
static WindowProperties::AlwaysOnTop | d_alwaysOnTopProperty |
static WindowProperties::ClippedByParent | d_clippedByParentProperty |
static WindowProperties::DestroyedByParent | d_destroyedByParentProperty |
static WindowProperties::Disabled | d_disabledProperty |
static WindowProperties::Font | d_fontProperty |
static WindowProperties::ID | d_IDProperty |
static WindowProperties::InheritsAlpha | d_inheritsAlphaProperty |
static WindowProperties::MouseCursorImage | d_mouseCursorProperty |
static WindowProperties::RestoreOldCapture | d_restoreOldCaptureProperty |
static WindowProperties::Text | d_textProperty |
static WindowProperties::Visible | d_visibleProperty |
static WindowProperties::ZOrderChangeEnabled | d_zOrderChangeProperty |
static WindowProperties::WantsMultiClickEvents | d_wantsMultiClicksProperty |
static WindowProperties::MouseButtonDownAutoRepeat | d_autoRepeatProperty |
static WindowProperties::AutoRepeatDelay | d_autoRepeatDelayProperty |
static WindowProperties::AutoRepeatRate | d_autoRepeatRateProperty |
static WindowProperties::DistributeCapturedInputs | d_distInputsProperty |
static WindowProperties::CustomTooltipType | d_tooltipTypeProperty |
static WindowProperties::Tooltip | d_tooltipProperty |
static WindowProperties::InheritsTooltipText | d_inheritsTooltipProperty |
static WindowProperties::RiseOnClick | d_riseOnClickProperty |
static WindowProperties::VerticalAlignment | d_vertAlignProperty |
static WindowProperties::HorizontalAlignment | d_horzAlignProperty |
static WindowProperties::UnifiedAreaRect | d_unifiedAreaRectProperty |
static WindowProperties::UnifiedPosition | d_unifiedPositionProperty |
static WindowProperties::UnifiedXPosition | d_unifiedXPositionProperty |
static WindowProperties::UnifiedYPosition | d_unifiedYPositionProperty |
static WindowProperties::UnifiedSize | d_unifiedSizeProperty |
static WindowProperties::UnifiedWidth | d_unifiedWidthProperty |
static WindowProperties::UnifiedHeight | d_unifiedHeightProperty |
static WindowProperties::UnifiedMinSize | d_unifiedMinSizeProperty |
static WindowProperties::UnifiedMaxSize | d_unifiedMaxSizeProperty |
static WindowProperties::MousePassThroughEnabled | d_mousePassThroughEnabledProperty |
static WindowProperties::WindowRenderer | d_windowRendererProperty |
static WindowProperties::LookNFeel | d_lookNFeelProperty |
static WindowProperties::DragDropTarget | d_dragDropTargetProperty |
Base class for the multi column list widget.
Add a column to the list box.
text | String object containing the text label for the column header. |
col_id | ID code to be assigned to the column header. |
width | UDim describing the initial width to be set for the column. |
References getColumnCount(), and insertColumn().
uint CEGUI::MultiColumnList::addRow | ( | uint | row_id = 0 | ) |
Add an empty row to the list box.
row_id | ID code to be assigned to the new row. |
Referenced by insertRow().
uint CEGUI::MultiColumnList::addRow | ( | ListboxItem * | item, |
uint | col_id, | ||
uint | row_id = 0 |
||
) |
Add a row to the list box, and set the item in the column with ID col_id to item.
item | Pointer to a ListboxItem to be used as the initial contents for the column with ID col_id. |
col_id | ID code of the column whos initial item is to be set to item. |
row_id | ID code to be assigned to the new row. |
InvalidRequestException | thrown if no column with the specified ID is attached to the list box. |
References d_grid, getColumnCount(), getColumnWithID(), getRowCount(), getSortColumn(), getSortDirection(), CEGUI::ListHeaderSegment::None, onListContentsChanged(), and CEGUI::ListboxItem::setOwnerWindow().
void CEGUI::MultiColumnList::autoSizeColumnHeader | ( | uint | col_idx | ) |
Automatically determines the "best fit" size for the specified column and sets the column width to the same.
col_idx | Zero based index of the column to be sized. |
InvalidRequestException | thrown if col_idx is out of range. |
References getColumnCount(), getWidestColumnItemWidth(), CEGUI::ListHeader::MinimumSegmentPixelWidth, and setColumnHeaderWidth().
void CEGUI::MultiColumnList::clearAllSelections | ( | void | ) |
Removed the selected state from any currently selected ListboxItem attached to the list.
References clearAllSelections_impl(), and onSelectionChanged().
Referenced by setNominatedSelectionColumn(), setNominatedSelectionRow(), and setSelectionMode().
|
protected |
Clear the selected state for all items (implementation)
References d_grid, getColumnCount(), getRowCount(), CEGUI::ListboxItem::isSelected(), and CEGUI::ListboxItem::setSelected().
Referenced by clearAllSelections(), onMouseButtonDown(), and setItemSelectState_impl().
|
protected |
Return a Rect object describing, in un-clipped pixels, the window relative area that is to be used for rendering list items.
display required integrated scroll bars according to current state of the list box and update their values.
References d_forceHorzScroll, d_forceVertScroll, CEGUI::Rect::getHeight(), CEGUI::Window::getHeight(), getHorzScrollbar(), getListHeader(), getListRenderArea(), CEGUI::Scrollbar::getScrollPosition(), getTotalRowsHeight(), CEGUI::ListHeader::getTotalSegmentsPixelExtent(), getVertScrollbar(), CEGUI::Rect::getWidth(), CEGUI::Window::getWidth(), CEGUI::Window::hide(), CEGUI::Scrollbar::setDocumentSize(), CEGUI::Scrollbar::setPageSize(), CEGUI::Scrollbar::setScrollPosition(), CEGUI::Scrollbar::setStepSize(), and CEGUI::Window::show().
Referenced by handleUpdatedItemData(), initialiseComponents(), onListColumnSized(), onListContentsChanged(), onSized(), setShowHorzScrollbar(), and setShowVertScrollbar().
ListboxItem * CEGUI::MultiColumnList::findColumnItemWithText | ( | const String & | text, |
uint | col_idx, | ||
const ListboxItem * | start_item | ||
) | const |
Return the ListboxItem in column col_idx that has the text string text.
text | String object containing the text to be searched for. |
col_idx | Zero based index of the column to be searched. |
start_item | Pointer to the ListboxItem where the exclusive search is to start, or NULL to search from the top of the column. |
InvalidRequestException | thrown if start_item is not attached to the list box, or if col_idx is out of range. |
References d_grid, getColumnCount(), getItemRowIndex(), getRowCount(), and CEGUI::Window::getText().
ListboxItem * CEGUI::MultiColumnList::findListItemWithText | ( | const String & | text, |
const ListboxItem * | start_item | ||
) | const |
Return the ListboxItem that has the text string text.
text | String object containing the text to be searched for. |
start_item | Pointer to the ListboxItem where the exclusive search is to start, or NULL to search the whole list box. |
InvalidRequestException | thrown if start_item is not attached to the list box. |
References CEGUI::MCLGridRef::column, d_grid, getColumnCount(), getItemGridReference(), getRowCount(), CEGUI::Window::getText(), and CEGUI::MCLGridRef::row.
ListboxItem * CEGUI::MultiColumnList::findRowItemWithText | ( | const String & | text, |
uint | row_idx, | ||
const ListboxItem * | start_item | ||
) | const |
Return the ListboxItem in row row_idx that has the text string text.
text | String object containing the text to be searched for. |
row_idx | Zero based index of the row to be searched. |
start_item | Pointer to the ListboxItem where the exclusive search is to start, or NULL to search from the start of the row. |
InvalidRequestException | thrown if start_item is not attached to the list box, or if row_idx is out of range. |
References d_grid, getColumnCount(), getItemColumnIndex(), getRowCount(), and CEGUI::Window::getText().
uint CEGUI::MultiColumnList::getColumnCount | ( | void | ) | const |
Return the number of columns in the multi-column list.
References d_columnCount.
Referenced by addColumn(), addRow(), autoSizeColumnHeader(), clearAllSelections_impl(), findColumnItemWithText(), findListItemWithText(), findRowItemWithText(), getHighestRowItemHeight(), getItemAtGridReference(), getItemAtPoint(), getItemColumnIndex(), getNextSelected(), getSelectedCount(), getTotalColumnHeadersWidth(), getWidestColumnItemWidth(), insertColumn(), insertRow(), isListboxItemInColumn(), isListboxItemInList(), isListboxItemInRow(), moveColumn_impl(), onFontChanged(), removeColumn(), removeRow(), resetList_impl(), setItem(), setItemSelectState_impl(), and setSelectForItemsInRow().
UDim CEGUI::MultiColumnList::getColumnHeaderWidth | ( | uint | col_idx | ) | const |
Return the width of the specified column header (and therefore the column itself).
col_idx | Zero based column index of the column whos width is to be returned. |
InvalidRequestException | thrown if column is out of range. |
References CEGUI::ListHeader::getColumnWidth(), and getListHeader().
uint CEGUI::MultiColumnList::getColumnID | ( | uint | col_idx | ) | const |
Return the ID code assigned to the requested column.
col_idx | Zero based index of the column whos ID code is to be returned. |
InvalidRequestException | thrown if col_idx is out of range |
References CEGUI::Window::getID(), getListHeader(), and CEGUI::ListHeader::getSegmentFromColumn().
Referenced by CEGUI::MultiColumnListProperties::SortColumnID::get().
uint CEGUI::MultiColumnList::getColumnWithHeaderText | ( | const String & | text | ) | const |
Return the zero based index of the column whos header text matches the specified text.
text | String object containing the text to be searched for. |
InvalidRequestException | thrown if no columns header has the requested text. |
References CEGUI::ListHeader::getColumnWithText(), and getListHeader().
uint CEGUI::MultiColumnList::getColumnWithID | ( | uint | col_id | ) | const |
Return the zero based column index of the column with the specified ID.
col_id | ID code of the column whos index is to be returned. |
InvalidRequestException | thrown if no attached column has the requested ID. |
References CEGUI::ListHeader::getColumnFromID(), and getListHeader().
Referenced by addRow(), moveColumnWithID(), removeColumnWithID(), setItem(), and setNominatedSelectionColumnID().
ListboxItem * CEGUI::MultiColumnList::getFirstSelectedItem | ( | void | ) | const |
Return a pointer to the first selected ListboxItem attached to this list box.
References getNextSelected().
ListHeaderSegment & CEGUI::MultiColumnList::getHeaderSegmentForColumn | ( | uint | col_idx | ) | const |
Return the ListHeaderSegment object for the specified column.
col_idx | zero based index of the column whos ListHeaderSegment is to be returned. |
InvalidRequestException | thrown if col_idx is out of range. |
References getListHeader(), and CEGUI::ListHeader::getSegmentFromColumn().
Referenced by insertColumn(), and onFontChanged().
Scrollbar * CEGUI::MultiColumnList::getHorzScrollbar | ( | ) | const |
Return a pointer to the horizontal scrollbar component widget for this MultiColumnList.
UnknownObjectException | Thrown if the horizontal Scrollbar component does not exist. |
References CEGUI::Window::getName(), and HorzScrollbarNameSuffix.
Referenced by configureScrollbars(), getItemAtPoint(), initialiseComponents(), and onMouseWheel().
ListboxItem * CEGUI::MultiColumnList::getItemAtGridReference | ( | const MCLGridRef & | grid_ref | ) | const |
Return a pointer to the ListboxItem at the specified grid reference.
grid_ref | MCLGridRef object that describes the position of the ListboxItem to be returned. |
InvalidRequestException | thrown if grid_ref is invalid for this list box. |
References CEGUI::MCLGridRef::column, d_grid, getColumnCount(), getRowCount(), and CEGUI::MCLGridRef::row.
Referenced by isItemSelected().
|
protected |
Return the ListboxItem under the given window local pixel co-ordinate.
References d_grid, getColumnCount(), getHighestRowItemHeight(), getHorzScrollbar(), getListHeader(), getListRenderArea(), CEGUI::Window::getPixelSize(), getRowCount(), CEGUI::Scrollbar::getScrollPosition(), CEGUI::ListHeader::getSegmentFromColumn(), getVertScrollbar(), and CEGUI::Window::getWidth().
Referenced by onMouseButtonDown().
uint CEGUI::MultiColumnList::getItemColumnIndex | ( | const ListboxItem * | item | ) | const |
Return the current zero based index of the column that contains item.
item | Pointer to the ListboxItem that the column index is to returned for. |
InvalidRequestException | thrown if item is not attached to the list box. |
References getColumnCount(), and isListboxItemInColumn().
Referenced by findRowItemWithText(), and getItemGridReference().
MCLGridRef CEGUI::MultiColumnList::getItemGridReference | ( | const ListboxItem * | item | ) | const |
Return the grid reference for item.
item | Pointer to the ListboxItem whos current grid reference is to be returned. |
InvalidRequestException | thrown if item is not attached to the list box. |
References getItemColumnIndex(), and getItemRowIndex().
Referenced by findListItemWithText(), getNextSelected(), onMouseButtonDown(), selectRange(), and setItemSelectState().
uint CEGUI::MultiColumnList::getItemRowIndex | ( | const ListboxItem * | item | ) | const |
Return the zero based index of the Row that contains item.
item | Pointer to the ListboxItem that the row index is to returned for. |
InvalidRequestException | thrown if item is not attached to the list box. |
References getRowCount(), and isListboxItemInRow().
Referenced by findColumnItemWithText(), and getItemGridReference().
ListHeader * CEGUI::MultiColumnList::getListHeader | ( | ) | const |
Return a pointer to the list header component widget for this MultiColumnList.
UnknownObjectException | Thrown if the list header component does not exist. |
References CEGUI::Window::getName(), and ListHeaderNameSuffix.
Referenced by configureScrollbars(), getColumnHeaderWidth(), getColumnID(), getColumnWithHeaderText(), getColumnWithID(), getHeaderSegmentForColumn(), getItemAtPoint(), getNominatedSelectionColumnID(), getSortColumn(), getSortDirection(), getTotalColumnHeadersWidth(), initialiseComponents(), insertColumn(), isUserColumnDraggingEnabled(), isUserColumnSizingEnabled(), isUserSortControlEnabled(), moveColumn(), removeColumn(), setColumnHeaderWidth(), setSortColumn(), setSortColumnByID(), setSortDirection(), setUserColumnDraggingEnabled(), setUserColumnSizingEnabled(), and setUserSortControlEnabled().
Rect CEGUI::MultiColumnList::getListRenderArea | ( | void | ) | const |
Return a Rect object describing, in un-clipped pixels, the window relative area that is to be used for rendering list items.
References CEGUI::Window::d_windowRenderer, and CEGUI::MultiColumnListWindowRenderer::getListRenderArea().
Referenced by configureScrollbars(), and getItemAtPoint().
ListboxItem * CEGUI::MultiColumnList::getNextSelected | ( | const ListboxItem * | start_item | ) | const |
Return a pointer to the next selected ListboxItem after start_item.
start_item | Pointer to the ListboxItem where the exclusive search is to start, or NULL to search the whole list box. |
InvalidRequestException | thrown if start_item is not attached to the list box. |
References CEGUI::MCLGridRef::column, d_grid, getColumnCount(), getItemGridReference(), getRowCount(), CEGUI::ListboxItem::isSelected(), and CEGUI::MCLGridRef::row.
Referenced by getFirstSelectedItem().
uint CEGUI::MultiColumnList::getNominatedSelectionColumn | ( | void | ) | const |
Return the index of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes.
References d_nominatedSelectCol.
uint CEGUI::MultiColumnList::getNominatedSelectionColumnID | ( | void | ) | const |
Return the ID of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes.
References d_nominatedSelectCol, CEGUI::Window::getID(), getListHeader(), and CEGUI::ListHeader::getSegmentFromColumn().
uint CEGUI::MultiColumnList::getNominatedSelectionRow | ( | void | ) | const |
Return the index of the currently set nominated selection row to be used when in one of the NominatedRow* selection modes.
References d_nominatedSelectRow.
uint CEGUI::MultiColumnList::getRowCount | ( | void | ) | const |
Return the number of rows in the multi-column list.
References d_grid.
Referenced by addRow(), clearAllSelections_impl(), findColumnItemWithText(), findListItemWithText(), findRowItemWithText(), getHighestRowItemHeight(), getItemAtGridReference(), getItemAtPoint(), getItemRowIndex(), getNextSelected(), getRowID(), getRowWithID(), getSelectedCount(), getTotalRowsHeight(), getWidestColumnItemWidth(), insertColumn(), insertRow(), isListboxItemInColumn(), isListboxItemInList(), isListboxItemInRow(), moveColumn_impl(), removeColumn(), removeRow(), resetList_impl(), setItem(), setItemSelectState_impl(), setRowID(), and setSelectForItemsInColumn().
uint CEGUI::MultiColumnList::getRowID | ( | uint | row_idx | ) | const |
Return the ID code assigned to the requested row.
row_idx | Zero based index of the row who's ID code is to be returned. |
InvalidRequestException | thrown if row_idx is out of range |
References d_grid, and getRowCount().
uint CEGUI::MultiColumnList::getRowWithID | ( | uint | row_id | ) | const |
Return the zero based row index of the row with the specified ID.
row_id | ID code of the row who's index is to be returned. |
InvalidRequestException | thrown if no row has the requested ID. |
References d_grid, and getRowCount().
uint CEGUI::MultiColumnList::getSelectedCount | ( | void | ) | const |
Return the number of selected ListboxItems attached to this list box.
return uint value equal to the number of ListboxItems attached to this list box that are currently selected.
References d_grid, getColumnCount(), getRowCount(), and CEGUI::ListboxItem::isSelected().
MultiColumnList::SelectionMode CEGUI::MultiColumnList::getSelectionMode | ( | void | ) | const |
Return the currently set selection mode.
References d_selectMode.
uint CEGUI::MultiColumnList::getSortColumn | ( | void | ) | const |
Return the zero based index of the current sort column. There must be at least one column to successfully call this method.
InvalidRequestException | thrown if there are no columns in this multi column list. |
References getListHeader(), and CEGUI::ListHeader::getSortColumn().
Referenced by addRow(), CEGUI::MultiColumnListProperties::SortColumnID::get(), insertRow(), setSortColumn(), and setSortColumnByID().
ListHeaderSegment::SortDirection CEGUI::MultiColumnList::getSortDirection | ( | void | ) | const |
Return the currently set sort direction.
References getListHeader(), and CEGUI::ListHeader::getSortDirection().
Referenced by addRow(), insertRow(), resortList(), and setSortDirection().
UDim CEGUI::MultiColumnList::getTotalColumnHeadersWidth | ( | void | ) | const |
Return the total width of all column headers.
References getColumnCount(), CEGUI::ListHeader::getColumnWidth(), and getListHeader().
Scrollbar * CEGUI::MultiColumnList::getVertScrollbar | ( | ) | const |
Return a pointer to the vertical scrollbar component widget for this MultiColumnList.
UnknownObjectException | Thrown if the vertical Scrollbar component does not exist. |
References CEGUI::Window::getName(), and VertScrollbarNameSuffix.
Referenced by configureScrollbars(), getItemAtPoint(), initialiseComponents(), and onMouseWheel().
void CEGUI::MultiColumnList::handleUpdatedItemData | ( | void | ) |
Inform the list box that one or more attached ListboxItems have been externally modified, and the list should re-sync its internal state and refresh the display as needed.
References configureScrollbars(), CEGUI::Window::requestRedraw(), and resortList().
|
virtual |
Initialise the Window based object ready for use.
Reimplemented from CEGUI::Window.
References configureScrollbars(), CEGUI::Scrollbar::EventScrollPositionChanged, CEGUI::ListHeader::EventSegmentRenderOffsetChanged, CEGUI::ListHeader::EventSegmentSequenceChanged, CEGUI::ListHeader::EventSegmentSized, CEGUI::ListHeader::EventSortColumnChanged, CEGUI::ListHeader::EventSortDirectionChanged, CEGUI::ListHeader::EventSplitterDoubleClicked, getHorzScrollbar(), getListHeader(), getVertScrollbar(), CEGUI::ListHeaderSegment::None, CEGUI::Window::performChildWindowLayout(), setSortDirection(), and CEGUI::EventSet::subscribeEvent().
void CEGUI::MultiColumnList::insertColumn | ( | const String & | text, |
uint | col_id, | ||
const UDim & | width, | ||
uint | position | ||
) |
Insert a new column in the list.
text | String object containing the text label for the column header. |
col_id | ID code to be assigned to the column header. |
width | UDim describing the initial width to be set for the column. |
position | Zero based index where the column is to be inserted. If this is greater than the current number of columns, the new column is inserted at the end. |
References d_columnCount, d_grid, d_nominatedSelectCol, getColumnCount(), CEGUI::Window::getFont(), getHeaderSegmentForColumn(), getListHeader(), getRowCount(), CEGUI::ListHeader::insertColumn(), onListContentsChanged(), and CEGUI::Window::setFont().
Referenced by addColumn().
uint CEGUI::MultiColumnList::insertRow | ( | uint | row_idx, |
uint | row_id = 0 |
||
) |
Insert an empty row into the list box.
row_idx | Zero based index where the row should be inserted. If this is greater than the current number of rows, the row is appended to the list. |
row_id | ID code to be assigned to the new row. |
uint CEGUI::MultiColumnList::insertRow | ( | ListboxItem * | item, |
uint | col_id, | ||
uint | row_idx, | ||
uint | row_id = 0 |
||
) |
Insert a row into the list box, and set the item in the column with ID col_id to item.
item | Pointer to a ListboxItem to be used as the initial contents for the column with ID col_id. |
col_id | ID code of the column whos initial item is to be set to item. |
row_idx | Zero based index where the row should be inserted. If this is greater than the current number of rows, the row is appended to the list. |
row_id | ID code to be assigned to the new row. |
InvalidRequestException | thrown if no column with the specified ID is attached to the list box. |
References addRow(), d_grid, getColumnCount(), getRowCount(), getSortColumn(), getSortDirection(), CEGUI::ListHeaderSegment::None, onListContentsChanged(), and setItem().
bool CEGUI::MultiColumnList::isHorzScrollbarAlwaysShown | ( | void | ) | const |
Return whether the horizontal scroll bar is always shown.
References d_forceHorzScroll.
bool CEGUI::MultiColumnList::isItemSelected | ( | const MCLGridRef & | grid_ref | ) | const |
Return whether the ListboxItem at grid_ref is selected.
grid_ref | MCLGridRef object describing the grid reference that is to be examined. |
InvalidRequestException | thrown if grid_ref contains an invalid grid position. |
References getItemAtGridReference(), and CEGUI::ListboxItem::isSelected().
bool CEGUI::MultiColumnList::isListboxItemInColumn | ( | const ListboxItem * | item, |
uint | col_idx | ||
) | const |
return whether ListboxItem item is attached to the column at index col_idx.
item | Pointer to the ListboxItem to look for. |
col_idx | Zero based index of the column that is to be searched. |
InvalidRequestException | thrown if col_idx is out of range. |
References d_grid, getColumnCount(), and getRowCount().
Referenced by getItemColumnIndex().
bool CEGUI::MultiColumnList::isListboxItemInList | ( | const ListboxItem * | item | ) | const |
return whether ListboxItem item is attached to the list box.
item | Pointer to the ListboxItem to look for. |
References d_grid, getColumnCount(), and getRowCount().
bool CEGUI::MultiColumnList::isListboxItemInRow | ( | const ListboxItem * | item, |
uint | row_idx | ||
) | const |
return whether ListboxItem item is attached to the row at index row_idx.
item | Pointer to the ListboxItem to look for. |
row_idx | Zero based index of the row that is to be searched. |
InvalidRequestException | thrown if row_idx is out of range. |
References d_grid, getColumnCount(), and getRowCount().
Referenced by getItemRowIndex().
bool CEGUI::MultiColumnList::isUserColumnDraggingEnabled | ( | void | ) | const |
Return whether the user may modify the order of the columns.
References getListHeader(), and CEGUI::ListHeader::isColumnDraggingEnabled().
bool CEGUI::MultiColumnList::isUserColumnSizingEnabled | ( | void | ) | const |
Return whether the user may size column segments.
References getListHeader(), and CEGUI::ListHeader::isColumnSizingEnabled().
bool CEGUI::MultiColumnList::isUserSortControlEnabled | ( | void | ) | const |
Return whether user manipulation of the sort column and direction are enabled.
References getListHeader(), and CEGUI::ListHeader::isSortingEnabled().
bool CEGUI::MultiColumnList::isVertScrollbarAlwaysShown | ( | void | ) | const |
Return whether the vertical scroll bar is always shown.
References d_forceVertScroll.
void CEGUI::MultiColumnList::moveColumn | ( | uint | col_idx, |
uint | position | ||
) |
Move the column at index col_idx so it is at index position.
col_idx | Zero based index of the column to be moved. |
position | Zero based index of the new position for the column. |
InvalidRequestException | thrown if col_idx is invalid. |
References getListHeader(), and CEGUI::ListHeader::moveColumn().
Referenced by moveColumnWithID().
|
protected |
Move the column at index col_idx so it is at index position. Implementation version which does not move the header segment (since that may have already happened).
InvalidRequestException | thrown if col_idx is invalid. |
References d_grid, d_nominatedSelectCol, getColumnCount(), and getRowCount().
void CEGUI::MultiColumnList::moveColumnWithID | ( | uint | col_id, |
uint | position | ||
) |
Move the column with ID col_id so it is at index position.
col_id | ID code of the column to be moved. |
position | Zero based index of the new position for the column. |
InvalidRequestException | thrown if no column with col_id is available on this list box. |
References getColumnWithID(), and moveColumn().
|
protectedvirtual |
Handler called when the window's font is changed.
e | WindowEventArgs object whose 'window' pointer field is set to the window that triggered the event. For this event the trigger window is always 'this'. |
Reimplemented from CEGUI::Window.
References getColumnCount(), CEGUI::Window::getFont(), getHeaderSegmentForColumn(), CEGUI::Window::onFontChanged(), and CEGUI::Window::setFont().
|
protectedvirtual |
Handler called when a mouse button has been depressed within this window's area.
e | MouseEventArgs object. All fields are valid. |
Reimplemented from CEGUI::Window.
References CEGUI::MouseEventArgs::button, clearAllSelections_impl(), CEGUI::Control, d_lastSelected, d_multiSelect, getItemAtPoint(), getItemGridReference(), CEGUI::EventArgs::handled, CEGUI::ListboxItem::isSelected(), CEGUI::Window::onMouseButtonDown(), onSelectionChanged(), CEGUI::MouseEventArgs::position, CEGUI::CoordConverter::screenToWindow(), selectRange(), setItemSelectState_impl(), CEGUI::Shift, and CEGUI::MouseEventArgs::sysKeys.
|
protectedvirtual |
Handler called when the mouse wheel (z-axis) position changes within this window's area.
e | MouseEventArgs object. All fields are valid. |
Reimplemented from CEGUI::Window.
References CEGUI::Scrollbar::getDocumentSize(), getHorzScrollbar(), CEGUI::Scrollbar::getPageSize(), CEGUI::Scrollbar::getScrollPosition(), CEGUI::Scrollbar::getStepSize(), getVertScrollbar(), CEGUI::EventArgs::handled, CEGUI::Window::isVisible(), CEGUI::Window::onMouseWheel(), CEGUI::Scrollbar::setScrollPosition(), and CEGUI::MouseEventArgs::wheelChange.
|
protectedvirtual |
Handler called when the window's size changes.
e | WindowEventArgs object whose 'window' pointer field is set to the window that triggered the event. For this event the trigger window is always 'this'. |
Reimplemented from CEGUI::Window.
References configureScrollbars(), CEGUI::EventArgs::handled, and CEGUI::Window::onSized().
void CEGUI::MultiColumnList::removeColumn | ( | uint | col_idx | ) |
Removes a column from the list box. This will cause any ListboxItem using the autoDelete option in the column to be deleted.
col_idx | Zero based index of the column to be removed. |
InvalidRequestException | thrown if col_idx is invalid. |
References d_columnCount, d_grid, d_nominatedSelectCol, getColumnCount(), getListHeader(), getRowCount(), CEGUI::ListboxItem::isAutoDeleted(), onListContentsChanged(), and CEGUI::ListHeader::removeColumn().
Referenced by removeColumnWithID().
void CEGUI::MultiColumnList::removeColumnWithID | ( | uint | col_id | ) |
Removes a column from the list box. This will cause any ListboxItem using the autoDelete option in the column to be deleted.
col_id | ID code of the column to be deleted. |
InvalidRequestException | thrown if no column with col_id is available on this list box. |
References getColumnWithID(), and removeColumn().
void CEGUI::MultiColumnList::removeRow | ( | uint | row_idx | ) |
Remove the list box row with index row_idx. Any ListboxItem in row row_idx using autoDelete mode will be deleted.
row_idx | Zero based index of the row to be removed. |
InvalidRequestException | thrown if row_idx is invalid. |
References d_grid, d_nominatedSelectRow, getColumnCount(), getRowCount(), CEGUI::ListboxItem::isAutoDeleted(), and onListContentsChanged().
void CEGUI::MultiColumnList::resetList | ( | void | ) |
Remove all items from the list.
Note that this will cause 'AutoDelete' items to be deleted.
References onListContentsChanged(), and resetList_impl().
|
protected |
Remove all items from the list.
References d_grid, d_lastSelected, d_nominatedSelectRow, getColumnCount(), getRowCount(), and CEGUI::ListboxItem::isAutoDeleted().
Referenced by resetList(), and ~MultiColumnList().
void CEGUI::MultiColumnList::setColumnHeaderWidth | ( | uint | col_idx, |
const UDim & | width | ||
) |
Set the width of the specified column header (and therefore the column itself).
col_idx | Zero based column index of the column whos width is to be set. |
width | UDim value specifying the new width for the column. |
InvalidRequestException | thrown if column is out of range. |
References getListHeader(), and CEGUI::ListHeader::setColumnWidth().
Referenced by autoSizeColumnHeader().
void CEGUI::MultiColumnList::setItem | ( | ListboxItem * | item, |
const MCLGridRef & | position | ||
) |
Set the ListboxItem for grid reference position.
item | Pointer to the ListboxItem to be set at position. |
position | MCLGridRef describing the grid reference of the item to be set. |
InvalidRequestException | thrown if position contains an invalid grid reference. |
References CEGUI::MCLGridRef::column, d_grid, getColumnCount(), getRowCount(), CEGUI::ListboxItem::isAutoDeleted(), onListContentsChanged(), CEGUI::MCLGridRef::row, and CEGUI::ListboxItem::setOwnerWindow().
Referenced by insertRow(), and setItem().
void CEGUI::MultiColumnList::setItem | ( | ListboxItem * | item, |
uint | col_id, | ||
uint | row_idx | ||
) |
Set the ListboxItem for the column with ID col_id in row row_idx.
item | Pointer to the ListboxItem to be set into the list. |
col_id | ID code of the column to receive item. |
row_idx | Zero based index of the row to receive item. |
InvalidRequestException | thrown if no column with ID col_id exists, or of row_idx is out of range. |
References getColumnWithID(), and setItem().
void CEGUI::MultiColumnList::setItemSelectState | ( | ListboxItem * | item, |
bool | state | ||
) |
Sets or clears the selected state of the given ListboxItem which must be attached to the list.
item | Pointer to the attached ListboxItem to be affected. |
state |
|
InvalidRequestException | thrown if item is not attached to the list box. |
References getItemGridReference().
void CEGUI::MultiColumnList::setItemSelectState | ( | const MCLGridRef & | grid_ref, |
bool | state | ||
) |
Sets or clears the selected state of the ListboxItem at the given grid reference.
grid_ref | MCLGridRef object describing the position of the item to be affected. |
state |
|
InvalidRequestException | thrown if grid_ref is invalid for this list box. |
References onSelectionChanged(), and setItemSelectState_impl().
void CEGUI::MultiColumnList::setNominatedSelectionColumn | ( | uint | col_idx | ) |
Set the column to be used for the NominatedColumn* selection modes.
col_idx | zero based index of the column to be used in NominatedColumn* selection modes. |
InvalidRequestException | thrown if col_idx is out of range. |
References clearAllSelections(), d_nominatedSelectCol, and onNominatedSelectColumnChanged().
Referenced by setNominatedSelectionColumnID().
void CEGUI::MultiColumnList::setNominatedSelectionColumnID | ( | uint | col_id | ) |
Set the column to be used for the NominatedColumn* selection modes.
col_id | ID code of the column to be used in NominatedColumn* selection modes. |
InvalidRequestException | thrown if no column has ID code col_id. |
References getColumnWithID(), and setNominatedSelectionColumn().
void CEGUI::MultiColumnList::setNominatedSelectionRow | ( | uint | row_idx | ) |
Set the row to be used for the NominatedRow* selection modes.
row_idx | zero based index of the row to be used in NominatedRow* selection modes. |
InvalidRequestException | thrown if row_idx is out of range. |
References clearAllSelections(), d_nominatedSelectRow, and onNominatedSelectRowChanged().
void CEGUI::MultiColumnList::setRowID | ( | uint | row_idx, |
uint | row_id | ||
) |
Set the ID code assigned to a given row.
row_idx | Zero based index of the row who's ID code is to be set. |
row_id | ID code to be assigned to the row at the requested index. |
InvalidRequestException | thrown if row_idx is out of range |
References d_grid, and getRowCount().
void CEGUI::MultiColumnList::setSelectionMode | ( | MultiColumnList::SelectionMode | sel_mode | ) |
Set the selection mode for the list box.
sel_mode | One of the MultiColumnList::SelectionMode enumerated values specifying the selection mode to be used. |
InvalidRequestException | thrown if the value specified for sel_mode is invalid. |
References clearAllSelections(), d_fullColSelect, d_fullRowSelect, d_multiSelect, d_selectMode, d_useNominatedCol, d_useNominatedRow, and onSelectionModeChanged().
Referenced by MultiColumnList().
void CEGUI::MultiColumnList::setShowHorzScrollbar | ( | bool | setting | ) |
Set whether the horizontal scroll bar should always be shown, or just when needed.
setting |
|
References configureScrollbars(), d_forceHorzScroll, and onHorzScrollbarModeChanged().
void CEGUI::MultiColumnList::setShowVertScrollbar | ( | bool | setting | ) |
Set whether the vertical scroll bar should always be shown, or just when needed.
setting |
|
References configureScrollbars(), d_forceVertScroll, and onVertScrollbarModeChanged().
void CEGUI::MultiColumnList::setSortColumn | ( | uint | col_idx | ) |
Set the column to be used as the sort key.
col_idx | Zero based index of the column to use as the key when sorting the list items. |
InvalidRequestException | thrown if col_idx is out of range. |
References getListHeader(), getSortColumn(), and CEGUI::ListHeader::setSortColumn().
void CEGUI::MultiColumnList::setSortColumnByID | ( | uint | col_id | ) |
Set the column to be used as the sort key.
col_id | ID code of the column to use as the key when sorting the list items. |
InvalidRequestException | thrown if col_id is invalid for this list box. |
References CEGUI::Window::getID(), getListHeader(), CEGUI::ListHeader::getSegmentFromColumn(), getSortColumn(), and CEGUI::ListHeader::setSortColumnFromID().
void CEGUI::MultiColumnList::setSortDirection | ( | ListHeaderSegment::SortDirection | direction | ) |
Set the sort direction to be used.
direction | One of the ListHeaderSegment::SortDirection enumerated values specifying the sort direction to be used. |
References getListHeader(), getSortDirection(), and CEGUI::ListHeader::setSortDirection().
Referenced by initialiseComponents().
void CEGUI::MultiColumnList::setUserColumnDraggingEnabled | ( | bool | setting | ) |
Set whether the user may modify the order of the columns.
setting |
|
References getListHeader(), and CEGUI::ListHeader::setColumnDraggingEnabled().
void CEGUI::MultiColumnList::setUserColumnSizingEnabled | ( | bool | setting | ) |
Set whether the user may size column segments.
setting |
|
References getListHeader(), and CEGUI::ListHeader::setColumnSizingEnabled().
void CEGUI::MultiColumnList::setUserSortControlEnabled | ( | bool | setting | ) |
Set whether user manipulation of the sort column and direction are enabled.
setting |
|
References getListHeader(), and CEGUI::ListHeader::setSortingEnabled().
|
inlineprotectedvirtual |
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. |
Reimplemented from CEGUI::Window.
References CEGUI::Window::testClassName_impl().
|
inlineprotectedvirtual |
Function used in checking if a WindowRenderer is valid for this window.
Reimplemented from CEGUI::Window.