Trait ButtonExt

Source
pub trait ButtonExt: 'static {
Show 24 methods // Required methods fn clicked(&self); fn get_always_show_image(&self) -> bool; fn get_event_window(&self) -> Option<Window>; fn get_image(&self) -> Option<Widget>; fn get_image_position(&self) -> PositionType; fn get_label(&self) -> Option<GString>; fn get_relief(&self) -> ReliefStyle; fn get_use_underline(&self) -> bool; fn set_always_show_image(&self, always_show: bool); fn set_image<P: IsA<Widget>>(&self, image: Option<&P>); fn set_image_position(&self, position: PositionType); fn set_label(&self, label: &str); fn set_relief(&self, relief: ReliefStyle); fn set_use_underline(&self, use_underline: bool); fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_activate(&self); fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_clicked(&self); fn connect_property_always_show_image_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_image_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_image_position_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_relief_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 clicked(&self)

Source

fn get_always_show_image(&self) -> bool

Source

fn get_event_window(&self) -> Option<Window>

Source

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

Source

fn get_image_position(&self) -> PositionType

Source

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

Source

fn get_relief(&self) -> ReliefStyle

Source

fn get_use_underline(&self) -> bool

Source

fn set_always_show_image(&self, always_show: bool)

Source

fn set_image<P: IsA<Widget>>(&self, image: Option<&P>)

Source

fn set_image_position(&self, position: PositionType)

Source

fn set_label(&self, label: &str)

Source

fn set_relief(&self, relief: ReliefStyle)

Source

fn set_use_underline(&self, use_underline: bool)

Source

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

Source

fn emit_activate(&self)

Source

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

Source

fn emit_clicked(&self)

Source

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

Source

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

Source

fn connect_property_image_position_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_relief_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§

Source§

impl<O: IsA<Button>> ButtonExt for O