Panel.FrameHeader

g GObject.GInterface GObject.GInterface Panel.FrameHeader Panel.FrameHeader GObject.GInterface->Panel.FrameHeader

Implementations:

Panel.FrameHeaderBar, Panel.FrameSwitcher, Panel.FrameTabBar

Methods

add_prefix (priority, child)

add_suffix (priority, child)

can_drop (widget)

get_frame ()

page_changed (widget)

set_frame (frame)

Virtual Methods

do_add_prefix (priority, child)

do_add_suffix (priority, child)

do_can_drop (widget)

do_page_changed (widget)

Properties

Name

Type

Flags

Short Description

frame

Panel.Frame

r/w

Frame

Signals

None

Fields

None

Class Details

class Panel.FrameHeader
Bases:

GObject.GInterface

Structure:

Panel.FrameHeaderInterface

An interface implemented by the header of a Panel.Frame.

add_prefix(priority, child)
Parameters:

Add a widget into a the prefix area with a priority. The highest the priority the closest to the start.

add_suffix(priority, child)
Parameters:

Add a widget into a the suffix area with a priority. The highest the priority the closest to the start.

can_drop(widget)
Parameters:

widget (Panel.Widget) – a Panel.Widget

Returns:

whether the widget can be dropped.

Return type:

bool

Tells if the panel widget can be drop onto the panel frame.

get_frame()
Returns:

a Panel.Frame or None

Return type:

Panel.Frame or None

Gets the frame the header is attached to.

page_changed(widget)
Parameters:

widget (Panel.Widget or None) – a Panel.Widget or None if no page is visible

Notifies the header that the visible page has changed.

set_frame(frame)
Parameters:

frame (Panel.Frame or None) – a Panel.Frame or None

Sets the frame the header is attached to.

do_add_prefix(priority, child) virtual
Parameters:

Add a widget into a the prefix area with a priority. The highest the priority the closest to the start.

do_add_suffix(priority, child) virtual
Parameters:

Add a widget into a the suffix area with a priority. The highest the priority the closest to the start.

do_can_drop(widget) virtual
Parameters:

widget (Panel.Widget) – a Panel.Widget

Returns:

whether the widget can be dropped.

Return type:

bool

Tells if the panel widget can be drop onto the panel frame.

do_page_changed(widget) virtual
Parameters:

widget (Panel.Widget or None) – a Panel.Widget or None if no page is visible

Notifies the header that the visible page has changed.

Property Details

Panel.FrameHeader.props.frame
Name:

frame

Type:

Panel.Frame

Default Value:

None

Flags:

READABLE, WRITABLE

The frame the header is attached to, or None.