CtkOrientable: CTK+ 3 Reference Manual

## CtkOrientable CtkOrientable — An interface for flippable widgets |

## Functions

CtkOrientation | ctk_orientable_get_orientation ()
void | ctk_orientable_set_orientation ()

## Properties

CtkOrientation | orientation | Read / Write

## Types and Values

| CtkOrientable

## Object Hierarchy

        GInterface
        ╰── CtkOrientable

## Prerequisites

CtkOrientable requires GObject.

## Known Implementations

CtkOrientable is implemented by CtkAppChooserWidget, CtkBox, CtkButtonBox, CtkCellAreaBox, CtkCellRendererProgress, CtkCellView, CtkColorChooserWidget, CtkColorSelection, CtkFileChooserButton, CtkFileChooserWidget, CtkFlowBox, CtkFontChooserWidget, CtkFontSelection, CtkGrid, CtkHBox, CtkHButtonBox, CtkHPaned, CtkHScale, CtkHScrollbar, CtkHSeparator, CtkInfoBar, CtkLevelBar, CtkPaned, CtkProgressBar, CtkRange, CtkRecentChooserWidget, CtkScale, CtkScaleButton, CtkScrollbar, CtkSeparator, CtkShortcutsGroup, CtkShortcutsSection, CtkShortcutsShortcut, CtkSpinButton, CtkStackSwitcher, CtkStatusbar, CtkToolPalette, CtkToolbar, CtkVBox, CtkVButtonBox, CtkVPaned, CtkVScale, CtkVScrollbar, CtkVSeparator and CtkVolumeButton.

## Includes

    #include <ctk/ctk.h>

## Description

The CtkOrientable interface is implemented by all widgets that can be oriented horizontally or vertically. Historically, such widgets have been realized as subclasses of a common base class (e.g CtkBox/CtkHBox/CtkVBox or CtkScale/CtkHScale/CtkVScale). CtkOrientable is more flexible in that it allows the orientation to be changed at runtime, allowing the widgets to “flip”.

CtkOrientable was introduced in CTK+ 2.16.

## Functions

### ctk_orientable_get_orientation ()

    CtkOrientation
    ctk_orientable_get_orientation (CtkOrientable *orientable);

Retrieves the orientation of the `orientable` .

#### Parameters

orientable | a CtkOrientable |

#### Returns

the orientation of the `orientable` .

Since: 2.16

### ctk_orientable_set_orientation ()

    void
    ctk_orientable_set_orientation (CtkOrientable *orientable,
                                    CtkOrientation orientation);

Sets the orientation of the `orientable` .

#### Parameters

orientable | a CtkOrientable |
orientation | the orientable’s new orientation. |

Since: 2.16

## Types and Values

### CtkOrientable

    typedef struct _CtkOrientable CtkOrientable;

## Property Details

### The `“orientation”` property

      “orientation”              CtkOrientation

The orientation of the orientable.

Owner: CtkOrientable

Flags: Read / Write

Default value: CTK_ORIENTATION_HORIZONTAL

Since: 2.16