HdyTitleBar: Handy Reference Manual

## HdyTitleBar HdyTitleBar — A simple title bar container. |

## Functions

GtkWidget * | hdy_title_bar_new ()
gboolean | hdy_title_bar_get_selection_mode ()
void | hdy_title_bar_set_selection_mode ()

## Properties

gboolean | selection-mode | Read / Write

## Types and Values

#define | HDY_TYPE_TITLE_BAR
| HdyTitleBar

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBin
                        ╰── HdyTitleBar

## Implemented Interfaces

HdyTitleBar implements AtkImplementorIface and GtkBuildable.

## Description

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 GtkHeaderBar but it won't force a widget layout on you: you can put whatever widget you want in it, including a GtkHeaderBar.

HdyTitleBar becomes really useful when you want to animate header bars, like an adaptive application using HdyLeaflet would do.

HdyTitleBar has been deprecated, header bars can be animated without it when placed inside HdyWindow or HdyApplicationWindow.

### CSS nodes

HdyTitleBar has a single CSS node with name headerbar.

## Functions

### hdy_title_bar_new ()

    GtkWidget *
    hdy_title_bar_new (void);

`hdy_title_bar_new` has been deprecated since version 1.4 and should not be used in newly-written code.

Creates a new HdyTitleBar.

#### Returns

a new HdyTitleBar

### hdy_title_bar_get_selection_mode ()

    gboolean
    hdy_title_bar_get_selection_mode (HdyTitleBar *self);

`hdy_title_bar_get_selection_mode` has been deprecated since version 1.4 and should not be used in newly-written code.

Returns whether whether `self` is in selection mode.

#### Parameters

self | a HdyTitleBar |

#### Returns

`TRUE` if the title bar is in selection mode

### hdy_title_bar_set_selection_mode ()

    void
    hdy_title_bar_set_selection_mode (HdyTitleBar *self,
                                      gboolean selection_mode);

`hdy_title_bar_set_selection_mode` has been deprecated since version 1.4 and should not be used in newly-written code.

Sets whether `self` is in selection mode.

#### Parameters

self | a HdyTitleBar |
selection_mode | `TRUE` to enable the selection mode |

## Types and Values

### HDY_TYPE_TITLE_BAR

    #define HDY_TYPE_TITLE_BAR (hdy_title_bar_get_type())

### HdyTitleBar

    typedef struct _HdyTitleBar HdyTitleBar;

## Property Details

### The `“selection-mode”` property

      “selection-mode”           gboolean

Whether or not the title bar is in selection mode.

Owner: HdyTitleBar

Flags: Read / Write

Default value: FALSE