[][src]Trait libhandy4::ActionRowExt

pub trait ActionRowExt: 'static {
    pub fn activate(&self);
pub fn add_prefix<P: IsA<Widget>>(&self, widget: &P);
pub fn add_suffix<P: IsA<Widget>>(&self, widget: &P);
pub fn get_activatable_widget(&self) -> Option<Widget>;
pub fn get_icon_name(&self) -> Option<GString>;
pub fn get_subtitle(&self) -> Option<GString>;
pub fn get_subtitle_lines(&self) -> i32;
pub fn get_title_lines(&self) -> i32;
pub fn remove<P: IsA<Widget>>(&self, widget: &P);
pub fn set_activatable_widget<P: IsA<Widget>>(&self, widget: Option<&P>);
pub fn set_icon_name(&self, icon_name: &str);
pub fn set_subtitle(&self, subtitle: Option<&str>);
pub fn set_subtitle_lines(&self, subtitle_lines: i32);
pub fn set_title_lines(&self, title_lines: i32);
pub fn connect_activated<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_activatable_widget_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_subtitle_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_subtitle_lines_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_title_lines_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
pub fn connect_property_use_underline_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all ActionRow methods.

Implementors

ActionRow, ComboRow

Required methods

pub fn activate(&self)[src]

pub fn add_prefix<P: IsA<Widget>>(&self, widget: &P)[src]

Adds a prefix widget to self.

widget

the prefix widget

pub fn add_suffix<P: IsA<Widget>>(&self, widget: &P)[src]

Adds a suffix widget to self.

widget

the suffix widget

pub fn get_activatable_widget(&self) -> Option<Widget>[src]

Gets the widget activated when self is activated.

Returns

the widget activated when self is activated, or None if none has been set.

pub fn get_icon_name(&self) -> Option<GString>[src]

Gets the icon name for self.

Returns

the icon name for self. The returned string is owned by the ActionRow and should not be freed.

pub fn get_subtitle(&self) -> Option<GString>[src]

Gets the subtitle for self.

Returns

the subtitle for self, or None.

pub fn get_subtitle_lines(&self) -> i32[src]

Gets the number of lines at the end of which the subtitle label will be ellipsized. If the value is 0, the number of lines won't be limited.

Returns

the number of lines at the end of which the subtitle label will be ellipsized.

pub fn get_title_lines(&self) -> i32[src]

Gets the number of lines at the end of which the title label will be ellipsized. If the value is 0, the number of lines won't be limited.

Returns

the number of lines at the end of which the title label will be ellipsized.

pub fn remove<P: IsA<Widget>>(&self, widget: &P)[src]

Removes a child from self.

widget

the gtk::Widget to be removed

pub fn set_activatable_widget<P: IsA<Widget>>(&self, widget: Option<&P>)[src]

Sets the widget to activate when self is activated, either by clicking on it, by calling ActionRowExt::activate, or via mnemonics in the title or the subtitle. See the “use_underline” property to enable mnemonics.

The target widget will be activated by emitting the gtk::Widget::mnemonic-activate signal on it.

widget

the target gtk::Widget, or None to unset

pub fn set_icon_name(&self, icon_name: &str)[src]

Sets the icon name for self.

icon_name

the icon name

pub fn set_subtitle(&self, subtitle: Option<&str>)[src]

Sets the subtitle for self.

subtitle

the subtitle

pub fn set_subtitle_lines(&self, subtitle_lines: i32)[src]

Sets the number of lines at the end of which the subtitle label will be ellipsized. If the value is 0, the number of lines won't be limited.

subtitle_lines

the number of lines at the end of which the subtitle label will be ellipsized

pub fn set_title_lines(&self, title_lines: i32)[src]

Sets the number of lines at the end of which the title label will be ellipsized. If the value is 0, the number of lines won't be limited.

title_lines

the number of lines at the end of which the title label will be ellipsized

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

This signal is emitted after the row has been activated.

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

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

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

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

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

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

Loading content...

Implementors

impl<O: IsA<ActionRow>> ActionRowExt for O[src]

Loading content...