#[repr(u32)]pub enum UiCut {
Left = 0,
Right = 1,
Top = 2,
Bottom = 3,
}
Expand description
This describes how a layout should be cut up! Used with Ui::layout_push_cut. https://stereokit.net/Pages/StereoKit/UICut.html
Variants§
Left = 0
This cuts a chunk from the left side of the current layout. This will work for layouts that are auto-sizing, and fixed sized.
Right = 1
This cuts a chunk from the right side of the current layout. This will work for layouts that are fixed sized, but not layouts that auto-size on the X axis!
Top = 2
This cuts a chunk from the top side of the current layout. This will work for layouts that are auto-sizing, and fixed sized.
Bottom = 3
This cuts a chunk from the bottom side of the current layout. This will work for layouts that are fixed sized, but not layouts that auto-size on the Y axis!
Trait Implementations§
impl Copy for UiCut
impl Eq for UiCut
impl StructuralPartialEq for UiCut
Auto Trait Implementations§
impl Freeze for UiCut
impl RefUnwindSafe for UiCut
impl Send for UiCut
impl Sync for UiCut
impl Unpin for UiCut
impl UnwindSafe for UiCut
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more