Trait gtk4::subclass::text_view::TextViewImpl
source · pub trait TextViewImpl: TextViewImplExt + WidgetImpl {
// Provided methods
fn backspace(&self) { ... }
fn copy_clipboard(&self) { ... }
fn cut_clipboard(&self) { ... }
fn delete_from_cursor(&self, type_: DeleteType, count: i32) { ... }
fn extend_selection(
&self,
granularity: TextExtendSelection,
location: &TextIter,
start: &mut TextIter,
end: &mut TextIter
) -> ControlFlow { ... }
fn insert_at_cursor(&self, text: &str) { ... }
fn insert_emoji(&self) { ... }
fn move_cursor(
&self,
step: MovementStep,
count: i32,
extend_selection: bool
) { ... }
fn paste_clipboard(&self) { ... }
fn set_anchor(&self) { ... }
fn snapshot_layer(&self, layer: TextViewLayer, snapshot: Snapshot) { ... }
fn toggle_overwrite(&self) { ... }
}
Provided Methods§
sourcefn copy_clipboard(&self)
fn copy_clipboard(&self)
The class handler for the GtkTextView::copy-clipboard
keybinding signal.
sourcefn cut_clipboard(&self)
fn cut_clipboard(&self)
The class handler for the GtkTextView::cut-clipboard
keybinding signal
sourcefn delete_from_cursor(&self, type_: DeleteType, count: i32)
fn delete_from_cursor(&self, type_: DeleteType, count: i32)
The class handler for the GtkTextView::delete-from-cursor
keybinding signal.
sourcefn extend_selection(
&self,
granularity: TextExtendSelection,
location: &TextIter,
start: &mut TextIter,
end: &mut TextIter
) -> ControlFlow
fn extend_selection( &self, granularity: TextExtendSelection, location: &TextIter, start: &mut TextIter, end: &mut TextIter ) -> ControlFlow
The class handler for the GtkTextView::extend-selection
signal.
sourcefn insert_at_cursor(&self, text: &str)
fn insert_at_cursor(&self, text: &str)
The class handler for the GtkTextView::insert-at-cursor
keybinding signal.
sourcefn insert_emoji(&self)
fn insert_emoji(&self)
The class handler for the GtkTextView::insert-emoji
signal.
sourcefn move_cursor(&self, step: MovementStep, count: i32, extend_selection: bool)
fn move_cursor(&self, step: MovementStep, count: i32, extend_selection: bool)
The class handler for the GtkTextView::move-cursor
keybinding signal.
sourcefn paste_clipboard(&self)
fn paste_clipboard(&self)
The class handler for the GtkTextView::paste-clipboard
keybinding signal.
sourcefn set_anchor(&self)
fn set_anchor(&self)
The class handler for the GtkTextView::set-anchor
keybinding signal.
sourcefn snapshot_layer(&self, layer: TextViewLayer, snapshot: Snapshot)
fn snapshot_layer(&self, layer: TextViewLayer, snapshot: Snapshot)
The snapshot_layer vfunc is called before and after the text
view is drawing its own text. Applications can override this vfunc
in a subclass to draw customized content underneath or above the
text. In the TextViewLayer::BelowText
and TextViewLayer::AboveText
layers the drawing is done in the buffer coordinate space.
sourcefn toggle_overwrite(&self)
fn toggle_overwrite(&self)
The class handler for the GtkTextView::toggle-overwrite
keybinding signal.