<?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="GtkPopoverMenuBar">
<refmeta>
<refentrytitle role="top_of_page" id="GtkPopoverMenuBar.top_of_page">GtkPopoverMenuBar</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkPopoverMenuBar</refname>
<refpurpose>A menu bar with popovers</refpurpose>
</refnamediv>

<refsect1 id="GtkPopoverMenuBar.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="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-popover-menu-bar-new-from-model">gtk_popover_menu_bar_new_from_model</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-popover-menu-bar-set-menu-model">gtk_popover_menu_bar_set_menu_model</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GMenuModel"><returnvalue>GMenuModel</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-popover-menu-bar-get-menu-model">gtk_popover_menu_bar_get_menu_model</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkPopoverMenuBar.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="GMenuModel"><type>GMenuModel</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkPopoverMenuBar--menu-model">menu-model</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkPopoverMenuBar.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="GtkPopoverMenuBar-struct">GtkPopoverMenuBar</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkPopoverMenuBar.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkWidget">GtkWidget</link>
            <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkPopoverMenuBar
</screen>
</refsect1>
<refsect1 id="GtkPopoverMenuBar.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkPopoverMenuBar implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link> and  <link linkend="GtkConstraintTarget">GtkConstraintTarget</link>.</para>

</refsect1>

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

<refsect1 id="GtkPopoverMenuBar.description" role="desc">
<title role="desc.title">Description</title>
<para>GtkPopoverMenuBar presents a horizontal bar of items that pop
up popover menus when clicked.</para>
<para>The only way to create instances of GtkPopoverMenuBar is
from a <link linkend="GMenuModel"><type>GMenuModel</type></link>.</para>
<refsect2><title>CSS nodes</title><informalexample><programlisting role="example"><![CDATA[
menubar
├── item[.active]
┊   ╰── popover
╰── item
    ╰── popover
]]></programlisting></informalexample>
<para></para>
<para>GtkPopoverMenuBar has a single CSS node with name menubar, below which
each item has its CSS node, and below that the corresponding popover.</para>
<para>The item whose popover is currently open gets the .active
style class.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkPopoverMenuBar.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-popover-menu-bar-new-from-model" role="function">
<title>gtk_popover_menu_bar_new_from_model&#160;()</title>
<indexterm zone="gtk-popover-menu-bar-new-from-model"><primary>gtk_popover_menu_bar_new_from_model</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_popover_menu_bar_new_from_model (<parameter><link linkend="GMenuModel"><type>GMenuModel</type></link> *model</parameter>);</programlisting>
<para>Creates a <link linkend="GtkPopoverMenuBar"><type>GtkPopoverMenuBar</type></link> from a <link linkend="GMenuModel"><type>GMenuModel</type></link>.</para>
<refsect3 id="gtk-popover-menu-bar-new-from-model.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>model</para></entry>
<entry role="parameter_description"><para>a <link linkend="GMenuModel"><type>GMenuModel</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-popover-menu-bar-new-from-model.returns" role="returns">
<title>Returns</title>
<para> a new <link linkend="GtkPopoverMenuBar"><type>GtkPopoverMenuBar</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-popover-menu-bar-set-menu-model" role="function">
<title>gtk_popover_menu_bar_set_menu_model&#160;()</title>
<indexterm zone="gtk-popover-menu-bar-set-menu-model"><primary>gtk_popover_menu_bar_set_menu_model</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_popover_menu_bar_set_menu_model (<parameter><link linkend="GtkPopoverMenuBar"><type>GtkPopoverMenuBar</type></link> *bar</parameter>,
                                     <parameter><link linkend="GMenuModel"><type>GMenuModel</type></link> *model</parameter>);</programlisting>
<para>Sets a menu model from which <parameter>bar</parameter>
 should take
its contents.</para>
<refsect3 id="gtk-popover-menu-bar-set-menu-model.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>bar</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkPopoverMenuBar"><type>GtkPopoverMenuBar</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>model</para></entry>
<entry role="parameter_description"><para>a <link linkend="GMenuModel"><type>GMenuModel</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-popover-menu-bar-get-menu-model" role="function">
<title>gtk_popover_menu_bar_get_menu_model&#160;()</title>
<indexterm zone="gtk-popover-menu-bar-get-menu-model"><primary>gtk_popover_menu_bar_get_menu_model</primary></indexterm>
<programlisting language="C"><link linkend="GMenuModel"><returnvalue>GMenuModel</returnvalue></link>&#160;*
gtk_popover_menu_bar_get_menu_model (<parameter><link linkend="GtkPopoverMenuBar"><type>GtkPopoverMenuBar</type></link> *bar</parameter>);</programlisting>
<para>Returns the model from which the contents of <parameter>bar</parameter>
 are taken.</para>
<refsect3 id="gtk-popover-menu-bar-get-menu-model.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>bar</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkPopoverMenuBar"><type>GtkPopoverMenuBar</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-popover-menu-bar-get-menu-model.returns" role="returns">
<title>Returns</title>
<para>a <link linkend="GMenuModel"><type>GMenuModel</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkPopoverMenuBar.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkPopoverMenuBar--menu-model" role="property"><title>The <literal>“menu-model”</literal> property</title>
<indexterm zone="GtkPopoverMenuBar--menu-model"><primary>GtkPopoverMenuBar:menu-model</primary></indexterm>
<programlisting>  “menu-model”               <link linkend="GMenuModel"><type>GMenuModel</type></link>&#160;*</programlisting>
<para>The <link linkend="GMenuModel"><type>GMenuModel</type></link> from which the menu bar is created.</para>
<para>The model should only contain submenus as toplevel elements.</para>
<para>Owner: GtkPopoverMenuBar</para>
<para>Flags: Read / Write</para>
</refsect2>

</refsect1>
<refsect1 id="GtkPopoverMenuBar.see-also">
<title>See Also</title>
<para><link linkend="GtkPopover"><type>GtkPopover</type></link>, <link linkend="GtkPopoverMenu"><type>GtkPopoverMenu</type></link>, <link linkend="GMenuModel"><type>GMenuModel</type></link></para>

</refsect1>

</refentry>
