Trait gtk::prelude::EntryExt[][src]

pub trait EntryExt: 'static {
Show 193 methods fn activates_default(&self) -> bool;
fn alignment(&self) -> f32;
fn attributes(&self) -> Option<AttrList>;
fn buffer(&self) -> EntryBuffer;
fn completion(&self) -> Option<EntryCompletion>;
fn current_icon_drag_source(&self) -> i32;
fn cursor_hadjustment(&self) -> Option<Adjustment>;
fn has_frame(&self) -> bool;
fn icon_is_activatable(&self, icon_pos: EntryIconPosition) -> bool;
fn icon_area(&self, icon_pos: EntryIconPosition) -> Rectangle;
fn icon_at_pos(&self, x: i32, y: i32) -> i32;
fn icon_gicon(&self, icon_pos: EntryIconPosition) -> Option<Icon>;
fn icon_name(&self, icon_pos: EntryIconPosition) -> Option<GString>;
fn icon_pixbuf(&self, icon_pos: EntryIconPosition) -> Option<Pixbuf>;
fn icon_is_sensitive(&self, icon_pos: EntryIconPosition) -> bool;
fn icon_storage_type(&self, icon_pos: EntryIconPosition) -> ImageType;
fn icon_tooltip_markup(
        &self,
        icon_pos: EntryIconPosition
    ) -> Option<GString>;
fn icon_tooltip_text(&self, icon_pos: EntryIconPosition) -> Option<GString>;
fn input_hints(&self) -> InputHints;
fn input_purpose(&self) -> InputPurpose;
fn layout(&self) -> Option<Layout>;
fn layout_offsets(&self) -> (i32, i32);
fn max_length(&self) -> i32;
fn max_width_chars(&self) -> i32;
fn is_overwrite_mode(&self) -> bool;
fn placeholder_text(&self) -> Option<GString>;
fn progress_fraction(&self) -> f64;
fn progress_pulse_step(&self) -> f64;
fn tabs(&self) -> Option<TabArray>;
fn text(&self) -> GString;
fn text_area(&self) -> Rectangle;
fn text_length(&self) -> u16;
fn is_visible(&self) -> bool;
fn width_chars(&self) -> i32;
fn grab_focus_without_selecting(&self);
fn im_context_filter_keypress(&self, event: &EventKey) -> bool;
fn layout_index_to_text_index(&self, layout_index: i32) -> i32;
fn progress_pulse(&self);
fn reset_im_context(&self);
fn set_activates_default(&self, setting: bool);
fn set_alignment(&self, xalign: f32);
fn set_attributes(&self, attrs: &AttrList);
fn set_buffer<P: IsA<EntryBuffer>>(&self, buffer: &P);
fn set_completion<P: IsA<EntryCompletion>>(&self, completion: Option<&P>);
fn set_cursor_hadjustment<P: IsA<Adjustment>>(&self, adjustment: Option<&P>);
fn set_has_frame(&self, setting: bool);
fn set_icon_activatable(
        &self,
        icon_pos: EntryIconPosition,
        activatable: bool
    );
fn set_icon_drag_source(
        &self,
        icon_pos: EntryIconPosition,
        target_list: &TargetList,
        actions: DragAction
    );
fn set_icon_from_gicon<P: IsA<Icon>>(
        &self,
        icon_pos: EntryIconPosition,
        icon: Option<&P>
    );
fn set_icon_from_icon_name(
        &self,
        icon_pos: EntryIconPosition,
        icon_name: Option<&str>
    );
fn set_icon_from_pixbuf(
        &self,
        icon_pos: EntryIconPosition,
        pixbuf: Option<&Pixbuf>
    );
fn set_icon_sensitive(&self, icon_pos: EntryIconPosition, sensitive: bool);
fn set_icon_tooltip_markup(
        &self,
        icon_pos: EntryIconPosition,
        tooltip: Option<&str>
    );
fn set_icon_tooltip_text(
        &self,
        icon_pos: EntryIconPosition,
        tooltip: Option<&str>
    );
fn set_input_hints(&self, hints: InputHints);
fn set_input_purpose(&self, purpose: InputPurpose);
fn set_invisible_char(&self, ch: Option<char>);
fn set_max_length(&self, max: i32);
fn set_max_width_chars(&self, n_chars: i32);
fn set_overwrite_mode(&self, overwrite: bool);
fn set_placeholder_text(&self, text: Option<&str>);
fn set_progress_fraction(&self, fraction: f64);
fn set_progress_pulse_step(&self, fraction: f64);
fn set_tabs(&self, tabs: &TabArray);
fn set_text(&self, text: &str);
fn set_visibility(&self, visible: bool);
fn set_width_chars(&self, n_chars: i32);
fn text_index_to_layout_index(&self, text_index: i32) -> i32;
fn unset_invisible_char(&self);
fn is_caps_lock_warning(&self) -> bool;
fn set_caps_lock_warning(&self, caps_lock_warning: bool);
fn cursor_position(&self) -> i32;
fn enables_emoji_completion(&self) -> bool;
fn set_enable_emoji_completion(&self, enable_emoji_completion: bool);
fn im_module(&self) -> Option<GString>;
fn set_im_module(&self, im_module: Option<&str>);
fn is_invisible_char_set(&self) -> bool;
fn set_invisible_char_set(&self, invisible_char_set: bool);
fn populates_all(&self) -> bool;
fn set_populate_all(&self, populate_all: bool);
fn is_primary_icon_activatable(&self) -> bool;
fn set_primary_icon_activatable(&self, primary_icon_activatable: bool);
fn primary_icon_gicon(&self) -> Option<Icon>;
fn set_primary_icon_gicon<P: IsA<Icon>>(
        &self,
        primary_icon_gicon: Option<&P>
    );
