Panel.ToggleButton¶
- 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/co |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Panel.ToggleButton(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
PanelToggleButton
is a button used to toggle the visibility of a [class`Panel`.Dock] area.<picture> <source srcset=”toggle-button-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”toggle-button.png” alt=”toggle-button”> </picture>
It will automatically reveal or hide the specified area from [property`Panel`.ToggleButton:dock].
- classmethod new(dock, area)¶
- Parameters:
dock (
Panel.Dock
) – [class`Panel`.Dock] the panel to controlarea (
Panel.Area
) – [enum`Panel`.Area] the panel area. A value of [enum`Panel`.Area.CENTER] is invalid.
- Returns:
a newly created [class`Panel`.ToggleButton]
- Return type:
Creates a new [class`Panel`.ToggleButton] to hide the dock in the area.
Property Details¶
- Panel.ToggleButton.props.area¶
- Name:
area
- Type:
- Default Value:
- Flags:
The area this button will reveal.
- Panel.ToggleButton.props.dock¶
- Name:
dock
- Type:
- Default Value:
- Flags:
The associated [class`Panel`.Dock]