The hovered, active, focused and captured elements, the active window, the one-shot click, hover suppression and the focus scroll axis.
More...
#include <gui_core/state/gui_interaction_state.h>
|
| ID | GetHoveredID () const |
| ID | GetHoveredDisabledID () const |
| | The disabled element under the cursor when nothing is hovered: it takes no input, but shows its tooltip (one saying why it is disabled).
|
| ID | GetActiveID () const |
| ID | GetCaptureID () const |
| ID | GetFocusedID () const |
| ID | GetActiveWindowID () const |
| void | SetActiveWindowID (ID id) |
| ID | GetMenuOwnerID () const |
| | The element a context menu is open on, shown hovered until it closes; Invalid for none.
|
| void | SetMenuOwnerID (ID id) |
| void | SetCaptureID (ID id) |
| void | ReleaseCaptureID () |
| void | SetFocusID (ID id) |
| void | SetFocusIDNoScroll (ID id) |
| void | SetFocusIDScrollAxis (ID id, ScrollAxis a) |
| ScrollAxis | ConsumeFocusScrollAxis () |
| void | SetFocusVisible (bool visible) |
| | Shows the focus ring (:focus-visible), e.g. on a dialog's default button.
|
| bool | IsFocusVisible () const |
| void | SuppressHover () |
| void | ClearHoverSuppression () |
| bool | IsHoverSuppressed () const |
| bool | HasBeenClicked (ID id) const |
| void | SetClicked (ID id) |
| void | SetFrameTime (float secs) |
| | The frame time in seconds that FlashActive is timed against; set once at BeginFrame.
|
| float | GetFrameTime () const |
| void | FlashActive (ID id) |
| | Reports id as Active for about 120 ms: the pressed look of a keyboard or programmatic activation.
|
| ID | GetActiveFlashID () const |
| bool | IsActiveFlashing (ID id) const |
| float | ActiveFlashEndsAt () const |
| | The frame time the flash running now ends at; INFINITY when none runs.
|
| const std::vector< ID > & | GetPropagatedHoverIDs () const |
| const std::vector< ID > & | GetPropagatedFocusedIDs () const |
| void | SetPropagatedHoverIDs (std::vector< ID > v) |
| void | SetPropagatedFocusedIDs (std::vector< ID > v) |
| std::vector< ID > & | PropagatedHoverIDs () |
| | To refill in place each frame, keeping the room.
|
| std::vector< ID > & | PropagatedFocusedIDs () |
| std::vector< ID > & | FocusAncestorIDs () |
| bool | IsFocusWithin (ID id) const |
| | Whether the focus is id or inside it, as the elements were nested last frame (like the other states, it trails the build by a frame).
|
| void | SetFocusAncestorIDs (std::vector< ID > v) |
| void | EndFrame (ID overID, MouseButtons mouseButtons, ID disabledID=ID::Invalid()) |
| | Applies hover, active-ID edges and deferred capture release; clears the click and expired flash.
|
The hovered, active, focused and captured elements, the active window, the one-shot click, hover suppression and the focus scroll axis.
Owned by GUIStateManager.
◆ GetHoveredID()
| ID tachyon::InteractionState::GetHoveredID |
( |
| ) |
const |
|
inline |
◆ GetHoveredDisabledID()
| ID tachyon::InteractionState::GetHoveredDisabledID |
( |
| ) |
const |
|
inline |
The disabled element under the cursor when nothing is hovered: it takes no input, but shows its tooltip (one saying why it is disabled).
◆ GetActiveID()
| ID tachyon::InteractionState::GetActiveID |
( |
| ) |
const |
|
inline |
◆ GetCaptureID()
| ID tachyon::InteractionState::GetCaptureID |
( |
| ) |
const |
|
inline |
◆ GetFocusedID()
| ID tachyon::InteractionState::GetFocusedID |
( |
| ) |
const |
|
inline |
◆ GetActiveWindowID()
| ID tachyon::InteractionState::GetActiveWindowID |
( |
| ) |
const |
|
inline |
◆ SetActiveWindowID()
| void tachyon::InteractionState::SetActiveWindowID |
( |
ID | id | ) |
|
|
inline |
◆ GetMenuOwnerID()
| ID tachyon::InteractionState::GetMenuOwnerID |
( |
| ) |
const |
|
inline |
The element a context menu is open on, shown hovered until it closes; Invalid for none.
◆ SetMenuOwnerID()
| void tachyon::InteractionState::SetMenuOwnerID |
( |
ID | id | ) |
|
|
inline |
◆ SetCaptureID()
| void tachyon::InteractionState::SetCaptureID |
( |
ID | id | ) |
|
|
inline |
◆ ReleaseCaptureID()
| void tachyon::InteractionState::ReleaseCaptureID |
( |
| ) |
|
|
inline |
◆ SetFocusID()
| void tachyon::InteractionState::SetFocusID |
( |
ID | id | ) |
|
|
inline |
◆ SetFocusIDNoScroll()
| void tachyon::InteractionState::SetFocusIDNoScroll |
( |
ID | id | ) |
|
|
inline |
◆ SetFocusIDScrollAxis()
| void tachyon::InteractionState::SetFocusIDScrollAxis |
( |
ID | id, |
|
|
ScrollAxis | a ) |
|
inline |
◆ ConsumeFocusScrollAxis()
| ScrollAxis tachyon::InteractionState::ConsumeFocusScrollAxis |
( |
| ) |
|
|
inline |
◆ SetFocusVisible()
| void tachyon::InteractionState::SetFocusVisible |
( |
bool | visible | ) |
|
|
inline |
Shows the focus ring (:focus-visible), e.g. on a dialog's default button.
◆ IsFocusVisible()
| bool tachyon::InteractionState::IsFocusVisible |
( |
| ) |
const |
|
inline |
◆ SuppressHover()
| void tachyon::InteractionState::SuppressHover |
( |
| ) |
|
|
inline |
◆ ClearHoverSuppression()
| void tachyon::InteractionState::ClearHoverSuppression |
( |
| ) |
|
|
inline |
◆ IsHoverSuppressed()
| bool tachyon::InteractionState::IsHoverSuppressed |
( |
| ) |
const |
|
inline |
◆ HasBeenClicked()
| bool tachyon::InteractionState::HasBeenClicked |
( |
ID | id | ) |
const |
|
inline |
◆ SetClicked()
| void tachyon::InteractionState::SetClicked |
( |
ID | id | ) |
|
|
inline |
◆ SetFrameTime()
| void tachyon::InteractionState::SetFrameTime |
( |
float | secs | ) |
|
|
inline |
The frame time in seconds that FlashActive is timed against; set once at BeginFrame.
◆ GetFrameTime()
| float tachyon::InteractionState::GetFrameTime |
( |
| ) |
const |
|
inline |
◆ FlashActive()
| void tachyon::InteractionState::FlashActive |
( |
ID | id | ) |
|
|
inline |
Reports id as Active for about 120 ms: the pressed look of a keyboard or programmatic activation.
◆ GetActiveFlashID()
| ID tachyon::InteractionState::GetActiveFlashID |
( |
| ) |
const |
|
inline |
◆ IsActiveFlashing()
| bool tachyon::InteractionState::IsActiveFlashing |
( |
ID | id | ) |
const |
|
inline |
◆ ActiveFlashEndsAt()
| float tachyon::InteractionState::ActiveFlashEndsAt |
( |
| ) |
const |
|
inline |
The frame time the flash running now ends at; INFINITY when none runs.
◆ GetPropagatedHoverIDs()
| const std::vector< ID > & tachyon::InteractionState::GetPropagatedHoverIDs |
( |
| ) |
const |
|
inline |
◆ GetPropagatedFocusedIDs()
| const std::vector< ID > & tachyon::InteractionState::GetPropagatedFocusedIDs |
( |
| ) |
const |
|
inline |
◆ SetPropagatedHoverIDs()
| void tachyon::InteractionState::SetPropagatedHoverIDs |
( |
std::vector< ID > | v | ) |
|
|
inline |
◆ SetPropagatedFocusedIDs()
| void tachyon::InteractionState::SetPropagatedFocusedIDs |
( |
std::vector< ID > | v | ) |
|
|
inline |
◆ PropagatedHoverIDs()
| std::vector< ID > & tachyon::InteractionState::PropagatedHoverIDs |
( |
| ) |
|
|
inline |
To refill in place each frame, keeping the room.
◆ PropagatedFocusedIDs()
| std::vector< ID > & tachyon::InteractionState::PropagatedFocusedIDs |
( |
| ) |
|
|
inline |
◆ FocusAncestorIDs()
| std::vector< ID > & tachyon::InteractionState::FocusAncestorIDs |
( |
| ) |
|
|
inline |
◆ IsFocusWithin()
| bool tachyon::InteractionState::IsFocusWithin |
( |
ID | id | ) |
const |
|
inline |
Whether the focus is id or inside it, as the elements were nested last frame (like the other states, it trails the build by a frame).
◆ SetFocusAncestorIDs()
| void tachyon::InteractionState::SetFocusAncestorIDs |
( |
std::vector< ID > | v | ) |
|
|
inline |
◆ EndFrame()
Applies hover, active-ID edges and deferred capture release; clears the click and expired flash.
disabledID: a disabled element under the cursor.
The documentation for this class was generated from the following file: