#[repr(u32)]pub enum UiBtnLayout {
None = 0,
Left = 1,
Right = 2,
Center = 3,
CenterNoText = 4,
}
Expand description
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
Variants§
None = 0
Hide the image, and only show text.
Left = 1
Image to the left, text to the right. Image will take up no more than half the width.
Right = 2
Image to the right, text to the left. Image will take up no more than half the width.
Center = 3
Image will be centered in the button, and fill up the button as though it was the only element. Text will cram itself under the padding below the image.
CenterNoText = 4
Same as Center, but omitting the text.
Trait Implementations§
Source§impl Clone for UiBtnLayout
impl Clone for UiBtnLayout
Source§fn clone(&self) -> UiBtnLayout
fn clone(&self) -> UiBtnLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UiBtnLayout
impl Debug for UiBtnLayout
Source§impl PartialEq for UiBtnLayout
impl PartialEq for UiBtnLayout
impl Copy for UiBtnLayout
impl Eq for UiBtnLayout
impl StructuralPartialEq for UiBtnLayout
Auto Trait Implementations§
impl Freeze for UiBtnLayout
impl RefUnwindSafe for UiBtnLayout
impl Send for UiBtnLayout
impl Sync for UiBtnLayout
impl Unpin for UiBtnLayout
impl UnwindSafe for UiBtnLayout
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.