<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="gtk4-Orientable">
<refmeta>
<refentrytitle role="top_of_page" id="gtk4-Orientable.top_of_page">GtkOrientable</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkOrientable</refname>
<refpurpose>An interface for flippable widgets</refpurpose>
</refnamediv>

<refsect1 id="gtk4-Orientable.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkOrientation"><returnvalue>GtkOrientation</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-orientable-get-orientation">gtk_orientable_get_orientation</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-orientable-set-orientation">gtk_orientable_set_orientation</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="gtk4-Orientable.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="GtkOrientation"><type>GtkOrientation</type></link></entry><entry role="property_name"><link linkend="GtkOrientable--orientation">orientation</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<anchor id="GtkOrientable"/><refsect1 id="gtk4-Orientable.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkOrientable-struct">GtkOrientable</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="gtk4-Orientable.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GInterface">GInterface</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkOrientable
</screen>
</refsect1>
<refsect1 id="gtk4-Orientable.prerequisites" role="prerequisites">
<title role="prerequisites.title">Prerequisites</title>
<para>
GtkOrientable requires
 <link linkend="GObject">GObject</link>.</para>

</refsect1>
<refsect1 id="gtk4-Orientable.implementations" role="implementations">
<title role="implementations.title">Known Implementations</title>
<para>
GtkOrientable is implemented by
 <link linkend="GtkBox">GtkBox</link>,  <link linkend="GtkBoxLayout">GtkBoxLayout</link>,  <link linkend="GtkCellAreaBox">GtkCellAreaBox</link>,  <link linkend="GtkCellRendererProgress">GtkCellRendererProgress</link>,  <link linkend="GtkCellView">GtkCellView</link>,  <link linkend="GtkFlowBox">GtkFlowBox</link>,  <link linkend="GtkGrid">GtkGrid</link>,  <link linkend="GtkLevelBar">GtkLevelBar</link>,  <link linkend="GtkPaned">GtkPaned</link>,  <link linkend="GtkProgressBar">GtkProgressBar</link>,  <link linkend="GtkRange">GtkRange</link>,  <link linkend="GtkScale">GtkScale</link>,  <link linkend="GtkScaleButton">GtkScaleButton</link>,  <link linkend="GtkScrollbar">GtkScrollbar</link>,  <link linkend="GtkSeparator">GtkSeparator</link>,  <link linkend="GtkShortcutsGroup">GtkShortcutsGroup</link>,  <link linkend="GtkShortcutsSection">GtkShortcutsSection</link>,  <link linkend="GtkSpinButton">GtkSpinButton</link> and  <link linkend="GtkVolumeButton">GtkVolumeButton</link>.</para>

</refsect1>

<refsect1 id="gtk4-Orientable.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="gtk4-Orientable.description" role="desc">
<title role="desc.title">Description</title>
<para>The <link linkend="GtkOrientable"><type>GtkOrientable</type></link> interface is implemented by all widgets that can be
oriented horizontally or vertically. <link linkend="GtkOrientable"><type>GtkOrientable</type></link> is more flexible in that
it allows the orientation to be changed at runtime, allowing the widgets
to “flip”.</para>
<para><link linkend="GtkOrientable"><type>GtkOrientable</type></link> was introduced in GTK+ 2.16.</para>

</refsect1>
<refsect1 id="gtk4-Orientable.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-orientable-get-orientation" role="function">
<title>gtk_orientable_get_orientation&#160;()</title>
<indexterm zone="gtk-orientable-get-orientation"><primary>gtk_orientable_get_orientation</primary></indexterm>
<programlisting language="C"><link linkend="GtkOrientation"><returnvalue>GtkOrientation</returnvalue></link>
gtk_orientable_get_orientation (<parameter><link linkend="GtkOrientable"><type>GtkOrientable</type></link> *orientable</parameter>);</programlisting>
<para>Retrieves the orientation of the <parameter>orientable</parameter>
.</para>
<refsect3 id="gtk-orientable-get-orientation.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>orientable</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkOrientable"><type>GtkOrientable</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-orientable-get-orientation.returns" role="returns">
<title>Returns</title>
<para> the orientation of the <parameter>orientable</parameter>
.</para>
</refsect3></refsect2>
<refsect2 id="gtk-orientable-set-orientation" role="function">
<title>gtk_orientable_set_orientation&#160;()</title>
<indexterm zone="gtk-orientable-set-orientation"><primary>gtk_orientable_set_orientation</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_orientable_set_orientation (<parameter><link linkend="GtkOrientable"><type>GtkOrientable</type></link> *orientable</parameter>,
                                <parameter><link linkend="GtkOrientation"><type>GtkOrientation</type></link> orientation</parameter>);</programlisting>
<para>Sets the orientation of the <parameter>orientable</parameter>
.</para>
<refsect3 id="gtk-orientable-set-orientation.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>orientable</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkOrientable"><type>GtkOrientable</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>orientation</para></entry>
<entry role="parameter_description"><para>the orientable’s new orientation.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="gtk4-Orientable.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkOrientable-struct" role="struct">
<title>GtkOrientable</title>
<indexterm zone="GtkOrientable-struct"><primary>GtkOrientable</primary></indexterm>
<programlisting language="C">typedef struct _GtkOrientable GtkOrientable;</programlisting>
</refsect2>

</refsect1>
<refsect1 id="gtk4-Orientable.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkOrientable--orientation" role="property"><title>The <literal>“orientation”</literal> property</title>
<indexterm zone="GtkOrientable--orientation"><primary>GtkOrientable:orientation</primary></indexterm>
<programlisting>  “orientation”              <link linkend="GtkOrientation"><type>GtkOrientation</type></link></programlisting>
<para>The orientation of the orientable.</para>
<para>Owner: GtkOrientable</para>
<para>Flags: Read / Write</para>
<para>Default value: GTK_ORIENTATION_HORIZONTAL</para>
</refsect2>

</refsect1>

</refentry>
