Trait webkit2gtk::prelude::EditorStateExt
source · [−]pub trait EditorStateExt: 'static {
fn typing_attributes(&self) -> u32;
fn is_copy_available(&self) -> bool;
fn is_cut_available(&self) -> bool;
fn is_paste_available(&self) -> bool;
fn is_redo_available(&self) -> bool;
fn is_undo_available(&self) -> bool;
fn connect_typing_attributes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Available on crate feature
v2_10
only.Expand description
Required Methods
sourcefn typing_attributes(&self) -> u32
fn typing_attributes(&self) -> u32
Gets the typing attributes at the current cursor position.
If there is a selection, this returns the typing attributes of the selected text. Note that in case of a selection, typing attributes are considered active only when they are present throughout the selection.
Returns
a bitmask of EditorTypingAttributes
flags
sourcefn is_copy_available(&self) -> bool
fn is_copy_available(&self) -> bool
Available on crate feature
v2_20
only.sourcefn is_cut_available(&self) -> bool
fn is_cut_available(&self) -> bool
Available on crate feature
v2_20
only.sourcefn is_paste_available(&self) -> bool
fn is_paste_available(&self) -> bool
Available on crate feature
v2_20
only.sourcefn is_redo_available(&self) -> bool
fn is_redo_available(&self) -> bool
Available on crate feature
v2_20
only.sourcefn is_undo_available(&self) -> bool
fn is_undo_available(&self) -> bool
Available on crate feature
v2_20
only.