Inheritance diagram for CEGUI::ListHeaderSegment:
Public Types | |
enum | SortDirection { None, Ascending, Descending } |
Enumeration of possible values for sorting direction used with ListHeaderSegment classes. More... | |
Public Member Functions | |
bool | isSizingEnabled (void) const |
Return whether this segment can be sized. | |
SortDirection | getSortDirection (void) const |
Return the current sort direction set for this segment. | |
bool | isDragMovingEnabled (void) const |
Return whether drag moving is enabled for this segment. | |
const Point & | getDragMoveOffset (void) const |
Return the current drag move position offset (in pixels relative to the top-left corner of the segment). | |
bool | isClickable (void) const |
Return whether the segment is clickable. | |
void | setSizingEnabled (bool setting) |
Set whether this segment can be sized. | |
void | setSortDirection (SortDirection sort_dir) |
Set the current sort direction set for this segment. | |
void | setDragMovingEnabled (bool setting) |
Set whether drag moving is allowed for this segment. | |
void | setClickable (bool setting) |
Set whether the segment is clickable. | |
ListHeaderSegment (const String &type, const String &name) | |
Constructor for list header segment base class. | |
virtual | ~ListHeaderSegment (void) |
Destructor for list header segment base class. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventSegmentClicked |
Event fired when the segment is clicked. | |
static const String | EventSplitterDoubleClicked |
Event fired when the sizer/splitter is double-clicked. | |
static const String | EventSizingSettingChanged |
Event fired when the sizing setting changes. | |
static const String | EventSortDirectionChanged |
Event fired when the sort direction value changes. | |
static const String | EventMovableSettingChanged |
Event fired when the movable setting changes. | |
static const String | EventSegmentDragStart |
Event fired when the segment has started to be dragged. | |
static const String | EventSegmentDragStop |
Event fired when segment dragging has stopped (via mouse release). | |
static const String | EventSegmentDragPositionChanged |
Event fired when the segment drag position has changed. | |
static const String | EventSegmentSized |
Event fired when the segment is sized. | |
static const String | EventClickableSettingChanged |
Event fired when the clickable state of the segment changes. | |
static const float | DefaultSizingArea = 8.0f |
Default size of the sizing area. | |
static const float | SegmentMoveThreshold = 12.0f |
Amount the mouse must be dragged before drag-moving is initiated. | |
Protected Member Functions | |
void | addHeaderSegmentEvents (void) |
Add list header segment specific events. | |
void | doDragSizing (const Point &local_mouse) |
Update state for drag sizing. | |
void | doDragMoving (const Point &local_mouse) |
Update state for drag moving. | |
void | initDragMoving (void) |
Initialise the required states to put the widget into drag-moving mode. | |
void | initSizingHoverState (void) |
Initialise the required states when we are hovering over the sizing area. | |
void | initSegmentHoverState (void) |
Initialise the required states when we are hovering over the main segment area. | |
bool | isDragMoveThresholdExceeded (const Point &local_mouse) |
Return whether the required minimum movement threshold before initiating drag-moving has been exceeded. | |
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 heirarchy. | |
virtual void | onSegmentClicked (WindowEventArgs &e) |
Handler called when segment is clicked. | |
virtual void | onSplitterDoubleClicked (WindowEventArgs &e) |
Handler called when the sizer/splitter is double-clicked. | |
virtual void | onSizingSettingChanged (WindowEventArgs &e) |
Handler called when sizing setting changes. | |
virtual void | onSortDirectionChanged (WindowEventArgs &e) |
Handler called when the sort direction value changes. | |
virtual void | onMovableSettingChanged (WindowEventArgs &e) |
Handler called when the drag-movable setting is changed. | |
virtual void | onSegmentDragStart (WindowEventArgs &e) |
Handler called when the user starts dragging the segment. | |
virtual void | onSegmentDragStop (WindowEventArgs &e) |
Handler called when the user stops dragging the segment (releases mouse button). | |
virtual void | onSegmentDragPositionChanged (WindowEventArgs &e) |
Handler called when the drag position changes. | |
virtual void | onSegmentSized (WindowEventArgs &e) |
Handler called when the segment is sized. | |
virtual void | onClickableSettingChanged (WindowEventArgs &e) |
Handler called when the clickable setting for the segment changes. | |
virtual void | onMouseMove (MouseEventArgs &e) |
Handler called when the mouse cursor has been moved within this window's area. | |
virtual void | onMouseButtonDown (MouseEventArgs &e) |
Handler called when a mouse button has been depressed within this window's area. | |
virtual void | onMouseButtonUp (MouseEventArgs &e) |
Handler called when a mouse button has been released within this window's area. | |
virtual void | onMouseDoubleClicked (MouseEventArgs &e) |
Handler called when a mouse button has been double-clicked within this window's area. | |
virtual void | onMouseLeaves (MouseEventArgs &e) |
Handler called when the mouse cursor has left this window's area. | |
virtual void | onCaptureLost (WindowEventArgs &e) |
Handler called when this window loses capture of mouse inputs. | |
Protected Attributes | |
const Image * | d_sizingMouseCursor |
Image to use for mouse when sizing (typically set by derived class). | |
const Image * | d_movingMouseCursor |
Image to use for mouse when moving (typically set by derived class). | |
float | d_splitterSize |
pixel width of the sizing area. | |
bool | d_splitterHover |
True if the mouse is over the splitter. | |
bool | d_dragSizing |
true when we are being sized. | |
Point | d_dragPoint |
point we are being dragged at when sizing or moving. | |
SortDirection | d_sortDir |
Direction for sorting (used for deciding what icon to display). | |
bool | d_segmentHover |
true when the mouse is within the segment area (and not in sizing area). | |
bool | d_segmentPushed |
true when the left mouse button has been pressed within the confines of the segment. | |
bool | d_sizingEnabled |
true when sizing is enabled for this segment. | |
bool | d_movingEnabled |
True when drag-moving is enabled for this segment;. | |
bool | d_dragMoving |
true when segment is being drag moved. | |
Point | d_dragPosition |
position of dragged segment. | |
bool | d_allowClicks |
true if the segment can be clicked. |
|
Enumeration of possible values for sorting direction used with ListHeaderSegment classes.
|
|
Update state for drag moving.
|
|
Update state for drag sizing.
|
|
Return the current drag move position offset (in pixels relative to the top-left corner of the segment).
|
|
Return the current sort direction set for this segment. Note that this has no impact on the way the segment functions (aside from the possibility of varied rendering). This is intended as a 'helper setting' to classes that make use of the ListHeaderSegment objects.
|
|
Return whether the segment is clickable.
|
|
Return whether the required minimum movement threshold before initiating drag-moving has been exceeded.
|
|
Return whether drag moving is enabled for this segment.
|
|
Return whether this segment can be sized.
|
|
Handler called when this window loses capture of mouse inputs.
Reimplemented from CEGUI::Window. |
|
Handler called when a mouse button has been depressed within this window's area.
Reimplemented from CEGUI::Window. |
|
Handler called when a mouse button has been released within this window's area.
Reimplemented from CEGUI::Window. |
|
Handler called when a mouse button has been double-clicked within this window's area.
Reimplemented from CEGUI::Window. |
|
Handler called when the mouse cursor has left this window's area.
Reimplemented from CEGUI::Window. |
|
Handler called when the mouse cursor has been moved within this window's area.
Reimplemented from CEGUI::Window. |
|
Set whether the segment is clickable.
|
|
Set whether drag moving is allowed for this segment.
|
|
Set whether this segment can be sized.
|
|
Set the current sort direction set for this segment. Note that this has no impact on the way the segment functions (aside from the possibility of varied rendering). This is intended as a 'helper setting' to classes that make use of the ListHeaderSegment objects.
|
|
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy.
Reimplemented from CEGUI::Window. |