|
Monado OpenXR Runtime
|
Simple pushable button. More...
#include <util/u_var.h>

Data Fields | |
| u_var_button_cb | cb |
| Callback function to execute on button press. More... | |
| void * | ptr |
| Pointer that will be passed to the function as its only argument. More... | |
| xrt_atomic_s32_t | downed |
| Is the pointer pressing down on the button curruently, this is not edge triggered like the callback. More... | |
| char | label [64] |
Button text, use var name if zeroed. More... | |
| float | width |
| Button dimensions, zero for auto size. More... | |
| float | height |
| bool | disabled |
| Whether this button is disabled. More... | |
Simple pushable button.
| u_var_button_cb u_var_button::cb |
Callback function to execute on button press.
Referenced by euroc_recorder_add_ui().
| bool u_var_button::disabled |
Whether this button is disabled.
| xrt_atomic_s32_t u_var_button::downed |
Is the pointer pressing down on the button curruently, this is not edge triggered like the callback.
For a mouse this means that the pointer is hovering the button and the left is held down.
| char u_var_button::label[64] |
Button text, use var name if zeroed.
| void* u_var_button::ptr |
Pointer that will be passed to the function as its only argument.
| float u_var_button::width |
Button dimensions, zero for auto size.