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(ActionTriggerString),
    Canvas(Resource<BindingCanvas>),
}

Attribute attached to a control

Variants

The bounding box for this control

The text for this control

Specifies the font properties of this control

Specifies the state of this control

Specifies the popup state of this control (meaningless if this is not a popup control)

Specifies the appearance of this control

Specifies how the contents of this control will scroll

The unique ID for this control

Subcomponents of this control

Specifies the controller that manages the subcomponents of this control

When the specified action occurs for this item, send the event denoted by the string to the controller

Specifies the canvas to use for this control (assuming it's a canvas control)

Methods

impl ControlAttribute
[src]

[src]

The bounding box represented by this attribute

[src]

The Z-Index represented by this attribute

[src]

The padding represented by this attribute

[src]

The text represented by this attribute

[src]

The font atrributes represented by this attribute

[src]

The ID represented by this attribute

[src]

The subcomponent represented by this attribute

[src]

The controller represented by this attribute

[src]

The action represented by this attribute

[src]

The control state represented by this attribute

[src]

The popup attribute represented by this attribute

[src]

The canvas resource for this control, if there is one

[src]

The appearance assigned by this attribute, if there is one

[src]

The appearance assigned by this attribute, if there is one

[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]

[src]

Creates a JSON representation of this item Read more

impl Modifier<Control> for ControlAttribute
[src]

[src]

Modify F with self.

impl Clone for ControlAttribute
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ControlAttribute
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for ControlAttribute
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations