1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
<?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 index-Objects-Grouped SYSTEM "objects_grouped.sgml"-->
<refentry id="GtkCharSelection">
<refmeta>
<refentrytitle role="top_of_page" id="GtkCharSelection.top_of_page">GtkCharSelection</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTKEXTRA Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkCharSelection</refname>
<refpurpose>Character selection dialog</refpurpose>
</refnamediv>
<refsect1 id="GtkCharSelection.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_return" colwidth="150px"/>
<colspec colname="functions_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *
</entry><entry role="function_name"><link linkend="gtk-char-selection-new">gtk_char_selection_new</link> <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-char-selection-set-selection">gtk_char_selection_set_selection</link> <phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gint"><returnvalue>gint</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-char-selection-get-selection">gtk_char_selection_get_selection</link> <phrase role="c_punctuation">()</phrase></entry></row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkCharSelection.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable role="enum_members_table" pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="name" colwidth="150px"/>
<colspec colname="description"/>
<tbody>
<row><entry role="datatype_keyword">struct</entry><entry role="function_name"><link linkend="GtkCharSelection-struct">GtkCharSelection</link></entry></row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkCharSelection.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen> <link linkend="GObject">GObject</link>
<phrase role="lineart">╰──</phrase> <link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
<phrase role="lineart">╰──</phrase> <link linkend="GtkObject">GtkObject</link>
<phrase role="lineart">╰──</phrase> <link linkend="GtkWidget">GtkWidget</link>
<phrase role="lineart">╰──</phrase> <link linkend="GtkContainer">GtkContainer</link>
<phrase role="lineart">╰──</phrase> <link linkend="GtkBin">GtkBin</link>
<phrase role="lineart">╰──</phrase> <link linkend="GtkWindow">GtkWindow</link>
<phrase role="lineart">╰──</phrase> GtkCharSelection
</screen>
</refsect1>
<refsect1 id="GtkCharSelection.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkCharSelection implements
<link linkend="AtkImplementorIface">AtkImplementorIface</link> and <link linkend="GtkBuildable">GtkBuildable</link>.</para>
</refsect1>
<refsect1 id="GtkCharSelection.includes"><title>Includes</title><synopsis>#include <gtkextra.h>
</synopsis></refsect1>
<refsect1 id="GtkCharSelection.description" role="desc">
<title role="desc.title">Description</title>
<para>Char selection is a widget which contains all the characters in a font.
Connecting a callback to the ok button of the widget you get the selected char.</para>
</refsect1>
<refsect1 id="GtkCharSelection.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-char-selection-new" role="function">
<title>gtk_char_selection_new ()</title>
<indexterm zone="gtk-char-selection-new"><primary>gtk_char_selection_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link> *
gtk_char_selection_new (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="gtk-char-selection-set-selection" role="function">
<title>gtk_char_selection_set_selection ()</title>
<indexterm zone="gtk-char-selection-set-selection"><primary>gtk_char_selection_set_selection</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_char_selection_set_selection (<parameter><link linkend="GtkCharSelection"><type>GtkCharSelection</type></link> *charsel</parameter>,
<parameter><link linkend="gint"><type>gint</type></link> selection</parameter>);</programlisting>
<para>Sets the selection for the <link linkend="GtkCharSelection"><type>GtkCharSelection</type></link> widget.</para>
<refsect3 id="gtk-char-selection-set-selection.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>charsel</para></entry>
<entry role="parameter_description"><para>Char Selection widget.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>selection</para></entry>
<entry role="parameter_description"><para>a character index from the list. 0 is left,upper
corner;256 is right, down corner.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-char-selection-get-selection" role="function">
<title>gtk_char_selection_get_selection ()</title>
<indexterm zone="gtk-char-selection-get-selection"><primary>gtk_char_selection_get_selection</primary></indexterm>
<programlisting language="C"><link linkend="gint"><returnvalue>gint</returnvalue></link>
gtk_char_selection_get_selection (<parameter><link linkend="GtkCharSelection"><type>GtkCharSelection</type></link> *charsel</parameter>);</programlisting>
<para>Gets the current selection</para>
<refsect3 id="gtk-char-selection-get-selection.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>charsel</para></entry>
<entry role="parameter_description"><para>Char Selection widget.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-char-selection-get-selection.returns" role="returns">
<title>Returns</title>
<para> The current selection(a character from the list).0
is left,upper corner;256 is right, down corner. </para>
</refsect3></refsect2>
</refsect1>
<refsect1 id="GtkCharSelection.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkCharSelection-struct" role="struct">
<title>struct GtkCharSelection</title>
<indexterm zone="GtkCharSelection-struct"><primary>GtkCharSelection</primary></indexterm>
<programlisting language="C">struct GtkCharSelection;</programlisting>
<para>The GtkCharSelection struct contains only private data.
It should only be accessed through the functions described below.</para>
</refsect2>
</refsect1>
</refentry>
|