MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / ui_layout_remaining

Function ui_layout_remaining

StereoKitC/ui/ui_layout.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60vec2 ui_layout_remaining() {
61 ui_layout_t* layout = &skui_layouts.last();
62 vec2 max = {
63 _ui_get_right_x (layout),
64 _ui_get_bottom_y(layout)};
65
66 return vec2 {
67 fmaxf(0, layout->offset.x - max.x),
68 fmaxf(0, layout->offset.y - max.y)
69 };
70}
71
72///////////////////////////////////////////
73

Callers 7

file_picker_updateFunction · 0.85
ui_area_remainingFunction · 0.85
ui_layout_reserve_szFunction · 0.85
ui_panel_beginFunction · 0.85
ui_text_gFunction · 0.85
ui_modelFunction · 0.85

Calls 2

_ui_get_right_xFunction · 0.85
_ui_get_bottom_yFunction · 0.85

Tested by

no test coverage detected