pub trait WidgetExt: 'static {
Show 52 methods // Required methods fn action_set_enabled(&self, action_name: &str, enabled: bool); fn close(&self); fn focus_default(&self) -> bool; fn force_close(&self); fn is_busy(&self) -> bool; fn can_maximize(&self) -> bool; fn child(&self) -> Option<Widget>; fn default_focus(&self) -> Option<Widget>; fn icon(&self) -> Option<Icon>; fn icon_name(&self) -> Option<GString>; fn id(&self) -> GString; fn kind(&self) -> GString; fn menu_model(&self) -> Option<MenuModel>; fn is_modified(&self) -> bool; fn needs_attention(&self) -> bool; fn position(&self) -> Option<Position>; fn is_reorderable(&self) -> bool; fn save_delegate(&self) -> Option<SaveDelegate>; fn title(&self) -> Option<GString>; fn insert_action_group(&self, prefix: &str, group: &impl IsA<ActionGroup>); fn mark_busy(&self); fn maximize(&self); fn raise(&self); fn set_can_maximize(&self, can_maximize: bool); fn set_child(&self, child: Option<&impl IsA<Widget>>); fn set_icon(&self, icon: Option<&impl IsA<Icon>>); fn set_icon_name(&self, icon_name: Option<&str>); fn set_id(&self, id: &str); fn set_kind(&self, kind: Option<&str>); fn set_menu_model(&self, menu_model: Option<&impl IsA<MenuModel>>); fn set_modified(&self, modified: bool); fn set_needs_attention(&self, needs_attention: bool); fn set_reorderable(&self, reorderable: bool); fn set_save_delegate(&self, save_delegate: Option<&impl IsA<SaveDelegate>>); fn set_title(&self, title: Option<&str>); fn unmark_busy(&self); fn unmaximize(&self); fn connect_get_default_focus<F: Fn(&Self) -> Option<Widget> + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_presented<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_busy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_can_maximize_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_icon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_kind_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_modified_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_needs_attention_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_reorderable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_save_delegate_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn action_set_enabled(&self, action_name: &str, enabled: bool)

source

fn close(&self)

source

fn focus_default(&self) -> bool

source

fn force_close(&self)

source

fn is_busy(&self) -> bool

source

fn can_maximize(&self) -> bool

source

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

source

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

source

fn icon(&self) -> Option<Icon>

source

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

source

fn id(&self) -> GString

source

fn kind(&self) -> GString

source

fn menu_model(&self) -> Option<MenuModel>

source

fn is_modified(&self) -> bool

source

fn needs_attention(&self) -> bool

source

fn position(&self) -> Option<Position>

source

fn is_reorderable(&self) -> bool

source

fn save_delegate(&self) -> Option<SaveDelegate>

source

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

source

fn insert_action_group(&self, prefix: &str, group: &impl IsA<ActionGroup>)

source

fn mark_busy(&self)

source

fn maximize(&self)

source

fn raise(&self)

source

fn set_can_maximize(&self, can_maximize: bool)

source

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

source

fn set_icon(&self, icon: Option<&impl IsA<Icon>>)

source

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

source

fn set_id(&self, id: &str)

source

fn set_kind(&self, kind: Option<&str>)

source

fn set_menu_model(&self, menu_model: Option<&impl IsA<MenuModel>>)

source

fn set_modified(&self, modified: bool)

source

fn set_needs_attention(&self, needs_attention: bool)

source

fn set_reorderable(&self, reorderable: bool)

source

fn set_save_delegate(&self, save_delegate: Option<&impl IsA<SaveDelegate>>)

source

fn set_title(&self, title: Option<&str>)

source

fn unmark_busy(&self)

source

fn unmaximize(&self)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§

source§

impl<O: IsA<Widget>> WidgetExt for O