Trait gtk4::prelude::EditableExt
source · [−]pub trait EditableExt: 'static {
Show 37 methods
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 cursor_position(&self) -> i32;
fn selection_bound(&self) -> i32;
fn xalign(&self) -> f32;
fn set_xalign(&self, xalign: f32);
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;
}
Required Methods
source
fn delete_selection(&self)
source
fn delete_text(&self, start_pos: i32, end_pos: i32)
source
fn finish_delegate(&self)
source
fn is_editable(&self) -> bool
source
fn enables_undo(&self) -> bool
source
fn max_width_chars(&self) -> i32
source
fn selection_bounds(&self) -> Option<(i32, i32)>
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_width_chars(&self, n_chars: i32)
source
fn cursor_position(&self) -> i32
source
fn selection_bound(&self) -> i32
source
fn set_xalign(&self, xalign: f32)
source
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>(
fn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_cursor_position_notify<F: Fn(&Self) + 'static>(
fn connect_cursor_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_editable_notify<F: Fn(&Self) + 'static>(
fn connect_editable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_enable_undo_notify<F: Fn(&Self) + 'static>(
fn connect_enable_undo_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_max_width_chars_notify<F: Fn(&Self) + 'static>(
fn connect_max_width_chars_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_selection_bound_notify<F: Fn(&Self) + 'static>(
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
sourcefn connect_width_chars_notify<F: Fn(&Self) + 'static>(
fn connect_width_chars_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source