CtkHBox: CTK+ 3 Reference Manual

## CtkHBox CtkHBox — A horizontal container box |

## Functions

CtkWidget * | ctk_hbox_new ()

## Types and Values

struct | CtkHBox

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── CtkWidget
                ╰── CtkContainer
                    ╰── CtkBox
                        ╰── CtkHBox

## Implemented Interfaces

CtkHBox implements AtkImplementorIface, CtkBuildable and CtkOrientable.

## Includes

    #include <ctk/ctk.h>

## Description

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.

## Functions

### ctk_hbox_new ()

    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.

#### Parameters

homogeneous | `TRUE` if all children are to be given equal space allotments. |
spacing | the number of pixels to place by default between children. |

#### Returns

a new CtkHBox.

## Types and Values

### struct CtkHBox

    struct CtkHBox;

## See Also

CtkVBox