Expand description
The UI module is a collection of functions and structs that allow you to create a user interface.
§Examples
which are also unit tests:
Structs§
- Ui
- This class is a collection of user interface and interaction methods! StereoKit uses an Immediate Mode GUI system, which can be very easy to work with and modify during runtime.
- UiCorner
- For elements that contain corners, this bit flag allows you to specify which corners. https://stereokit.net/Pages/StereoKit/UICorner.html
- UiLathe
Pt - A point on a lathe for a mesh generation algorithm. This is the ‘silhouette’ of the mesh, or the shape the mesh would take if you spun this line of points in a cylinder. https://stereokit.net/Pages/StereoKit/UILathePt.html
- UiScroll
- This describes how UI elements with scrollable regions scroll around or use scroll bars! This allows you to enable or disable vertical and horizontal scrolling. https://stereokit.net/Pages/StereoKit/UIScroll.html
- UiSettings
- Visual properties and spacing of the UI system. https://stereokit.net/Pages/StereoKit/UISettings.html
- UiSlider
Data - Visual properties of a slider behavior. https://stereokit.net/Pages/StereoKit/UISliderData.html
Enums§
- UiBtn
Layout - Describes the layout of a button with image/text contents! You can think of the naming here as being the location of the image, with the text filling the remaining space. https://stereokit.net/Pages/StereoKit/UIBtnLayout.html
- UiColor
- Theme color categories to pair with Ui::set_theme_color.
The total lenght is
[u32,u32]
where the fist u32 is the enum and the second is the ExtraSlot value native C function should convert this to UiColorT https://stereokit.net/Pages/StereoKit/UIColor.html - UiColor
State - Indicates the state of a UI theme color. https://stereokit.net/Pages/StereoKit/UIColorState.html
- UiConfirm
- Used with StereoKit’s UI, and determines the interaction confirmation behavior for certain elements, such as the Ui::hslider! https://stereokit.net/Pages/StereoKit/UIConfirm.html
- UiCut
- This describes how a layout should be cut up! Used with Ui::layout_push_cut. https://stereokit.net/Pages/StereoKit/UICut.html
- UiDir
- For UI elements that can be oriented horizontally or vertically, this specifies that orientation. https://stereokit.net/Pages/StereoKit/UIDir.html
- UiGesture
- This is a bit flag that describes different types and combinations of gestures used within the UI system. https://stereokit.net/Pages/StereoKit/UIGesture.html
- UiMove
- This describes how a UI element moves when being dragged around by a user! https://stereokit.net/Pages/StereoKit/UIMove.html
- UiNotify
- Determines when this UI function returns true. https://stereokit.net/Pages/StereoKit/UINotify.html
- UiPad
- https://stereokit.net/Pages/StereoKit/UIPad.html
- UiVisual
- Used with StereoKit’s UI to indicate a particular type of UI element visual. https://stereokit.net/Pages/StereoKit/UIVisual.html
- UiWin
- A description of what type of window to draw! This is a bit flag, so it can contain multiple elements. https://stereokit.net/Pages/StereoKit/UIWin.html
Functions§
- ui_
button ⚠ - ui_
button_ ⚠16 - ui_
button_ ⚠at - ui_
button_ ⚠at_ 16 - ui_
button_ ⚠behavior - ui_
button_ ⚠behavior_ depth - ui_
button_ ⚠img - ui_
button_ ⚠img_ 16 - ui_
button_ ⚠img_ at - ui_
button_ ⚠img_ at_ 16 - ui_
button_ ⚠img_ sz - ui_
button_ ⚠img_ sz_ 16 - ui_
button_ ⚠round - ui_
button_ ⚠round_ 16 - ui_
button_ ⚠round_ at - ui_
button_ ⚠round_ at_ 16 - ui_
button_ ⚠sz - ui_
button_ ⚠sz_ 16 - ui_
draw_ ⚠element - ui_
draw_ ⚠element_ color - ui_
enable_ ⚠far_ interact - ui_
far_ ⚠interact_ enabled - ui_
gen_ ⚠quadrant_ mesh - ui_
get_ ⚠anim_ focus - ui_
get_ ⚠element_ color - ui_
get_ ⚠gutter - ui_
get_ ⚠margin - ui_
get_ ⚠padding - ui_
get_ ⚠settings - ui_
get_ ⚠text_ style - ui_
get_ ⚠theme_ color - ui_
get_ ⚠theme_ color_ state - ui_
grab_ ⚠aura_ enabled - ui_
handle_ ⚠begin - ui_
handle_ ⚠begin_ 16 - ui_
handle_ ⚠end - ui_
has_ ⚠keyboard_ focus - ui_
hprogress_ ⚠bar - ui_
hseparator ⚠ - ui_
hslider ⚠ - ui_
hslider_ ⚠16 - ui_
hslider_ ⚠at - ui_
hslider_ ⚠at_ 16 - ui_
hslider_ ⚠at_ f64 - ui_
hslider_ ⚠at_ f64_ 16 - ui_
hslider_ ⚠f64 - ui_
hslider_ ⚠f64_ 16 - ui_
hspace ⚠ - ui_
image ⚠ - ui_
input ⚠ - ui_
input_ ⚠16 - ui_
input_ ⚠at - ui_
input_ ⚠at_ 16 - ui_
is_ ⚠enabled - ui_
is_ ⚠interacting - TODO: v0.4 These functions use hands instead of interactors, they need replaced!
- ui_
label ⚠ - ui_
label_ ⚠16 - ui_
label_ ⚠sz - ui_
label_ ⚠sz_ 16 - ui_
last_ ⚠element_ active - ui_
last_ ⚠element_ focused - ui_
last_ ⚠element_ hand_ active - TODO: v0.4 These functions use hands instead of interactors, they need replaced!
- ui_
last_ ⚠element_ hand_ focused - TODO: v0.4 These functions use hands instead of interactors, they need replaced!
- ui_
layout_ ⚠area - ui_
layout_ ⚠at - ui_
layout_ ⚠last - ui_
layout_ ⚠pop - ui_
layout_ ⚠push - ui_
layout_ ⚠push_ cut - ui_
layout_ ⚠remaining - ui_
layout_ ⚠reserve - ui_
line_ ⚠height - ui_
model ⚠ - ui_
model_ ⚠at - ui_
nextline ⚠ - ui_
panel_ ⚠at - ui_
panel_ ⚠begin - ui_
panel_ ⚠end - ui_
play_ ⚠sound_ off - ui_
play_ ⚠sound_ on - ui_
play_ ⚠sound_ on_ off - ui_
pop_ ⚠enabled - ui_
pop_ ⚠grab_ aura - ui_
pop_ ⚠id - ui_
pop_ ⚠preserve_ keyboard - ui_
pop_ ⚠surface - ui_
pop_ ⚠text_ style - ui_
pop_ ⚠tint - ui_
popup_ ⚠pose - ui_
progress_ ⚠bar_ at - ui_
push_ ⚠enabled - ui_
push_ ⚠grab_ aura - ui_
push_ ⚠id - ui_
push_ ⚠id_ 16 - ui_
push_ ⚠idi - ui_
push_ ⚠preserve_ keyboard - ui_
push_ ⚠surface - ui_
push_ ⚠text_ style - ui_
push_ ⚠tint - ui_
quadrant_ ⚠size_ mesh - ui_
quadrant_ ⚠size_ verts - ui_
sameline ⚠ - ui_
set_ ⚠color - ui_
set_ ⚠element_ color - ui_
set_ ⚠element_ sound - ui_
set_ ⚠element_ visual - ui_
set_ ⚠theme_ color - ui_
set_ ⚠theme_ color_ state - ui_
settings ⚠ - ui_
show_ ⚠volumes - ui_
slider_ ⚠behavior - ui_
stack_ ⚠hash - ui_
stack_ ⚠hash_ 16 - ui_
system_ ⚠get_ move_ type - ui_
system_ ⚠set_ move_ type - ui_text⚠
- ui_
text_ ⚠16 - ui_
text_ ⚠at - ui_
text_ ⚠at_ 16 - ui_
text_ ⚠sz - ui_
text_ ⚠sz_ 16 - ui_
toggle ⚠ - ui_
toggle_ ⚠16 - ui_
toggle_ ⚠at - ui_
toggle_ ⚠at_ 16 - ui_
toggle_ ⚠img - ui_
toggle_ ⚠img_ 16 - ui_
toggle_ ⚠img_ at - ui_
toggle_ ⚠img_ at_ 16 - ui_
toggle_ ⚠img_ sz - ui_
toggle_ ⚠img_ sz_ 16 - ui_
toggle_ ⚠sz - ui_
toggle_ ⚠sz_ 16 - ui_
volume_ ⚠at - ui_
volume_ ⚠at_ 16 - ui_
vprogress_ ⚠bar - ui_
vslider ⚠ - ui_
vslider_ ⚠16 - ui_
vslider_ ⚠at - ui_
vslider_ ⚠at_ 16 - ui_
vslider_ ⚠at_ f64 - ui_
vslider_ ⚠at_ f64_ 16 - ui_
vslider_ ⚠f64 - ui_
vslider_ ⚠f64_ 16 - ui_
vspace ⚠ - ui_
window_ ⚠begin - ui_
window_ ⚠begin_ 16 - ui_
window_ ⚠end
Type Aliases§
- IdHashT
- StereoKit ffi type.
see also
crate::util::Hash
Ui::stack_hash
Ui::push_id
Ui::push_id_int