pub trait TextViewImpl: WidgetImpl + ObjectSubclass<Type: IsA<TextView> + IsA<Scrollable>> {
// 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.
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.