Monado OpenXR Runtime
u_var_button Struct Reference

Simple pushable button. More...

#include <util/u_var.h>

Collaboration diagram for u_var_button:

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...
 

Detailed Description

Simple pushable button.

Field Documentation

◆ cb

u_var_button_cb u_var_button::cb

Callback function to execute on button press.

Referenced by euroc_recorder_add_ui().

◆ disabled

bool u_var_button::disabled

Whether this button is disabled.

◆ downed

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.

◆ label

char u_var_button::label[64]

Button text, use var name if zeroed.

◆ ptr

void* u_var_button::ptr

Pointer that will be passed to the function as its only argument.

◆ width

float u_var_button::width

Button dimensions, zero for auto size.


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