Skip to main content

EditableImpl

Trait EditableImpl 

Source
pub trait EditableImpl: ObjectImpl + ObjectSubclass<Type: IsA<Editable>> {
    // Provided methods
    fn insert_text(&self, new_text: &str, position: &mut i32) { ... }
    fn delete_text(&self, start_pos: i32, end_pos: i32) { ... }
    fn changed(&self) { ... }
    fn do_insert_text(&self, new_text: &str, position: &mut i32) { ... }
    fn do_delete_text(&self, start_pos: i32, end_pos: i32) { ... }
    fn chars(&self, start_pos: i32, end_pos: i32) -> Option<GString> { ... }
    fn set_selection_bounds(&self, start_pos: i32, end_pos: i32) { ... }
    fn selection_bounds(&self) -> Option<(i32, i32)> { ... }
    fn set_position(&self, position: i32) { ... }
    fn position(&self) -> i32 { ... }
}

Provided Methods§

Source

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

Source

fn delete_text(&self, start_pos: i32, end_pos: i32)

Source

fn changed(&self)

Source

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

Source

fn do_delete_text(&self, start_pos: i32, end_pos: i32)

Source

fn chars(&self, start_pos: i32, end_pos: i32) -> Option<GString>

Source

fn set_selection_bounds(&self, start_pos: i32, end_pos: i32)

Source

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

Source

fn set_position(&self, position: i32)

Source

fn position(&self) -> i32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§