Struct ultron::editor::Editor[][src]

pub struct Editor<XMSG> { /* fields omitted */ }

Implementations

Attach a callback to this editor where it is invoked when the content is changed.

Note:The content is extracted into string and used as a parameter to the function. This may be a costly operation when the editor has lot of text on it.

Attach an callback to this editor where it is invoked when the content is changed. The callback function just notifies the parent component that uses the Editor component. It will be up to the parent component to extract the content of the editor manually.

This is intended to be used in a debounced or throttled functionality where the component decides when to do an expensive operation based on time and recency.

convert screen coordinate to cursor position

convert current cursor position to client coordinate relative to the editor div

Trait Implementations

Update the model of this component and return follow up and/or effects that will be executed on the next update loop Read more

the view of the component

optionally a Component can specify its own css style

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

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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.