GtkActionBar — A full width bar for presenting contextual actions
GtkWidget * | gtk_action_bar_new () |
void | gtk_action_bar_pack_start () |
void | gtk_action_bar_pack_end () |
void | gtk_action_bar_remove () |
GtkWidget * | gtk_action_bar_get_center_widget () |
void | gtk_action_bar_set_center_widget () |
gboolean | gtk_action_bar_get_revealed () |
void | gtk_action_bar_set_revealed () |
gboolean | revealed | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkActionBar
GtkActionBar implements GtkAccessible, GtkBuildable and GtkConstraintTarget.
#include <gtk/gtk.h>
GtkActionBar 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.
GtkActionBar has a single CSS node with name actionbar.
GtkWidget *
gtk_action_bar_new (void
);
Creates a new GtkActionBar widget.
a new GtkActionBar
void gtk_action_bar_pack_start (GtkActionBar *action_bar
,GtkWidget *child
);
Adds child
to action_bar
, packed with reference to the start of the action_bar
.
action_bar | ||
child | the GtkWidget to be added to |
void gtk_action_bar_pack_end (GtkActionBar *action_bar
,GtkWidget *child
);
Adds child
to action_bar
, packed with reference to the end of the action_bar
.
action_bar | ||
child | the GtkWidget to be added to |
void gtk_action_bar_remove (GtkActionBar *action_bar
,GtkWidget *child
);
Removes a child from action_bar
.
action_bar | ||
child | the GtkWidget to be removed |
GtkWidget *
gtk_action_bar_get_center_widget (GtkActionBar *action_bar
);
Retrieves the center bar widget of the bar.
action_bar |
void gtk_action_bar_set_center_widget (GtkActionBar *action_bar
,GtkWidget *center_widget
);
Sets the center widget for the GtkActionBar.
action_bar | ||
center_widget | a widget to use for the center. | [allow-none] |
gboolean
gtk_action_bar_get_revealed (GtkActionBar *action_bar
);
Gets the value of the “revealed” property.
action_bar |
the current value of the “revealed” property.
void gtk_action_bar_set_revealed (GtkActionBar *action_bar
,gboolean revealed
);
Sets the “revealed” property to revealed
. Changing this will make action_bar
reveal (TRUE
) or conceal (FALSE
) itself via a sliding transition.
Note: this does not show or hide action_bar
in the “visible” sense, so revealing has no effect if “visible” is FALSE
.
action_bar | ||
revealed | The new value of the property |
typedef struct _GtkActionBar GtkActionBar;
“revealed”
property“revealed” gboolean
Controls whether the action bar shows its contents or not.
Owner: GtkActionBar
Flags: Read / Write
Default value: TRUE
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkActionBar.html