Trait EditableExt

Source
pub trait EditableExt:
    IsA<Editable>
    + Sealed
    + 'static {
Show 35 methods // Provided methods fn delegate_get_accessible_platform_state( &self, state: AccessiblePlatformState, ) -> bool { ... } fn delete_selection(&self) { ... } fn delete_text(&self, start_pos: i32, end_pos: i32) { ... } fn finish_delegate(&self) { ... } fn alignment(&self) -> f32 { ... } fn chars(&self, start_pos: i32, end_pos: i32) -> GString { ... } fn delegate(&self) -> Option<Editable> { ... } fn is_editable(&self) -> bool { ... } fn enables_undo(&self) -> bool { ... } fn max_width_chars(&self) -> i32 { ... } fn position(&self) -> i32 { ... } fn selection_bounds(&self) -> Option<(i32, i32)> { ... } fn text(&self) -> GString { ... } fn width_chars(&self) -> i32 { ... } fn init_delegate(&self) { ... } fn insert_text(&self, text: &str, position: &mut i32) { ... } fn select_region(&self, start_pos: i32, end_pos: i32) { ... } fn set_alignment(&self, xalign: f32) { ... } fn set_editable(&self, is_editable: bool) { ... } fn set_enable_undo(&self, enable_undo: bool) { ... } fn set_max_width_chars(&self, n_chars: i32) { ... } fn set_position(&self, position: i32) { ... } fn set_text(&self, text: &str) { ... } fn set_width_chars(&self, n_chars: i32) { ... } fn selection_bound(&self) -> i32 { ... } fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_cursor_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_editable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_enable_undo_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_max_width_chars_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_selection_bound_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_width_chars_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_xalign_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn delegate_get_accessible_platform_state( &self, state: AccessiblePlatformState, ) -> bool

Available on crate feature v4_10 only.
Source

fn delete_selection(&self)

Source

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

Source

fn finish_delegate(&self)

Source

fn alignment(&self) -> f32

Source

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

Source

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

Source

fn is_editable(&self) -> bool

Source

fn enables_undo(&self) -> bool

Source

fn max_width_chars(&self) -> i32

Source

fn position(&self) -> i32

Source

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

Source

fn text(&self) -> GString

Source

fn width_chars(&self) -> i32

Source

fn init_delegate(&self)

Source

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

Source

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

Source

fn set_alignment(&self, xalign: f32)

Source

fn set_editable(&self, is_editable: bool)

Source

fn set_enable_undo(&self, enable_undo: bool)

Source

fn set_max_width_chars(&self, n_chars: i32)

Source

fn set_position(&self, position: i32)

Source

fn set_text(&self, text: &str)

Source

fn set_width_chars(&self, n_chars: i32)

Source

fn selection_bound(&self) -> i32

Source

fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_cursor_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_editable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_enable_undo_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_max_width_chars_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_selection_bound_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_width_chars_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_xalign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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§