#[repr(u32)]pub enum TextContext {
Text = 0,
Number = 1,
Uri = 2,
Password = 3,
}
Expand description
Soft keyboard layouts are often specific to the type of text that they’re editing! This enum is a collection of common text contexts that SK can pass along to the OS’s soft keyboard for a more optimal layout. https://stereokit.net/Pages/StereoKit/TextContext.html
see also crate::ui::Ui::input
crate::ui::Ui::input_at
crate::util::Platform::keyboard_show
Variants§
Text = 0
General text editing, this is the most common type of text, and would result in a ‘standard’ keyboard layout.
Number = 1
Numbers and numerical values.
Uri = 2
This text specifically represents some kind of URL/URI address.
Password = 3
This is a password, and should not be visible when typed!
Trait Implementations§
Source§impl Clone for TextContext
impl Clone for TextContext
Source§fn clone(&self) -> TextContext
fn clone(&self) -> TextContext
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 TextContext
impl Debug for TextContext
Source§impl PartialEq for TextContext
impl PartialEq for TextContext
impl Copy for TextContext
impl Eq for TextContext
impl StructuralPartialEq for TextContext
Auto Trait Implementations§
impl Freeze for TextContext
impl RefUnwindSafe for TextContext
impl Send for TextContext
impl Sync for TextContext
impl Unpin for TextContext
impl UnwindSafe for TextContext
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.