Struct freya::prelude::UseEditable
pub struct UseEditable { /* private fields */ }
Expand description
Manage an editable content.
Implementations§
§impl UseEditable
impl UseEditable
pub fn editor(&self) -> &UseState<RopeEditor>
pub fn editor(&self) -> &UseState<RopeEditor>
Reference to the editor.
pub fn cursor_attr<T, 'a>(&self, cx: &'a Scoped<'a, T>) -> AttributeValue<'a>
pub fn cursor_attr<T, 'a>(&self, cx: &'a Scoped<'a, T>) -> AttributeValue<'a>
Create a cursor attribute.
pub fn highlights_attr<T, 'a>(
&self,
cx: &'a Scoped<'a, T>,
editor_id: usize
) -> AttributeValue<'a>
pub fn highlights_attr<T, 'a>( &self, cx: &'a Scoped<'a, T>, editor_id: usize ) -> AttributeValue<'a>
Create a highlights attribute.
pub fn process_event(&self, edit_event: &EditableEvent)
pub fn process_event(&self, edit_event: &EditableEvent)
Process a EditableEvent
event.
Trait Implementations§
§impl Clone for UseEditable
impl Clone for UseEditable
§fn clone(&self) -> UseEditable
fn clone(&self) -> UseEditable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more