Trait libpanel::prelude::PanelWidgetExt

source ·
pub trait PanelWidgetExt: IsA<Widget> + Sealed + 'static {
Show 55 methods // Provided 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 tooltip(&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 set_tooltip(&self, tooltip: 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 { ... } fn connect_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Widget methods.

§Implementors

Widget

Provided 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)

Closes the widget without any save dialogs.

source

fn is_busy(&self) -> bool

source

fn can_maximize(&self) -> bool

source

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

Gets the child widget of the panel.

§Returns

a gtk::Widget or None

source

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

Discovers the widget that should be focused as the default widget for the Widget.

For example, if you want to focus a text editor by default, you might return the GtkTextView inside your widgetry.

§Returns

the default widget to focus within the Widget.

source

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

Gets a gio::Icon for the widget.

§Returns

a gio::Icon or None

source

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

Gets the icon name for the widget.

§Returns

the icon name or None

source

fn id(&self) -> GString

Gets the id of the panel widget.

§Returns

The id of the panel widget.

source

fn kind(&self) -> GString

source

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

Gets the gio::MenuModel for the widget.

FrameHeader may use this model to display additional options for the page to the user via menus.

§Returns

a gio::MenuModel

source

fn is_modified(&self) -> bool

Gets the modified status of a panel widget

§Returns

the modified status of the panel widget.

source

fn needs_attention(&self) -> bool

source

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

Gets teh position of the widget within the dock.

§Returns

a Position or None if the widget isn’t within a Frame.

source

fn is_reorderable(&self) -> bool

source

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

Gets the save-delegate property.

The save delegate may be used to perform save operations on the content within the widget.

Document editors might use this to save the file to disk.

§Returns

a SaveDelegate or None

source

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

Gets the title for the widget.

§Returns

the title or None

source

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

Gets the tooltip for the widget.

§Returns

the tooltip or None

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>>)

Sets the child widget of the panel.

§child

a gtk::Widget or None

source

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

Sets a gio::Icon for the widget.

§icon

a gio::Icon or None

source

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

Sets the icon name for the widget.

§icon_name

the icon name or None

source

fn set_id(&self, id: &str)

Sets the id of the panel widget.

§id

the id to set for the panel widget.

source

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

Sets the kind of the widget.

§kind

the kind of this widget

source

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

Sets the gio::MenuModel for the widget.

FrameHeader may use this model to display additional options for the page to the user via menus.

a gio::MenuModel

source

fn set_modified(&self, modified: bool)

Sets the modified status of a panel widget.

§modified

the modified status

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>>)

Sets the save-delegate property.

The save delegate may be used to perform save operations on the content within the widget.

Document editors might use this to save the file to disk.

§save_delegate

a SaveDelegate or None

source

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

Sets the title for the widget.

§title

the title or None

source

fn set_tooltip(&self, tooltip: Option<&str>)

Sets the tooltip for the widget to be displayed in tabs.

§tooltip

the tooltip or None

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

Gets the default widget to focus within the Widget. The first handler for this signal is expected to return a widget, or None if there is nothing to focus.

§Returns

a gtk::Widget within Widget or None.

source

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

The “presented” signal is emitted when the widget is brought to the front of a frame.

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

source

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

Object Safety§

This trait is not object safe.

Implementors§