pub trait EntryRowExt: IsA<EntryRow> + Sealed + 'static {
Show 26 methods // Provided methods fn add_prefix(&self, widget: &impl IsA<Widget>) { ... } fn add_suffix(&self, widget: &impl IsA<Widget>) { ... } fn activates_default(&self) -> bool { ... } fn attributes(&self) -> Option<AttrList> { ... } fn enables_emoji_completion(&self) -> bool { ... } fn input_hints(&self) -> InputHints { ... } fn input_purpose(&self) -> InputPurpose { ... } fn shows_apply_button(&self) -> bool { ... } fn text_length(&self) -> u32 { ... } fn grab_focus_without_selecting(&self) -> bool { ... } fn remove(&self, widget: &impl IsA<Widget>) { ... } fn set_activates_default(&self, activates: bool) { ... } fn set_attributes(&self, attributes: Option<&AttrList>) { ... } fn set_enable_emoji_completion(&self, enable_emoji_completion: bool) { ... } fn set_input_hints(&self, hints: InputHints) { ... } fn set_input_purpose(&self, purpose: InputPurpose) { ... } fn set_show_apply_button(&self, show_apply_button: bool) { ... } fn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_entry_activated<F: Fn(&Self) + '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_enable_emoji_completion_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_show_apply_button_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_text_length_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}
Available on crate feature v1_2 only.
Expand description

Trait containing all EntryRow methods.

§Implementors

EntryRow, PasswordEntryRow

Provided Methods§

source

fn add_prefix(&self, widget: &impl IsA<Widget>)

Adds a prefix widget to @self.

§widget

a widget

source

fn add_suffix(&self, widget: &impl IsA<Widget>)

Adds a suffix widget to @self.

§widget

a widget

source

fn activates_default(&self) -> bool

Gets whether activating the embedded entry can activate the default widget.

§Returns

whether to activate the default widget

source

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

Gets Pango attributes applied to the text of the embedded entry.

§Returns

the list of attributes

source

fn enables_emoji_completion(&self) -> bool

Gets whether to suggest emoji replacements on @self.

§Returns

whether or not emoji completion is enabled

source

fn input_hints(&self) -> InputHints

Gets the additional input hints of @self.

§Returns

The input hints

source

fn input_purpose(&self) -> InputPurpose

Gets the input purpose of @self.

§Returns

the input purpose

source

fn shows_apply_button(&self) -> bool

Gets whether @self can show the apply button.

§Returns

whether to show the apply button

source

fn text_length(&self) -> u32

Available on crate feature v1_5 only.

Retrieves the current length of the text in @self.

§Returns

The current number of characters in @self, or 0 if there are none.

source

fn grab_focus_without_selecting(&self) -> bool

Available on crate feature v1_3 only.

Causes @self to have keyboard focus without selecting the text.

See Gtk::Text::grab_focus_without_selecting() for more information.

§Returns

whether the focus is now inside @self

source

fn remove(&self, widget: &impl IsA<Widget>)

Removes a child from @self.

§widget

the child to be removed

source

fn set_activates_default(&self, activates: bool)

Sets whether activating the embedded entry can activate the default widget.

§activates

whether to activate the default widget

source

fn set_attributes(&self, attributes: Option<&AttrList>)

Sets Pango attributes to apply to the text of the embedded entry.

The Pango::Attribute’s start_index and end_index must refer to the Gtk::EntryBuffer text, i.e. without the preedit string.

§attributes

a list of attributes

source

fn set_enable_emoji_completion(&self, enable_emoji_completion: bool)

Sets whether to suggest emoji replacements on @self.

Emoji replacement is done with :-delimited names, like :heart:.

§enable_emoji_completion

Whether emoji completion should be enabled or not

source

fn set_input_hints(&self, hints: InputHints)

Set additional input hints for @self.

Input hints allow input methods to fine-tune their behavior.

See also: [input-purpose][struct@crate::AdwEntryRow#input-purpose]

§hints

the hints

source

fn set_input_purpose(&self, purpose: InputPurpose)

Sets the input purpose of @self.

The input purpose can be used by input methods to adjust their behavior.

§purpose

the purpose

source

fn set_show_apply_button(&self, show_apply_button: bool)

Sets whether @self can show the apply button.

When set to TRUE, typing text in the entry will reveal an apply button. Clicking it or pressing the Enter key will hide the button and emit the apply signal.

This is useful if changing the entry contents can trigger an expensive operation, e.g. network activity, to avoid triggering it after typing every character.

§show_apply_button

whether to show the apply button

source

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

Emitted when the apply button is pressed.

See show-apply-button.

source

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

Emitted when the embedded entry is activated.

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_enable_emoji_completion_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_show_apply_button_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

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

Available on crate feature v1_5 only.

Object Safety§

This trait is not object safe.

Implementors§