Panel.Dock¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Bottom Height |
||
r |
Can reveal bottom |
||
r |
Can reveal end |
||
r |
Can reveal start |
||
r |
Can reveal top |
||
r/w |
End Width |
||
r/w/en |
Reveal bottom |
||
r/w/en |
Reveal end |
||
r/w/en |
Reveal start |
||
r/w/en |
Reveal top |
||
r/w |
Start Width |
||
r/w |
Top Height |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Signal is emitted when a widget is requesting to be added via a drag-n-drop event. |
|
This signal is emitted when a new frame is needed. |
|
This signal is emitted when dragging of a panel begins. |
|
This signal is emitted when dragging of a panel either completes or was cancelled. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Panel.Dock(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Panel.Dock
is a widget designed to contain widgets that can be docked. Use thePanel.Dock
as the top widget of your dockable UI.A
Panel.Dock
is divided in 5 areas:Panel.Area.TOP
,Panel.Area.BOTTOM
,Panel.Area.START
,Panel.Area.END
represent the surrounding areas that can revealed.Panel.Area.CENTER
represent the main area, that is always displayed and resized depending on the reveal state of the surrounding areas.It will contain a #PanelDockChild for each of the areas in use, albeit this is done by the widget.
- classmethod new()¶
- Returns:
a newly created
Panel.Dock
- Return type:
Create a new
Panel.Dock
.
- foreach_frame(callback, *user_data)¶
- Parameters:
callback (
Panel.FrameCallback
) – a function to be called on each frame
Invokes a callback for each frame in the dock.
- get_can_reveal_area(area)¶
- Parameters:
area (
Panel.Area
) – the panel area to check.- Returns:
whether it can reveal the area or not. If the is no child or the child is empty, will return
False
.- Return type:
Tells if the panel area can be revealed.
- get_can_reveal_bottom()¶
- Returns:
whether it can reveal the bottom area or not. If the is no child or the child is empty, will return
False
.- Return type:
Tells if the bottom panel area can be revealed.
- get_can_reveal_end()¶
- Returns:
whether it can reveal the end area or not. If the is no child or the child is empty, will return
False
.- Return type:
Tells if the end panel area can be revealed.
- get_can_reveal_start()¶
- Returns:
whether it can reveal the start area or not. If the is no child or the child is empty, will return
False
.- Return type:
Tells if the start panel area can be revealed.
- get_can_reveal_top()¶
- Returns:
whether it can reveal the top area or not. If the is no child or the child is empty, will return
False
.- Return type:
Tells if the top panel area can be revealed.
- get_reveal_area(area)¶
- Parameters:
area (
Panel.Area
) – thePanel.Area
to return the reveal status of.- Returns:
The reveal state.
- Return type:
Tells if an area if revealed.
- get_reveal_bottom()¶
- Returns:
The reveal state of the bottom area.
- Return type:
Tells if the bottom area is revealed.
- get_reveal_end()¶
- Returns:
The reveal state of the end area.
- Return type:
Tells if the end area is revealed.
- get_reveal_start()¶
- Returns:
The reveal state of the start area.
- Return type:
Tells if the start area is revealed.
- get_reveal_top()¶
- Returns:
The reveal state of the top area.
- Return type:
Tells if the top area is revealed.
- remove(widget)¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
to remove
Removes a widget from the dock. If widget is not a #DockChild, then the closest #DockChild parent is removed.
- set_reveal_area(area, reveal)¶
- Parameters:
area (
Panel.Area
) – aPanel.Area
.Panel.Area.CENTER
is an invalid value.reveal (
bool
) – reveal the area.
Sets the reveal status of the area.
- set_reveal_bottom(reveal_bottom)¶
- Parameters:
reveal_bottom (
bool
) – reveal the bottom area.
Sets the reveal status of the bottom area.
- set_reveal_end(reveal_end)¶
- Parameters:
reveal_end (
bool
) – reveal the end area.
Sets the reveal status of the end area.
- set_reveal_start(reveal_start)¶
- Parameters:
reveal_start (
bool
) – reveal the start area.
Sets the reveal status of the start area.
- set_reveal_top(reveal_top)¶
- Parameters:
reveal_top (
bool
) – reveal the top area.
Sets the reveal status of the top area.
- do_panel_drag_begin(widget) virtual¶
- Parameters:
widget (
Panel.Widget
) –
- do_panel_drag_end(widget) virtual¶
- Parameters:
widget (
Panel.Widget
) –
Signal Details¶
- Panel.Dock.signals.adopt_widget(dock, widget)¶
- Signal Name:
adopt-widget
- Flags:
- Parameters:
dock (
Panel.Dock
) – The object which received the signalwidget (
Panel.Widget
) – aPanel.Widget
- Returns:
Gdk.EVENT_STOP
to prevent dropping, otherwiseGdk.EVENT_PROPAGATE
to allow adopting the widget.- Return type:
Signal is emitted when a widget is requesting to be added via a drag-n-drop event.
This is generally propagated via
Panel.Frame
::adopt-widget
to the dock so that applications do not need to attach signal handlers to everyPanel.Frame
.New in version 1.2.
- Panel.Dock.signals.create_frame(dock, position)¶
- Signal Name:
create-frame
- Flags:
- Parameters:
dock (
Panel.Dock
) – The object which received the signalposition (
Panel.Position
) – the position for the frame
- Returns:
- Return type:
This signal is emitted when a new frame is needed.
New in version 1.2.
- Panel.Dock.signals.panel_drag_begin(dock, panel)¶
- Signal Name:
panel-drag-begin
- Flags:
- Parameters:
dock (
Panel.Dock
) – The object which received the signalpanel (
Panel.Widget
) – aPanel.Widget
This signal is emitted when dragging of a panel begins.
- Panel.Dock.signals.panel_drag_end(dock, panel)¶
- Signal Name:
panel-drag-end
- Flags:
- Parameters:
dock (
Panel.Dock
) – The object which received the signalpanel (
Panel.Widget
) – aPanel.Widget
This signal is emitted when dragging of a panel either completes or was cancelled.
Property Details¶
- Panel.Dock.props.bottom_height¶
-
Bottom Height
- Panel.Dock.props.can_reveal_bottom¶
-
Can reveal bottom
- Panel.Dock.props.can_reveal_end¶
-
Can reveal end
- Panel.Dock.props.can_reveal_start¶
-
Can reveal start
- Panel.Dock.props.can_reveal_top¶
-
Can reveal top
- Panel.Dock.props.end_width¶
-
End Width
- Panel.Dock.props.reveal_bottom¶
- Name:
reveal-bottom
- Type:
- Default Value:
- Flags:
Reveal bottom
- Panel.Dock.props.reveal_end¶
- Name:
reveal-end
- Type:
- Default Value:
- Flags:
Reveal end
- Panel.Dock.props.reveal_start¶
- Name:
reveal-start
- Type:
- Default Value:
- Flags:
Reveal start
- Panel.Dock.props.reveal_top¶
- Name:
reveal-top
- Type:
- Default Value:
- Flags:
Reveal top
- Panel.Dock.props.start_width¶
-
Start Width