Show a clickable button.
More...
#include <CSMAPI_types.h>
|
enum | ActionType {
ACTION_NONE
, ACTION_HOVER_CLOSE
, ACTION_HOVER_MINMAX
, ACTION_CLICK_CLOSE
,
ACTION_CLICK_MINMAX
, ACTION_DRAG
, ACTION_RESIZE_LEFT
, ACTION_RESIZE_TOP
,
ACTION_RESIZE_RIGHT
, ACTION_RESIZE_BOTTOM
, ACTION_RESIZE_BOTTOMLEFT
, ACTION_RESIZE_BOTTOMRIGHT
,
ACTION_RESIZE_TOPLEFT
} |
|
typedef void(* | OnWindowDraggedFunc) (DraggableWindowInfo *) |
| OnPressed Callback.
|
|
typedef void(* | OnWindowCollapsedFunc) (DraggableWindowInfo *) |
| OnCollapse Callback.
|
|
typedef void(* | OnWindowExpandedFunc) (DraggableWindowInfo *) |
| OnExpand Callback.
|
|
typedef void(* | OnWindowClosedFunc) (DraggableWindowInfo *) |
| OnClose Callback.
|
|
enum | ProcessReturnType {
PRT_DIRTY = 0b000001
, PRT_IGNORE_MOUSE = 0b000010
, PRT_IGNORE_KEYS = 0b000100
, PRT_SELECTED = 0b001000
,
PRT_DISABLE_MOUSE_ON_MOVE = 0b010000
, PRT_CHANGED = 0b100000
} |
| Return flags for GuiBase::process and GuiBase::processKeys. More...
|
|
typedef void(* | OnHoverChangeCallbackFunc) (GuiBase *, int value) |
| Hover callback.
|
|
typedef void(* | OnValueChangeCallbackFunc) (GuiBase *, const char *&newValue) |
| Value change callback.
|
|
typedef bool(* | OnValidateChangeCallbackFunc) (GuiBase *, const char *oldValue, char *newValue) |
| Validate change callback.
|
|
|
static unsigned int | defaultCustomMagnification |
|
static GuiBase * | gFirst |
|
void | Link () |
| Link ourselves to the global GUI element linkage.
|
|
void | Unlink () |
| Unlink ourselves from the global GUI element linkage.
|
|
◆ calculate()
virtual void DraggableWindowInfo::calculate |
( |
| ) |
|
|
virtual |
Re-calculate this element's data.
- Warning
- You should ALWAYS call this at least once BEFORE you call render()!
Implements GuiBase.
◆ getClassName()
virtual const char* DraggableWindowInfo::getClassName |
( |
| ) |
|
|
inlinevirtual |
Get this class' name.
- Returns
- Should return the name of this class.
Reimplemented from GuiBase.
◆ getFont()
virtual FontObject* DraggableWindowInfo::getFont |
( |
| ) |
|
|
inlinevirtual |
Get the font for this GUI element.
- Returns
- Returns the font object for this element.
Reimplemented from GuiBase.
◆ getHoverableCount()
virtual int DraggableWindowInfo::getHoverableCount |
( |
| ) |
|
|
inlinevirtual |
Get the number of elements that can be hovered over in this element.
- Returns
- Returns the amount of elements that can be hovered over in this element.
Reimplemented from GuiBase.
◆ getSelectableCount()
virtual int DraggableWindowInfo::getSelectableCount |
( |
| ) |
|
|
inlinevirtual |
Get the selectable number of elements in this element.
- Returns
- Returns the amount of selectable elements in this element.
Reimplemented from GuiBase.
◆ isCollapsed()
bool DraggableWindowInfo::isCollapsed |
( |
| ) |
|
|
inline |
Check to see if this window is collapsed.
- Returns
◆ isHoverable()
virtual bool DraggableWindowInfo::isHoverable |
( |
| ) |
|
|
virtual |
Check hoverability status.
- Returns
- Returns true if this element can be hovered over.
Implements GuiBase.
◆ isHovered()
virtual bool DraggableWindowInfo::isHovered |
( |
| ) |
|
|
virtual |
Check hover status.
- Returns
- Returns true if this element is being hovered over.
Implements GuiBase.
◆ isSelected()
virtual bool DraggableWindowInfo::isSelected |
( |
| ) |
|
|
virtual |
Check selection status.
- Returns
- Returns true if this element is selected.
Implements GuiBase.
◆ process()
virtual int DraggableWindowInfo::process |
( |
GUI_POINT |
mouse | ) |
|
|
virtual |
◆ processKeys()
virtual int DraggableWindowInfo::processKeys |
( |
| ) |
|
|
virtual |
◆ setCollapsed()
void DraggableWindowInfo::setCollapsed |
( |
bool |
bValue | ) |
|
|
inline |
Set whether this window is collapsed.
- Parameters
-
◆ setFont()
virtual void DraggableWindowInfo::setFont |
( |
FontObject * |
pFont | ) |
|
|
virtual |
Set this element's font.
- Parameters
-
Reimplemented from GuiBase.
◆ setHovered()
virtual void DraggableWindowInfo::setHovered |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as hovered over or not.
- Parameters
-
Implements GuiBase.
◆ setSelected()
virtual void DraggableWindowInfo::setSelected |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as selected or not.
- Parameters
-
value | The selection value. |
Implements GuiBase.
◆ setText()
void DraggableWindowInfo::setText |
( |
const char * |
pValue | ) |
|
Set this element's text.
- Parameters
-
The documentation for this class was generated from the following file: