<?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="GtkNoSelection">
<refmeta>
<refentrytitle role="top_of_page" id="GtkNoSelection.top_of_page">GtkNoSelection</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkNoSelection</refname>
<refpurpose>A selection model that does not allow selecting anything</refpurpose>
</refnamediv>

<refsect1 id="GtkNoSelection.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="GtkNoSelection"><returnvalue>GtkNoSelection</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-no-selection-new">gtk_no_selection_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GListModel"><returnvalue>GListModel</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-no-selection-get-model">gtk_no_selection_get_model</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

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

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

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkNoSelection.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> GtkNoSelection
</screen>
</refsect1>
<refsect1 id="GtkNoSelection.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkNoSelection implements
 <link linkend="GListModel">GListModel</link> and  <link linkend="GtkSelectionModel">GtkSelectionModel</link>.</para>

</refsect1>

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

<refsect1 id="GtkNoSelection.description" role="desc">
<title role="desc.title">Description</title>
<para>GtkNoSelection is an implementation of the <link linkend="GtkSelectionModel"><type>GtkSelectionModel</type></link> interface 
that does not allow selecting anything.</para>
<para>This model is meant to be used as a simple wrapper to <link linkend="GListModels"><type>GListModels</type></link> when a
<link linkend="GtkSelectionModel"><type>GtkSelectionModel</type></link> is required.</para>

</refsect1>
<refsect1 id="GtkNoSelection.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-no-selection-new" role="function">
<title>gtk_no_selection_new&#160;()</title>
<indexterm zone="gtk-no-selection-new"><primary>gtk_no_selection_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkNoSelection"><returnvalue>GtkNoSelection</returnvalue></link>&#160;*
gtk_no_selection_new (<parameter><link linkend="GListModel"><type>GListModel</type></link> *model</parameter>);</programlisting>
<para>Creates a new selection to handle <parameter>model</parameter>
.</para>
<refsect3 id="gtk-no-selection-new.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>the <link linkend="GListModel"><type>GListModel</type></link> to manage. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-no-selection-new.returns" role="returns">
<title>Returns</title>
<para>a new <link linkend="GtkNoSelection"><type>GtkNoSelection</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>][<acronym>type</acronym> GtkNoSelection]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-no-selection-get-model" role="function">
<title>gtk_no_selection_get_model&#160;()</title>
<indexterm zone="gtk-no-selection-get-model"><primary>gtk_no_selection_get_model</primary></indexterm>
<programlisting language="C"><link linkend="GListModel"><returnvalue>GListModel</returnvalue></link>&#160;*
gtk_no_selection_get_model (<parameter><link linkend="GtkNoSelection"><type>GtkNoSelection</type></link> *self</parameter>);</programlisting>
<para>Gets the model that <parameter>self</parameter>
 is wrapping.</para>
<refsect3 id="gtk-no-selection-get-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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkNoSelection"><type>GtkNoSelection</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-no-selection-get-model.returns" role="returns">
<title>Returns</title>
<para>The model being wrapped. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkNoSelection.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkNoSelection--model" role="property"><title>The <literal>“model”</literal> property</title>
<indexterm zone="GtkNoSelection--model"><primary>GtkNoSelection:model</primary></indexterm>
<programlisting>  “model”                    <link linkend="GListModel"><type>GListModel</type></link>&#160;*</programlisting>
<para>The model being managed</para>
<para>Owner: GtkNoSelection</para>
<para>Flags: Read / Write / Construct&#160;Only</para>
</refsect2>

</refsect1>
<refsect1 id="GtkNoSelection.see-also">
<title>See Also</title>
<para><link linkend="GtkSelectionModel"><type>GtkSelectionModel</type></link></para>

</refsect1>

</refentry>
