Handy.TitleBar

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Handy.TitleBar Handy.TitleBar Gtk.Bin->Handy.TitleBar Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

get_selection_mode ()

set_selection_mode (selection_mode)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

selection-mode

bool

d/r/w/en

Whether or not the title bar is in selection mode deprecated

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class Handy.TitleBar(**kwargs)
Bases:

Gtk.Bin

Abstract:

No

Structure:

Handy.TitleBarClass

A simple title bar container.

HdyTitleBar is meant to be used as the top-level widget of your window’s title bar. It will be drawn with the same style as a [class`Gtk`.HeaderBar] but it won’t force a widget layout on you: you can put whatever widget you want in it, including a [class`Gtk`.HeaderBar].

HdyTitleBar becomes really useful when you want to animate header bars, like an adaptive application using [class`Leaflet`] would do.

HdyTitleBar has been deprecated, header bars can be animated without it when placed inside [class`Window`] or [class`ApplicationWindow`].

CSS nodes

HdyTitleBar has a single CSS node with name headerbar.

New in version 1.0.

Deprecated since version 1.4.

classmethod new()
Returns:

a new HdyTitleBar

Return type:

Gtk.Widget

Creates a new HdyTitleBar.

New in version 1.0.

Deprecated since version 1.4.

get_selection_mode()
Returns:

TRUE if the title bar is in selection mode

Return type:

bool

Returns whether whether self is in selection mode.

New in version 1.0.

Deprecated since version 1.4.

set_selection_mode(selection_mode)
Parameters:

selection_mode (bool) – TRUE to enable the selection mode

Sets whether self is in selection mode.

New in version 1.0.

Deprecated since version 1.4.

Property Details

Handy.TitleBar.props.selection_mode
Name:

selection-mode

Type:

bool

Default Value:

False

Flags:

DEPRECATED, READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether or not the title bar is in selection mode.

New in version 1.0.

Deprecated since version 1.4.