Gdl.Dock¶
- Subclasses:
None
Methods¶
- Inherited:
Gdl.DockObject (34), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gdl.DockObjectClass (1), Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gdl.DockObject (7), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Default title for the newly created floating docks |
||
r/w/co |
Whether the dock is floating in its own window |
||
r/w/c |
X coordinate for a floating dock |
||
r/w/c |
Y coordinate for a floating dock |
||
r/w/c |
Height for the dock when it’s of floating type |
||
r/w/c |
Whether or not to prevent a floating dock window from appearing in the taskbar |
||
r/w/c |
Width for the dock when it’s of floating type |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Gdl.DockObject (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Short Description |
---|---|
Signals that the layout has changed, one or more widgets have been moved, added or removed. |
Fields¶
- Inherited:
Gdl.DockObject (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class Gdl.Dock(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_floating_item(item, x, y, width, height)¶
- Parameters:
item (
Gdl.DockItem
) – AGdl.DockItem
widgetx (
int
) – X coordinate of the floating itemy (
int
) – Y coordinate of the floating itemwidth (
int
) – width of the floating itemheight (
int
) – height of the floating item
Dock an item as a floating item. It creates a new window containing a new dock widget sharing the same master where the item is docked.
- add_item(item, placement)¶
- Parameters:
item (
Gdl.DockItem
) – AGdl.DockItem
widgetplacement (
Gdl.DockPlacement
) – A position for the widget
Dock in self, the widget item at the position defined by placement. The function takes care of finding the right parent widget eventually creating it if needed.
- get_item_by_name(name)¶
- Parameters:
name (
str
) – An item name- Returns:
A
Gdl.DockItem
widget orNone
- Return type:
Looks for an
Gdl.DockItem
widget bound to the master of the dock item. It does not search only in the children of this particular dock widget.
- get_named_items()¶
- Returns:
A list of
Gdl.DockItem
. The list should be freedwith g_list_free(), but the item still belong to the master.- Return type:
Returns a list of all item bound to the master of the dock, not only the children of this particular dock widget.
- get_placeholder_by_name(name)¶
- Parameters:
name (
str
) – An item name- Returns:
A
Gdl.DockPlaceholder
object orNone
- Return type:
Looks for an
Gdl.DockPlaceholder
object bound to the master of the dock item. It does not search only in the children of this particular dock widget.Deprecated since version 3.6: This function is always returning
None
.
- get_root()¶
- Returns:
A
Gdl.DockObject
orNone
.- Return type:
Get the first child of the
Gdl.DockObject
.
- hide_preview()¶
Hide the preview window used to materialize the dock target.
- new_from(floating)¶
- Parameters:
- Returns:
A new
Gdl.Dock
widget- Return type:
Create a new dock widget having the same master than self.
- set_skip_taskbar(skip)¶
-
Sets whether or not a floating dock window should be prevented from appearing in the system taskbar.
New in version 3.6.
- show_preview(rect)¶
- Parameters:
rect (
Gdk.Rectangle
) – The position and the size of the preview window
Show a preview window used to materialize the dock target.
- xor_rect(rect)¶
- Parameters:
rect (
Gdk.Rectangle
) – The position and the size of the preview window
Show a preview window used to materialize the dock target.
Deprecated since version 3.6: Use
Gdl.Dock.show_preview
instead.
- xor_rect_hide()¶
Hide the preview window used to materialize the dock target.
Deprecated since version 3.6: Use
Gdl.Dock.hide_preview
instead.
- do_layout_changed() virtual¶
Signal Details¶
Property Details¶
- Gdl.Dock.props.default_title¶
-
Default title for the newly created floating docks
- Gdl.Dock.props.floating¶
- Name:
floating
- Type:
- Default Value:
- Flags:
Whether the dock is floating in its own window
- Gdl.Dock.props.floatx¶
-
X coordinate for a floating dock
- Gdl.Dock.props.floaty¶
-
Y coordinate for a floating dock
- Gdl.Dock.props.height¶
-
Height for the dock when it’s of floating type
- Gdl.Dock.props.skip_taskbar¶
-
Whether or not to prevent a floating dock window from appearing in the taskbar. Note that this only affects floating windows that are created after this flag is set; existing windows are not affected. Usually, this property is used when you create the dock.
New in version 3.6.