Struct freya_hooks::UseEditable
source · pub struct UseEditable { /* private fields */ }
Expand description
Manage an editable content.
Implementations§
source§impl UseEditable
impl UseEditable
sourcepub fn editor(&self) -> &EditorState
pub fn editor(&self) -> &EditorState
Reference to the editor.
sourcepub fn cursor_attr<'a, T>(&self, cx: Scope<'a, T>) -> AttributeValue<'a>
pub fn cursor_attr<'a, T>(&self, cx: Scope<'a, T>) -> AttributeValue<'a>
Create a cursor attribute.
sourcepub fn highlights_attr<'a, T>(
&self,
cx: Scope<'a, T>,
editor_id: usize
) -> AttributeValue<'a>
pub fn highlights_attr<'a, T>( &self, cx: Scope<'a, T>, editor_id: usize ) -> AttributeValue<'a>
Create a highlights attribute.
sourcepub fn process_event(&self, edit_event: &EditableEvent)
pub fn process_event(&self, edit_event: &EditableEvent)
Process a EditableEvent
event.
Trait Implementations§
source§impl Clone for UseEditable
impl Clone for UseEditable
source§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