pub enum PropKind {
Text,
Number,
Int,
Bool,
Color,
Choice(&'static [&'static str]),
Event,
Image,
}Expand description
A property’s type: how .yui writes it and how the designer edits it.
Variants§
Text
Free text (@key is a translation key, as for built-in text).
Number
A number (1.5).
Int
A whole number (3).
Bool
true / false.
Color
#RRGGBB, #AARRGGBB or 0xAARRGGBB.
Choice(&'static [&'static str])
One of the listed words.
Event
An action name (like on_click): the component hands it to a
widget’s on_click, and the screen’s code-behind gets the event.
Image
A Yog image source (item:apple, mymod:gui/logo, …).
Implementations§
Trait Implementations§
impl Copy for PropKind
impl Eq for PropKind
impl StructuralPartialEq for PropKind
Auto Trait Implementations§
impl Freeze for PropKind
impl RefUnwindSafe for PropKind
impl Send for PropKind
impl Sync for PropKind
impl Unpin for PropKind
impl UnsafeUnpin for PropKind
impl UnwindSafe for PropKind
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