panel.widget
Module for [Widget] class
Types 3
classWidget : gtk.widget.Widget
PanelWidget is the base widget class for widgets added to a #PanelFrame. It can be use as-is or you can subclass it.
Methods
WidgetGidBuilder builder()Get builder for [panel.widget.Widget] Returns: New builder objectbool busy() @propertybool canMaximize() @propertyvoid canMaximize(bool propval) @propertyvoid child(gtk.widget.Widget propval) @propertySet `child` property. Params: propval = The child inside this widget.void icon(gio.icon.Icon propval) @propertySet `icon` property. Params: propval = The icon for this widget.void iconName(string propval) @propertySet `iconName` property. Params: propval = The icon name for this widget.string id() @propertyvoid id(string propval) @propertystring kind() @propertyvoid kind(string propval) @propertygio.menu_model.MenuModel menuModel() @propertyGet `menuModel` property. Returns: A menu model to display additional options for the page to the user via menus.void menuModel(gio.menu_model.MenuModel propval) @propertySet `menuModel` property. Params: propval = A menu model to display additional options for the page to the user via menus.bool modified() @propertyvoid modified(bool propval) @propertybool needsAttention() @propertyvoid needsAttention(bool propval) @propertybool reorderable() @propertyvoid reorderable(bool propval) @propertypanel.save_delegate.SaveDelegate saveDelegate() @propertyGet `saveDelegate` property. Returns: The save delegate attached to this widget.void saveDelegate(panel.save_delegate.SaveDelegate propval) @propertySet `saveDelegate` property. Params: propval = The save delegate attached to this widget.void title(string propval) @propertySet `title` property. Params: propval = The title for this widget.string tooltip() @propertyGet `tooltip` property. Returns: The tooltip to display in tabs for the widget.void tooltip(string propval) @propertySet `tooltip` property. Params: propval = The tooltip to display in tabs for the widget.void actionSetEnabled(string actionName, bool enabled)void close()bool focusDefault()void forceClose()Closes the widget without any save dialogs.bool getBusy()bool getCanMaximize()gtk.widget.Widget getChild()Gets the child widget of the panel. Returns: a #GtkWidget or nullgtk.widget.Widget getDefaultFocus()Discovers the widget that should be focused as the default widget for the #PanelWidget.gio.icon.Icon getIcon()Gets a #GIcon for the widget. Returns: a #GIcon or nullstring getIconName()Gets the icon name for the widget. Returns: the icon name or nullstring getId()Gets the id of the panel widget. Returns: The id of the panel widget.string getKind()gio.menu_model.MenuModel getMenuModel()Gets the #GMenuModel for the widget.bool getModified()Gets the modified status of a panel widget Returns: the modified status of the panel widget.bool getNeedsAttention()panel.position.Position getPosition()Gets teh position of the widget within the dock. Returns: a #PanelPosition or null if the widget isn't within a #PanelFrame.bool getReorderable()panel.save_delegate.SaveDelegate getSaveDelegate()Gets the #PanelWidget:save-delegate property.string getTitle()Gets the title for the widget. Returns: the title or nullstring getTooltip()Gets the tooltip for the widget. Returns: the tooltip or nullvoid insertActionGroup(string prefix, gio.action_group.ActionGroup group)void markBusy()void maximize()void raise()void setCanMaximize(bool canMaximize)void setChild(gtk.widget.Widget child = null)Sets the child widget of the panel.void setIcon(gio.icon.Icon icon = null)Sets a #GIcon for the widget.void setIconName(string iconName = null)Sets the icon name for the widget.void setId(string id)Sets the id of the panel widget.void setKind(string kind = null)Sets the kind of the widget.void setMenuModel(gio.menu_model.MenuModel menuModel = null)Sets the #GMenuModel for the widget.void setModified(bool modified)Sets the modified status of a panel widget.void setNeedsAttention(bool needsAttention)void setReorderable(bool reorderable)void setSaveDelegate(panel.save_delegate.SaveDelegate saveDelegate = null)Sets the #PanelWidget:save-delegate property.void setTitle(string title = null)Sets the title for the widget.void setTooltip(string tooltip = null)Sets the tooltip for the widget to be displayed in tabs.void unmarkBusy()void unmaximize()gulong connectGetDefaultFocus(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T : gtk.widget.Widget)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : panel.widget.Widget)))
&& Parameters!T.length < 2)Connect to `GetDefaultFocus` signal.gulong connectPresented(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : panel.widget.Widget)))
&& Parameters!T.length < 2)Connect to `Presented` signal.classWidgetGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T
Methods
T canMaximize(bool propval)T child(gtk.widget.Widget propval)Set `child` property. Params: propval = The child inside this widget. Returns: Builder instance for fluent chainingT icon(gio.icon.Icon propval)Set `icon` property. Params: propval = The icon for this widget. Returns: Builder instance for fluent chainingT iconName(string propval)Set `iconName` property. Params: propval = The icon name for this widget. Returns: Builder instance for fluent chainingT id(string propval)T kind(string propval)T menuModel(gio.menu_model.MenuModel propval)Set `menuModel` property. Params: propval = A menu model to display additional options for the page to the user via menus. Returns: Builder instance for fluent chainingT modified(bool propval)T needsAttention(bool propval)T reorderable(bool propval)T saveDelegate(panel.save_delegate.SaveDelegate propval)Set `saveDelegate` property. Params: propval = The save delegate attached to this widget. Returns: Builder instance for fluent chainingT title(string propval)Set `title` property. Params: propval = The title for this widget. Returns: Builder instance for fluent chainingT tooltip(string propval)Set `tooltip` property. Params: propval = The tooltip to display in tabs for the widget. Returns: Builder instance for fluent chaining