Trait gtk::ToolButtonExt
source · [−]pub trait ToolButtonExt: 'static {
Show 17 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_widget(&self) -> Option<Widget>
source
fn get_use_underline(&self) -> bool
source
fn set_icon_name(&self, icon_name: Option<&str>)
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)
sourcefn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_icon_widget_notify<F: Fn(&Self) + 'static>(
fn connect_property_icon_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_label_notify<F: Fn(&Self) + 'static>(
fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_label_widget_notify<F: Fn(&Self) + 'static>(
fn connect_property_label_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_use_underline_notify<F: Fn(&Self) + 'static>(