Trait gtk4::prelude::ButtonExt

source ·
pub trait ButtonExt: IsA<Button> + Sealed + 'static {
Show 22 methods // Provided methods fn can_shrink(&self) -> bool { ... } 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_can_shrink(&self, can_shrink: 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_can_shrink_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } 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 { ... }
}

Provided Methods§

source

fn can_shrink(&self) -> bool

Available on crate feature v4_12 only.
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_can_shrink(&self, can_shrink: bool)

Available on crate feature v4_12 only.
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_can_shrink_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Available on crate feature v4_12 only.
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

Object Safety§

This trait is not object safe.

Implementors§

source§

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