Struct freya::hooks::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 moreAuto Trait Implementations§
impl !RefUnwindSafe for UseEditable
impl !Send for UseEditable
impl !Sync for UseEditable
impl Unpin for UseEditable
impl !UnwindSafe for UseEditable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more