gtk4::subclass::text_view

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§