#[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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.