panel.widget

Module for [Widget] class

Types 3

PanelWidget is the base widget class for widgets added to a #PanelFrame. It can be use as-is or you can subclass it.

Methods
GType _gType() @property
Widget self()Returns `this`, for use in `with` statements.
WidgetGidBuilder builder()Get builder for [panel.widget.Widget] Returns: New builder object
bool busy() @property
bool canMaximize() @property
void canMaximize(bool propval) @property
gtk.widget.Widget child() @propertyGet `child` property. Returns: The child inside this widget.
void child(gtk.widget.Widget propval) @propertySet `child` property. Params: propval = The child inside this widget.
gio.icon.Icon icon() @propertyGet `icon` property. Returns: The icon for this widget.
void icon(gio.icon.Icon propval) @propertySet `icon` property. Params: propval = The icon for this widget.
string iconName() @propertyGet `iconName` property. Returns: The icon name for this widget.
void iconName(string propval) @propertySet `iconName` property. Params: propval = The icon name for this widget.
string id() @property
void id(string propval) @property
string kind() @property
void kind(string propval) @property
gio.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() @property
void modified(bool propval) @property
bool needsAttention() @property
void needsAttention(bool propval) @property
bool reorderable() @property
void reorderable(bool propval) @property
panel.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.
string title() @propertyGet `title` property. Returns: The title for 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()
void forceClose()Closes the widget without any save dialogs.
bool getBusy()
gtk.widget.Widget getChild()Gets the child widget of the panel. Returns: a #GtkWidget or null
gtk.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 null
string getIconName()Gets the icon name for the widget. Returns: the icon name or null
string 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.
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.
panel.save_delegate.SaveDelegate getSaveDelegate()Gets the #PanelWidget:save-delegate property.
string getTitle()Gets the title for the widget. Returns: the title or null
string getTooltip()Gets the tooltip for the widget. Returns: the tooltip or null
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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new #PanelWidget. Returns: a newly created #PanelWidget
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 chaining
T icon(gio.icon.Icon propval)Set `icon` property. Params: propval = The icon for this widget. Returns: Builder instance for fluent chaining
T iconName(string propval)Set `iconName` property. Params: propval = The icon name for this widget. Returns: Builder instance for fluent chaining
T 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 chaining
T 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 chaining
T title(string propval)Set `title` property. Params: propval = The title for this widget. Returns: Builder instance for fluent chaining
T tooltip(string propval)Set `tooltip` property. Params: propval = The tooltip to display in tabs for the widget. Returns: Builder instance for fluent chaining

Fluent builder for [panel.widget.Widget]

Methods