CtkActionBar

CtkActionBar — A full width bar for presenting contextual actions

Functions

Types and Values

struct CtkActionBar

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── CtkWidget
            ╰── CtkContainer
                ╰── CtkBin
                    ╰── CtkActionBar

Implemented Interfaces

CtkActionBar implements AtkImplementorIface and CtkBuildable.

Includes

#include <ctk/ctk.h>

Description

CtkActionBar is designed to present contextual actions. It is expected to be displayed below the content and expand horizontally to fill the area.

It allows placing children at the start or the end. In addition, it contains an internal centered box which is centered with respect to the full width of the box, even if the children at either side take up different amounts of space.

CSS nodes

CtkActionBar has a single CSS node with name actionbar.

Functions

ctk_action_bar_new ()

CtkWidget *
ctk_action_bar_new (void);

Creates a new CtkActionBar widget.

Returns

a new CtkActionBar

Since: 3.12


ctk_action_bar_pack_start ()

void
ctk_action_bar_pack_start (CtkActionBar *action_bar,
                           CtkWidget *child);

Adds child to action_bar , packed with reference to the start of the action_bar .

Parameters

action_bar

A CtkActionBar

 

child

the CtkWidget to be added to action_bar

 

Since: 3.12


ctk_action_bar_pack_end ()

void
ctk_action_bar_pack_end (CtkActionBar *action_bar,
                         CtkWidget *child);

Adds child to action_bar , packed with reference to the end of the action_bar .

Parameters

action_bar

A CtkActionBar

 

child

the CtkWidget to be added to action_bar

 

Since: 3.12


ctk_action_bar_get_center_widget ()

CtkWidget *
ctk_action_bar_get_center_widget (CtkActionBar *action_bar);

Retrieves the center bar widget of the bar.

Parameters

action_bar

a CtkActionBar

 

Returns

the center CtkWidget or NULL.

[transfer none][nullable]

Since: 3.12


ctk_action_bar_set_center_widget ()

void
ctk_action_bar_set_center_widget (CtkActionBar *action_bar,
                                  CtkWidget *center_widget);

Sets the center widget for the CtkActionBar.

Parameters

action_bar

a CtkActionBar

 

center_widget

a widget to use for the center.

[allow-none]

Since: 3.12

Types and Values

struct CtkActionBar

struct CtkActionBar;

See Also

CtkBox