Trait gtk4::prelude::EntryExt

source ·
pub trait EntryExt: 'static {
Show 138 methods // Required methods fn activates_default(&self) -> bool; fn attributes(&self) -> Option<AttrList>; fn buffer(&self) -> EntryBuffer; fn completion(&self) -> Option<EntryCompletion>; fn current_icon_drag_source(&self) -> i32; fn extra_menu(&self) -> Option<MenuModel>; 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_paintable(&self, icon_pos: EntryIconPosition) -> Option<Paintable>; 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 max_length(&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_length(&self) -> u16; fn is_visible(&self) -> bool; fn grab_focus_without_selecting(&self) -> bool; fn progress_pulse(&self); fn reset_im_context(&self); fn set_activates_default(&self, setting: bool); fn set_attributes(&self, attrs: &AttrList); fn set_buffer(&self, buffer: &impl IsA<EntryBuffer>); fn set_completion(&self, completion: Option<&EntryCompletion>); fn set_extra_menu(&self, model: Option<&impl IsA<MenuModel>>); 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, provider: &impl IsA<ContentProvider>, actions: DragAction ); fn set_icon_from_gicon( &self, icon_pos: EntryIconPosition, icon: Option<&impl IsA<Icon>> ); fn set_icon_from_icon_name( &self, icon_pos: EntryIconPosition, icon_name: Option<&str> ); fn set_icon_from_paintable( &self, icon_pos: EntryIconPosition, paintable: Option<&impl IsA<Paintable>> ); 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_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: Option<&TabArray>); fn set_visibility(&self, visible: bool); fn unset_invisible_char(&self); 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 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_paintable(&self) -> Option<Paintable>; fn set_primary_icon_paintable<P: IsA<Paintable>>( &self, primary_icon_paintable: Option<&P> ); 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_paintable(&self) -> Option<Paintable>; fn set_secondary_icon_paintable<P: IsA<Paintable>>( &self, secondary_icon_paintable: Option<&P> ); 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 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 connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_activate(&self); fn connect_icon_press<F: Fn(&Self, EntryIconPosition) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_icon_release<F: Fn(&Self, EntryIconPosition) + 'static>( &self, f: F ) -> SignalHandlerId; 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_completion_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_extra_menu_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_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_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_paintable_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_paintable_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_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_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;
}

Required Methods§

source

fn activates_default(&self) -> bool

source

fn attributes(&self) -> Option<AttrList>

source

fn buffer(&self) -> EntryBuffer

source

fn completion(&self) -> Option<EntryCompletion>

source

fn current_icon_drag_source(&self) -> i32

source

fn extra_menu(&self) -> Option<MenuModel>

source

fn has_frame(&self) -> bool

source

fn icon_is_activatable(&self, icon_pos: EntryIconPosition) -> bool

source

fn icon_area(&self, icon_pos: EntryIconPosition) -> Rectangle

source

fn icon_at_pos(&self, x: i32, y: i32) -> i32

source

fn icon_gicon(&self, icon_pos: EntryIconPosition) -> Option<Icon>

source

fn icon_name(&self, icon_pos: EntryIconPosition) -> Option<GString>

source

fn icon_paintable(&self, icon_pos: EntryIconPosition) -> Option<Paintable>

source

fn icon_is_sensitive(&self, icon_pos: EntryIconPosition) -> bool

source

fn icon_storage_type(&self, icon_pos: EntryIconPosition) -> ImageType

source

fn icon_tooltip_markup(&self, icon_pos: EntryIconPosition) -> Option<GString>

source

fn icon_tooltip_text(&self, icon_pos: EntryIconPosition) -> Option<GString>

source

fn input_hints(&self) -> InputHints

source

fn input_purpose(&self) -> InputPurpose

source

fn max_length(&self) -> i32

source

fn is_overwrite_mode(&self) -> bool

source

fn placeholder_text(&self) -> Option<GString>

source

fn progress_fraction(&self) -> f64

source

fn progress_pulse_step(&self) -> f64

source

fn tabs(&self) -> Option<TabArray>

source

fn text_length(&self) -> u16

source

fn is_visible(&self) -> bool

source

fn grab_focus_without_selecting(&self) -> bool

source

fn progress_pulse(&self)

source

fn reset_im_context(&self)

source

fn set_activates_default(&self, setting: bool)

source

fn set_attributes(&self, attrs: &AttrList)

source

fn set_buffer(&self, buffer: &impl IsA<EntryBuffer>)

source

fn set_completion(&self, completion: Option<&EntryCompletion>)

source

fn set_extra_menu(&self, model: Option<&impl IsA<MenuModel>>)

source

fn set_has_frame(&self, setting: bool)

source

fn set_icon_activatable(&self, icon_pos: EntryIconPosition, activatable: bool)

source

