Top | Description | ![]() |
![]() |
![]() |
![]() |
#include <gtk/gtk.h> struct GtkActionBar; GtkWidget * gtk_action_bar_new (void
); void gtk_action_bar_pack_start (GtkActionBar *bar
,GtkWidget *child
); void gtk_action_bar_pack_end (GtkActionBar *bar
,GtkWidget *child
); GtkWidget * gtk_action_bar_get_center_widget (GtkActionBar *bar
); void gtk_action_bar_set_center_widget (GtkActionBar *bar
,GtkWidget *center_widget
);
GtkActionBar is similar to a horizontal GtkBox, it allows to place 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.
GtkWidget * gtk_action_bar_new (void
);
Creates a new GtkActionBar widget.
Returns : |
a new GtkActionBar |
Since 3.12
void gtk_action_bar_pack_start (GtkActionBar *bar
,GtkWidget *child
);
Adds child
to box
, packed with reference to the
start of the box
.
|
A GtkActionBar |
|
the GtkWidget to be added to bar
|
Since 3.12
void gtk_action_bar_pack_end (GtkActionBar *bar
,GtkWidget *child
);
Adds child
to box
, packed with reference to the
end of the box
.
|
A GtkActionBar |
|
the GtkWidget to be added to bar
|
Since 3.12
GtkWidget * gtk_action_bar_get_center_widget (GtkActionBar *bar
);
Retrieves the center box widget of the bar.
|
a GtkActionBar |
Returns : |
the center GtkBox. [transfer none] |
Since 3.12
void gtk_action_bar_set_center_widget (GtkActionBar *bar
,GtkWidget *center_widget
);
Sets the center widget for the GtkActionBar.
|
a GtkActionBar |
|
a widget to use for the center. [allow-none] |
Since 3.12