logo
pub struct TextFieldElement {
    pub label: LabelElement,
    pub filter: Option<Box<dyn Fn(String, String, String) -> bool>>,
    pub onchangeindex: Signal<i32>,
    pub onchange: Signal<TextEditChangeEvent>,
    pub oncommit: Signal<TextEditCommitEvent>,
    pub renderer: Option<Rc<WidgetRenderHolder<Self>>>,
    pub node: Node,
    /* private fields */
}
Expand description

A simple text edit control Additional Signals: none

Fields

label: LabelElementfilter: Option<Box<dyn Fn(String, String, String) -> bool>>onchangeindex: Signal<i32>

Emitted whenever the index is changed.

onchange: Signal<TextEditChangeEvent>

Emitted whenever the text or display text is changed. text:String, display_text:String, from_typing: bool

oncommit: Signal<TextEditCommitEvent>

Emitted whenever the return key is pressed. text:String, display_text:String

renderer: Option<Rc<WidgetRenderHolder<Self>>>node: Node

Implementations

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Formats the value using the given formatter. Read more

The control this one is clipped by

The control this one is clipped by

If the control is visible

If the control is visible

If the control is visible

The child must be sure that his parent reference is correct. The child must remove the parent reference by himself: child.set_parent(None); Read more

The x position of the control bounds, world coordinate

The x position of the control bounds, world coordinate

The y position of the control bounds, world coordinate

The y position of the control bounds, world coordinate

The minimum width

The minimum width

The minimum height

The minimum height

The maximum width

The maximum width

The maximum height

The maximum height

The width of the control bounds

The width of the control bounds

The height of the control bounds

The height of the control bounds

The x position of the control bounds, relative to its container

The y position of the control bounds, relative to its container

The x position of the control bounds, relative to its container

The y position of the control bounds, relative to its container

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.