fn set_icon_drag_source( &self, icon_pos: EntryIconPosition, provider: &impl IsA<ContentProvider>, actions: DragAction )

source

fn set_icon_from_gicon( &self, icon_pos: EntryIconPosition, icon: Option<&impl IsA<Icon>> )

source

fn set_icon_from_icon_name( &self, icon_pos: EntryIconPosition, icon_name: Option<&str> )

source

fn set_icon_from_paintable( &self, icon_pos: EntryIconPosition, paintable: Option<&impl IsA<Paintable>> )

source

fn set_icon_sensitive(&self, icon_pos: EntryIconPosition, sensitive: bool)

source

fn set_icon_tooltip_markup( &self, icon_pos: EntryIconPosition, tooltip: Option<&str> )

source

fn set_icon_tooltip_text( &self, icon_pos: EntryIconPosition, tooltip: Option<&str> )

source

fn set_input_hints(&self, hints: InputHints)

source

fn set_input_purpose(&self, purpose: InputPurpose)

source

fn set_invisible_char(&self, ch: Option<char>)

source

fn set_max_length(&self, max: i32)

source

fn set_overwrite_mode(&self, overwrite: bool)

source

fn set_placeholder_text(&self, text: Option<&str>)

source

fn set_progress_fraction(&self, fraction: f64)

source

fn set_progress_pulse_step(&self, fraction: f64)

source

fn set_tabs(&self, tabs: Option<&TabArray>)

source

fn set_visibility(&self, visible: bool)

source

fn unset_invisible_char(&self)

source

fn enables_emoji_completion(&self) -> bool

source

fn set_enable_emoji_completion(&self, enable_emoji_completion: bool)

source

fn im_module(&self) -> Option<GString>

source

fn set_im_module(&self, im_module: Option<&str>)

source

fn is_invisible_char_set(&self) -> bool

source

fn is_primary_icon_activatable(&self) -> bool

source

fn set_primary_icon_activatable(&self, primary_icon_activatable: bool)

source

fn primary_icon_gicon(&self) -> Option<Icon>

source

fn set_primary_icon_gicon<P: IsA<Icon>>(&self, primary_icon_gicon: Option<&P>)

source

fn primary_icon_name(&self) -> Option<GString>

source

fn set_primary_icon_name(&self, primary_icon_name: Option<&str>)

source

fn primary_icon_paintable(&self) -> Option<Paintable>

source

fn set_primary_icon_paintable<P: IsA<Paintable>>( &self, primary_icon_paintable: Option<&P> )

source

fn is_primary_icon_sensitive(&self) -> bool

source

fn set_primary_icon_sensitive(&self, primary_icon_sensitive: bool)

source

fn primary_icon_storage_type(&self) -> ImageType

source

fn primary_icon_tooltip_markup(&self) -> Option<GString>

source

fn set_primary_icon_tooltip_markup( &self, primary_icon_tooltip_markup: Option<&str> )

source

fn primary_icon_tooltip_text(&self) -> Option<GString>

source

fn set_primary_icon_tooltip_text(&self, primary_icon_tooltip_text: Option<&str>)

source

fn scroll_offset(&self) -> i32

source

fn is_secondary_icon_activatable(&self) -> bool

source

fn set_secondary_icon_activatable(&self, secondary_icon_activatable: bool)

source

fn secondary_icon_gicon(&self) -> Option<Icon>

source

fn set_secondary_icon_gicon<P: IsA<Icon>>( &self, secondary_icon_gicon: Option<&P> )

source

fn secondary_icon_name(&self) -> Option<GString>

source

fn set_secondary_icon_name(&self, secondary_icon_name: Option<&str>)

source

fn secondary_icon_paintable(&self) -> Option<Paintable>

source

fn set_secondary_icon_paintable<P: IsA<Paintable>>( &self, secondary_icon_paintable: Option<&P> )

source

fn is_secondary_icon_sensitive(&self) -> bool

source

fn set_secondary_icon_sensitive(&self, secondary_icon_sensitive: bool)

source

fn secondary_icon_storage_type(&self) -> ImageType

source

fn secondary_icon_tooltip_markup(&self) -> Option<GString>

source

fn set_secondary_icon_tooltip_markup( &self, secondary_icon_tooltip_markup: Option<&str> )

source

fn secondary_icon_tooltip_text(&self) -> Option<GString>

source

fn set_secondary_icon_tooltip_text( &self, secondary_icon_tooltip_text: Option<&str> )

source

fn shows_emoji_icon(&self) -> bool

source

fn set_show_emoji_icon(&self, show_emoji_icon: bool)

source

fn must_truncate_multiline(&self) -> bool

source

fn set_truncate_multiline(&self, truncate_multiline: bool)

source

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

source

fn emit_activate(&self)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§

source§

impl<O: IsA<Entry>> EntryExt for O