gtk4::subclass::editable

Trait EditableImpl

Source
pub trait EditableImpl: WidgetImpl + ObjectSubclass<Type: IsA<Editable>> {
    // Provided methods
    fn insert_text(&self, text: &str, length: i32, position: &mut i32) { ... }
    fn delete_text(&self, start_position: i32, end_position: i32) { ... }
    fn changed(&self) { ... }
    fn text(&self) -> GString { ... }
    fn delegate(&self) -> Option<Editable> { ... }
    fn do_insert_text(&self, text: &str, length: i32, position: &mut i32) { ... }
    fn do_delete_text(&self, start_position: i32, end_position: i32) { ... }
    fn selection_bounds(&self) -> Option<(i32, i32)> { ... }
    fn set_selection_bounds(&self, start_position: i32, end_position: i32) { ... }
}

Provided Methods§

Source

fn insert_text(&self, text: &str, length: i32, position: &mut i32)

Source

fn delete_text(&self, start_position: i32, end_position: i32)

Source

fn changed(&self)

Source

fn text(&self) -> GString

Source

fn delegate(&self) -> Option<Editable>

Source

fn do_insert_text(&self, text: &str, length: i32, position: &mut i32)

Source

fn do_delete_text(&self, start_position: i32, end_position: i32)

Source

fn selection_bounds(&self) -> Option<(i32, i32)>

Source

fn set_selection_bounds(&self, start_position: i32, end_position: i32)

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§