Trait ToolButtonExt

Source
pub trait ToolButtonExt: 'static {
Show 17 methods // Required methods fn get_icon_name(&self) -> Option<GString>; fn get_icon_widget(&self) -> Option<Widget>; fn get_label(&self) -> Option<GString>; fn get_label_widget(&self) -> Option<Widget>; fn get_use_underline(&self) -> bool; fn set_icon_name(&self, icon_name: Option<&str>); fn set_icon_widget<P: IsA<Widget>>(&self, icon_widget: Option<&P>); fn set_label(&self, label: Option<&str>); fn set_label_widget<P: IsA<Widget>>(&self, label_widget: Option<&P>); fn set_use_underline(&self, use_underline: bool); fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_clicked(&self); fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_icon_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_label_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_label_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

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

Source

fn get_icon_widget(&self) -> Option<Widget>

Source

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

Source

fn get_label_widget(&self) -> Option<Widget>

Source

fn get_use_underline(&self) -> bool

Source

fn set_icon_name(&self, icon_name: Option<&str>)

Source

fn set_icon_widget<P: IsA<Widget>>(&self, icon_widget: Option<&P>)

Source

fn set_label(&self, label: Option<&str>)

Source

fn set_label_widget<P: IsA<Widget>>(&self, label_widget: Option<&P>)

Source

fn set_use_underline(&self, use_underline: bool)

Source

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

Source

fn emit_clicked(&self)

Source

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

Source

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

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§