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§

source

fn backspace(&self)

The class handler for the GtkTextView::backspace keybinding signal.

source

fn copy_clipboard(&self)

The class handler for the GtkTextView::copy-clipboard keybinding signal.

source

fn cut_clipboard(&self)

The class handler for the GtkTextView::cut-clipboard keybinding signal

source

fn delete_from_cursor(&self, type_: DeleteType, count: i32)

The class handler for the GtkTextView::delete-from-cursor keybinding signal.

source

fn extend_selection( &self, granularity: TextExtendSelection, location: &TextIter, start: &mut TextIter, end: &mut TextIter ) -> ControlFlow

The class handler for the GtkTextView::extend-selection signal.

source

fn insert_at_cursor(&self, text: &str)

The class handler for the GtkTextView::insert-at-cursor keybinding signal.

source

fn insert_emoji(&self)

The class handler for the GtkTextView::insert-emoji signal.

source

fn move_cursor(&self, step: MovementStep, count: i32, extend_selection: bool)

The class handler for the GtkTextView::move-cursor keybinding signal.

source

fn paste_clipboard(&self)

The class handler for the GtkTextView::paste-clipboard keybinding signal.

source

fn set_anchor(&self)

The class handler for the GtkTextView::set-anchor keybinding signal.

source

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.

source

fn toggle_overwrite(&self)

The class handler for the GtkTextView::toggle-overwrite keybinding signal.

Object Safety§

This trait is not object safe.

Implementors§