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

Options for SDLWindowBackend (SDLWindowBackend::Options). More...

#include <gui_core/windows/sdl/gui_window_backend_sdl.h>

Public Attributes

const AllocationHooks * hooks = nullptr
 Hooks for SDL's memory functions, which are process-wide.
bool pumpEvents = true
 PollEvents empties SDL's event queue.
bool physicalButtons = true
 GetMouseButtons reads the physical mouse buttons, wherever the pointer is: while a popup is open the app turns a press there into a click the OS never delivered.

Detailed Description

Member Data Documentation

◆ hooks

const AllocationHooks* tachyon::SDLWindowBackendOptions::hooks = nullptr

Hooks for SDL's memory functions, which are process-wide.

Used only when this backend starts SDL and SDL holds no memory yet.

◆ pumpEvents

bool tachyon::SDLWindowBackendOptions::pumpEvents = true

PollEvents empties SDL's event queue.

A host that runs SDL's event loop itself turns this off; the GUI's windows still get their events while the host pumps (SDL_PollEvent / SDL_PumpEvents).

◆ physicalButtons

bool tachyon::SDLWindowBackendOptions::physicalButtons = true

GetMouseButtons reads the physical mouse buttons, wherever the pointer is: while a popup is open the app turns a press there into a click the OS never delivered.

Off, they always read as up, for a program that drives itself with injected input (GUIApplication::Inject*), so a click elsewhere on the desktop can't reach it.


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