fn primary_icon_name(&self) -> Option<GString>;
fn set_primary_icon_name(&self, primary_icon_name: Option<&str>);
fn primary_icon_pixbuf(&self) -> Option<Pixbuf>;
fn set_primary_icon_pixbuf(&self, primary_icon_pixbuf: Option<&Pixbuf>);
fn is_primary_icon_sensitive(&self) -> bool;
fn set_primary_icon_sensitive(&self, primary_icon_sensitive: bool);
fn primary_icon_storage_type(&self) -> ImageType;
fn primary_icon_tooltip_markup(&self) -> Option<GString>;
fn set_primary_icon_tooltip_markup(
        &self,
        primary_icon_tooltip_markup: Option<&str>
    );
fn primary_icon_tooltip_text(&self) -> Option<GString>;
fn set_primary_icon_tooltip_text(
        &self,
        primary_icon_tooltip_text: Option<&str>
    );
fn scroll_offset(&self) -> i32;
fn is_secondary_icon_activatable(&self) -> bool;
fn set_secondary_icon_activatable(&self, secondary_icon_activatable: bool);
fn secondary_icon_gicon(&self) -> Option<Icon>;
fn set_secondary_icon_gicon<P: IsA<Icon>>(
        &self,
        secondary_icon_gicon: Option<&P>
    );
fn secondary_icon_name(&self) -> Option<GString>;
fn set_secondary_icon_name(&self, secondary_icon_name: Option<&str>);
fn secondary_icon_pixbuf(&self) -> Option<Pixbuf>;
fn set_secondary_icon_pixbuf(&self, secondary_icon_pixbuf: Option<&Pixbuf>);
fn is_secondary_icon_sensitive(&self) -> bool;
fn set_secondary_icon_sensitive(&self, secondary_icon_sensitive: bool);
fn secondary_icon_storage_type(&self) -> ImageType;
fn secondary_icon_tooltip_markup(&self) -> Option<GString>;
fn set_secondary_icon_tooltip_markup(
        &self,
        secondary_icon_tooltip_markup: Option<&str>
    );
fn secondary_icon_tooltip_text(&self) -> Option<GString>;
fn set_secondary_icon_tooltip_text(
        &self,
        secondary_icon_tooltip_text: Option<&str>
    );
fn selection_bound(&self) -> i32;
fn shadow_type(&self) -> ShadowType;
fn set_shadow_type(&self, shadow_type: ShadowType);
fn shows_emoji_icon(&self) -> bool;
fn set_show_emoji_icon(&self, show_emoji_icon: bool);
fn must_truncate_multiline(&self) -> bool;
fn set_truncate_multiline(&self, truncate_multiline: bool);
fn xalign(&self) -> f32;
fn set_xalign(&self, xalign: f32);
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_activate(&self);
fn connect_backspace<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_backspace(&self);
fn connect_copy_clipboard<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_copy_clipboard(&self);
fn connect_cut_clipboard<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_cut_clipboard(&self);
fn connect_delete_from_cursor<F: Fn(&Self, DeleteType, i32) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_delete_from_cursor(&self, type_: DeleteType, count: i32);
fn connect_icon_press<F: Fn(&Self, EntryIconPosition, &Event) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_icon_release<F: Fn(&Self, EntryIconPosition, &Event) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_insert_at_cursor<F: Fn(&Self, &str) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_insert_at_cursor(&self, string: &str);
fn connect_insert_emoji<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_insert_emoji(&self);
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_move_cursor(
        &self,
        step: MovementStep,
        count: i32,
        extend_selection: bool
    );
fn connect_paste_clipboard<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_paste_clipboard(&self);
fn connect_populate_popup<F: Fn(&Self, &Widget) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_preedit_changed<F: Fn(&Self, &str) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_preedit_changed(&self, preedit: &str);
fn connect_toggle_overwrite<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_toggle_overwrite(&self);
fn connect_activates_default_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_attributes_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_buffer_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_caps_lock_warning_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_completion_notify<F: Fn(&Self) + '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_emoji_completion_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_has_frame_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_im_module_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_input_hints_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_input_purpose_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_invisible_char_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_invisible_char_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_max_length_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_overwrite_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_placeholder_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_populate_all_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_activatable_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_gicon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_pixbuf_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_sensitive_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_storage_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_tooltip_markup_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_primary_icon_tooltip_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_progress_fraction_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_progress_pulse_step_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_scroll_offset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_activatable_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_gicon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_pixbuf_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_sensitive_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_storage_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_tooltip_markup_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_secondary_icon_tooltip_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_selection_bound_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_shadow_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_show_emoji_icon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_tabs_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_text_length_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_truncate_multiline_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_visibility_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

This is supported on crate feature v3_22_27 only.
This is supported on crate feature v3_22_27 only.

Implementors