| Top |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkContainer
╰── CtkBox
╰── CtkHBox
CtkHBox is a container that organizes child widgets into a single row.
Use the CtkBox packing interface to determine the arrangement, spacing, width, and alignment of CtkHBox children.
All children are allocated the same height.
CtkHBox has been deprecated. You can use CtkBox instead, which is a
very quick and easy change. If you have derived your own classes from
CtkHBox, you can simply change the inheritance to derive directly
from CtkBox. No further changes are needed, since the default
value of the “orientation” property is
CTK_ORIENTATION_HORIZONTAL.
If you have a grid-like layout composed of nested boxes, and you don’t need first-child or last-child styling, the recommendation is to switch to CtkGrid. For more information about migrating to CtkGrid, see Migrating from other containers to CtkGrid.
CtkWidget * ctk_hbox_new (gboolean homogeneous,gint spacing);
ctk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code.
You can use ctk_box_new() with CTK_ORIENTATION_HORIZONTAL instead,
which is a quick and easy change. But the recommendation is to switch to
CtkGrid, since CtkBox is going to go away eventually.
See Migrating from other containers to CtkGrid.
Creates a new CtkHBox.