[][src]Trait libhandy4::ComboRowExt

pub trait ComboRowExt: 'static {
    pub fn get_factory(&self) -> Option<ListItemFactory>;
pub fn get_list_factory(&self) -> Option<ListItemFactory>;
pub fn get_model(&self) -> Option<ListModel>;
pub fn get_selected(&self) -> u32;
pub fn get_selected_item(&self) -> Option<Object>;
pub fn get_use_subtitle(&self) -> bool;
pub fn set_factory<P: IsA<ListItemFactory>>(&self, factory: Option<&P>);
pub fn set_list_factory<P: IsA<ListItemFactory>>(&self, factory: Option<&P>);
pub fn set_model<P: IsA<ListModel>>(&self, model: Option<&P>);
pub fn set_selected(&self, position: u32);
pub fn set_use_subtitle(&self, use_subtitle: bool);
pub fn connect_property_expression_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_factory_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_list_factory_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_model_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_selected_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_selected_item_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_use_subtitle_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all ComboRow methods.

Implementors

ComboRow

Required methods

pub fn get_factory(&self) -> Option<ListItemFactory>[src]

Gets the factory that's currently used to populate list items.

The factory returned by this function is always used for the item in the button. It is also used for items in the popup if ComboRow:list-factory is not set.

Returns

The factory in use

pub fn get_list_factory(&self) -> Option<ListItemFactory>[src]

Gets the factory that's currently used to populate list items in the popup.

Returns

The factory in use

pub fn get_model(&self) -> Option<ListModel>[src]

Gets the model that provides the displayed items.

Returns

The model in use

pub fn get_selected(&self) -> u32[src]

Gets the position of the selected item.

Returns

the position of the selected item, or GTK_INVALID_LIST_POSITION if not item is selected

pub fn get_selected_item(&self) -> Option<Object>[src]

Gets the selected item. If no item is selected, None is returned.

Returns

The selected item

pub fn get_use_subtitle(&self) -> bool[src]

Gets whether the current value of self should be displayed as its subtitle.

Returns

whether the current value of self should be displayed as its subtitle

pub fn set_factory<P: IsA<ListItemFactory>>(&self, factory: Option<&P>)[src]

Sets the gtk::ListItemFactory to use for populating list items.

factory

the factory to use or None for none

pub fn set_list_factory<P: IsA<ListItemFactory>>(&self, factory: Option<&P>)[src]

Sets the gtk::ListItemFactory to use for populating list items in the popup.

factory

the factory to use or None for none

pub fn set_model<P: IsA<ListModel>>(&self, model: Option<&P>)[src]

Sets the gio::ListModel to use.

model

the model to use or None for none

pub fn set_selected(&self, position: u32)[src]

Selects the item at the given position.

position

the position of the item to select, or GTK_INVALID_LIST_POSITION

pub fn set_use_subtitle(&self, use_subtitle: bool)[src]

Sets whether the current value of self should be displayed as its subtitle.

If true, you should not access HdyActionRow:subtitle.

use_subtitle

true to set the current value as the subtitle

pub fn connect_property_expression_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_factory_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_list_factory_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_model_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_selected_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_selected_item_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_use_subtitle_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<ComboRow>> ComboRowExt for O[src]

Loading content...