pub trait ComboRowExt: IsA<ComboRow> + Sealed + 'static {
Show 23 methods // Provided methods fn enables_search(&self) -> bool { ... } fn expression(&self) -> Option<Expression> { ... } fn factory(&self) -> Option<ListItemFactory> { ... } fn list_factory(&self) -> Option<ListItemFactory> { ... } fn model(&self) -> Option<ListModel> { ... } fn selected(&self) -> u32 { ... } fn selected_item(&self) -> Option<Object> { ... } fn uses_subtitle(&self) -> bool { ... } fn set_enable_search(&self, enable_search: bool) { ... } fn set_expression(&self, expression: Option<impl AsRef<Expression>>) { ... } fn set_factory(&self, factory: Option<&impl IsA<ListItemFactory>>) { ... } fn set_list_factory(&self, factory: Option<&impl IsA<ListItemFactory>>) { ... } fn set_model(&self, model: Option<&impl IsA<ListModel>>) { ... } fn set_selected(&self, position: u32) { ... } fn set_use_subtitle(&self, use_subtitle: bool) { ... } fn connect_enable_search_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_expression_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_factory_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_list_factory_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_selected_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_selected_item_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_use_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all ComboRow methods.

§Implementors

ComboRow

Provided Methods§

Available on crate feature v1_4 only.

Gets whether search is enabled.

If set to TRUE, a search entry will be shown in the popup that allows to search for items in the list.

Search requires expression to be set.

§Returns

whether the popup includes a search entry

source

fn expression(&self) -> Option<Expression>

Gets the expression used to obtain strings from items.

§Returns

the expression used to obtain strings from items

source

fn factory(&self) -> Option<ListItemFactory>

Gets the factory for populating list items.

§Returns

the factory in use

source

fn list_factory(&self) -> Option<ListItemFactory>

Gets the factory for populating list items in the popup.

§Returns

the factory in use

source

fn model(&self) -> Option<ListModel>

Gets the model that provides the displayed items.

§Returns

The model in use

source

fn selected(&self) -> u32

Gets the position of the selected item.

§Returns

the position of the selected item, or Gtk::INVALID_LIST_POSITION if no item is selected

source

fn selected_item(&self) -> Option<Object>

Gets the selected item.

§Returns

the selected item

source

fn uses_subtitle(&self) -> bool

Gets whether to use the current value as the subtitle.

§Returns

whether to use the current value as the subtitle

Available on crate feature v1_4 only.

Sets whether to enable search.

If set to TRUE, a search entry will be shown in the popup that allows to search for items in the list.

Search requires expression to be set.

whether to enable search

source

fn set_expression(&self, expression: Option<impl AsRef<Expression>>)

Sets the expression used to obtain strings from items.

The expression must have a value type of G_TYPE_STRING.

It’s used to bind strings to labels produced by the default factory if factory is not set, or when use-subtitle is set to TRUE.

§expression

an expression

source

fn set_factory(&self, factory: Option<&impl IsA<ListItemFactory>>)

Sets the factory for populating list items.

This factory is always used for the item in the row. It is also used for items in the popup unless list-factory is set.

§factory

the factory to use

source

fn set_list_factory(&self, factory: Option<&impl IsA<ListItemFactory>>)

Sets the factory for populating list items in the popup.

If this is not set, factory is used.

§factory

the factory to use

source

fn set_model(&self, model: Option<&impl IsA<ListModel>>)

Sets the model that provides the displayed items.

§model

the model to use

source

fn set_selected(&self, position: u32)

Selects the item at the given position.

§position

the position of the item to select, or Gtk::INVALID_LIST_POSITION

source

fn set_use_subtitle(&self, use_subtitle: bool)

Sets whether to use the current value as the subtitle.

If you use a custom list item factory, you will need to give the row a name conversion expression with expression.

If set to TRUE, you should not access subtitle.

The subtitle is interpreted as Pango markup if use-markup is set to TRUE.

§use_subtitle

whether to use the current value as the subtitle

source

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

Available on crate feature v1_4 only.
source

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

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§