TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::FrameInput Struct Reference

What the window layer reports at the end of a frame's construction; GUIStateManager::EndFrame turns it into the hovered element and the active window. More...

#include <gui_core/state/gui_state_manager.h>

Public Attributes

ID activeWindowID = ID::Invalid()
 the OS's active window; Invalid without focus
ID modalWindowID = ID::Invalid()
 top modal window, which blocks the others
ID windowUnderMouse = ID::Invalid()
int2 mousePos {}
 screen pixels
MouseButtons mouseButtons = MouseButtons::None
std::function< ID(ID window, int2 pos, ID &disabled)> hitTest
 The element at pos in window, or Invalid; disabled gets the disabled element there, if one took the hit (see ElementStorage::GetElementIDAt).
std::function< bool(ID window, int2 pos, ID &target)> textDragTarget
 While text is dragged: the text drop target at pos in window. Optional.

Detailed Description

What the window layer reports at the end of a frame's construction; GUIStateManager::EndFrame turns it into the hovered element and the active window.

Member Data Documentation

◆ activeWindowID

ID tachyon::FrameInput::activeWindowID = ID::Invalid()

the OS's active window; Invalid without focus

◆ modalWindowID

ID tachyon::FrameInput::modalWindowID = ID::Invalid()

top modal window, which blocks the others

◆ windowUnderMouse

ID tachyon::FrameInput::windowUnderMouse = ID::Invalid()

◆ mousePos

int2 tachyon::FrameInput::mousePos {}

screen pixels

◆ mouseButtons

MouseButtons tachyon::FrameInput::mouseButtons = MouseButtons::None

◆ hitTest

std::function<ID(ID window, int2 pos, ID& disabled)> tachyon::FrameInput::hitTest

The element at pos in window, or Invalid; disabled gets the disabled element there, if one took the hit (see ElementStorage::GetElementIDAt).

◆ textDragTarget

std::function<bool(ID window, int2 pos, ID& target)> tachyon::FrameInput::textDragTarget

While text is dragged: the text drop target at pos in window. Optional.


The documentation for this struct was generated from the following file: