HdyColumn

HdyColumn — A container letting its child grow up to a given width.

Functions

Properties

gint maximum-width Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── HdyColumn

Implemented Interfaces

HdyColumn implements AtkImplementorIface and GtkBuildable.

Description

The HdyColumn widget limits the size of the widget it contains to a given maximum width. The expansion of the child from its minimum to its maximum size is eased out for a smooth transition.

If the child requires more than the requested maximum width, it will be allocated the minimum width it can fit in instead.

Functions

hdy_column_new ()

HdyColumn *
hdy_column_new (void);

Creates a new HdyColumn.

Returns

a new HdyColumn


hdy_column_get_maximum_width ()

gint
hdy_column_get_maximum_width (HdyColumn *self);

Gets the maximum width to allocate to the contained child.

Parameters

self

a HdyColumn

 

Returns

the maximum width to allocate to the contained child.


hdy_column_set_maximum_width ()

void
hdy_column_set_maximum_width (HdyColumn *self,
                              gint maximum_width);

Sets the maximum width to allocate to the contained child.

Parameters

self

a HdyColumn

 

maximum_width

the maximum width

 

Types and Values

HDY_TYPE_COLUMN

#define HDY_TYPE_COLUMN (hdy_column_get_type())

HdyColumn

typedef struct _HdyColumn HdyColumn;

Property Details

The “maximum-width” property

  “maximum-width”            gint

The maximum width allocated to the child.

Flags: Read / Write

Allowed values: >= 0

Default value: 0