Enum flo_ui::control::ControlAttribute
[−]
[src]
pub enum ControlAttribute { BoundingBox(Bounds), ZIndex(u32), Padding((u32, u32), (u32, u32)), Text(Property), FontAttr(Font), StateAttr(State), PopupAttr(Popup), AppearanceAttr(Appearance), ScrollAttr(Scroll), Id(String), SubComponents(Vec<Control>), Controller(String), Action(ActionTrigger, String), Canvas(Resource<BindingCanvas>), }
Attribute attached to a control
Variants
BoundingBox(Bounds)
The bounding box for this control
ZIndex(u32)
Padding((u32, u32), (u32, u32))
Text(Property)
The text for this control
FontAttr(Font)
Specifies the font properties of this control
StateAttr(State)
Specifies the state of this control
PopupAttr(Popup)
Specifies the popup state of this control (meaningless if this is not a popup control)
AppearanceAttr(Appearance)
Specifies the appearance of this control
ScrollAttr(Scroll)
Specifies how the contents of this control will scroll
Id(String)
The unique ID for this control
SubComponents(Vec<Control>)
Subcomponents of this control
Controller(String)
Specifies the controller that manages the subcomponents of this control
Action(ActionTrigger, String)
When the specified action occurs for this item, send the event denoted by the string to the controller
Canvas(Resource<BindingCanvas>)
Specifies the canvas to use for this control (assuming it's a canvas control)
Methods
impl ControlAttribute
[src]
pub fn bounding_box<'a>(&'a self) -> Option<&'a Bounds>
[src]
The bounding box represented by this attribute
pub fn z_index(&self) -> Option<u32>
[src]
The Z-Index represented by this attribute
pub fn padding(&self) -> Option<((u32, u32), (u32, u32))>
[src]
The padding represented by this attribute
pub fn text<'a>(&'a self) -> Option<&'a Property>
[src]
The text represented by this attribute
pub fn font<'a>(&'a self) -> Option<&'a Font>
[src]
The font atrributes represented by this attribute
pub fn id<'a>(&'a self) -> Option<&'a String>
[src]
The ID represented by this attribute
pub fn subcomponents<'a>(&'a self) -> Option<&'a Vec<Control>>
[src]
The subcomponent represented by this attribute
pub fn controller<'a>(&'a self) -> Option<&'a str>
[src]
The controller represented by this attribute
pub fn action<'a>(&'a self) -> Option<(&'a ActionTrigger, &'a String)>
[src]
The action represented by this attribute
pub fn state<'a>(&'a self) -> Option<&'a State>
[src]
The control state represented by this attribute
pub fn popup<'a>(&'a self) -> Option<&'a Popup>
[src]
The popup attribute represented by this attribute
pub fn canvas<'a>(&'a self) -> Option<&'a Resource<BindingCanvas>>
[src]
The canvas resource for this control, if there is one
pub fn appearance<'a>(&'a self) -> Option<&'a Appearance>
[src]
The appearance assigned by this attribute, if there is one
pub fn scroll<'a>(&'a self) -> Option<&'a Scroll>
[src]
The appearance assigned by this attribute, if there is one
pub fn is_different_flat(&self, compare_to: &ControlAttribute) -> bool
[src]
Returns true if this attribute is different from another one (non-recursively, so this won't check subcomoponents)
Trait Implementations
impl ToJsonValue for ControlAttribute
[src]
impl Modifier<Control> for ControlAttribute
[src]
impl Clone for ControlAttribute
[src]
fn clone(&self) -> ControlAttribute
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ControlAttribute
[src]
fn eq(&self, __arg_0: &ControlAttribute) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ControlAttribute) -> bool
[src]
This method tests for !=
.