Trait gtk4::prelude::ButtonExt

source ·
pub trait ButtonExt: 'static {
Show 19 methods // Required methods fn child(&self) -> Option<Widget>; fn has_frame(&self) -> bool; fn icon_name(&self) -> Option<GString>; fn label(&self) -> Option<GString>; fn uses_underline(&self) -> bool; fn set_child(&self, child: Option<&impl IsA<Widget>>); fn set_has_frame(&self, has_frame: bool); fn set_icon_name(&self, icon_name: &str); fn set_label(&self, label: &str); 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_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_has_frame_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

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

source

fn has_frame(&self) -> bool

source

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

source

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

source

fn uses_underline(&self) -> bool

source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

source

fn set_has_frame(&self, has_frame: bool)

source

fn set_icon_name(&self, icon_name: &str)

source

fn set_label(&self, label: &str)

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_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

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

source

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

source

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

source

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

Implementors§

source§

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