diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2018-08-20 21:12:06 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2018-08-20 21:12:06 -0400 |
commit | 63e87c2d0c9d263f14c77b68f85c67d46ece82a9 (patch) | |
tree | 6260365cbf7d24f37d27669e8538227fcb72e243 /gtk+-mingw/share/gtk-doc/html/gtk3/GtkNumerableIcon.html | |
parent | a4460f6d9453bbd7e584937686449cef3e19f052 (diff) |
Diffstat (limited to 'gtk+-mingw/share/gtk-doc/html/gtk3/GtkNumerableIcon.html')
-rw-r--r-- | gtk+-mingw/share/gtk-doc/html/gtk3/GtkNumerableIcon.html | 521 |
1 files changed, 0 insertions, 521 deletions
diff --git a/gtk+-mingw/share/gtk-doc/html/gtk3/GtkNumerableIcon.html b/gtk+-mingw/share/gtk-doc/html/gtk3/GtkNumerableIcon.html deleted file mode 100644 index 829e89e..0000000 --- a/gtk+-mingw/share/gtk-doc/html/gtk3/GtkNumerableIcon.html +++ /dev/null @@ -1,521 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>GtkNumerableIcon</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> -<link rel="home" href="index.html" title="GTK+ 3 Reference Manual"> -<link rel="up" href="theming.html" title="Part III. Theming in GTK+"> -<link rel="prev" href="gtk3-Themeable-Stock-Images.html" title="Themeable Stock Images"> -<link rel="next" href="gtk3-Resource-Files.html" title="Resource Files"> -<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="gtk3-Themeable-Stock-Images.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="theming.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">GTK+ 3 Reference Manual</th> -<td><a accesskey="n" href="gtk3-Resource-Files.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#GtkNumerableIcon.synopsis" class="shortcut">Top</a> - | - <a href="#GtkNumerableIcon.description" class="shortcut">Description</a> - | - <a href="#GtkNumerableIcon.object-hierarchy" class="shortcut">Object Hierarchy</a> - | - <a href="#GtkNumerableIcon.implemented-interfaces" class="shortcut">Implemented Interfaces</a> - | - <a href="#GtkNumerableIcon.properties" class="shortcut">Properties</a> -</td></tr> -</table> -<div class="refentry"> -<a name="GtkNumerableIcon"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="GtkNumerableIcon.top_of_page"></a>GtkNumerableIcon</span></h2> -<p>GtkNumerableIcon — A GIcon that allows numbered emblems</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv"> -<a name="GtkNumerableIcon.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -#include <gtk/gtk.h> - -struct <a class="link" href="GtkNumerableIcon.html#GtkNumerableIcon-struct" title="struct GtkNumerableIcon">GtkNumerableIcon</a>; -<a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="returnvalue">GIcon</span></a> * <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-new" title="gtk_numerable_icon_new ()">gtk_numerable_icon_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>); -<a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="returnvalue">GIcon</span></a> * <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-new-with-style-context" title="gtk_numerable_icon_new_with_style_context ()">gtk_numerable_icon_new_with_style_context</a> - (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="returnvalue">GIcon</span></a> * <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-get-background-gicon" title="gtk_numerable_icon_get_background_gicon ()">gtk_numerable_icon_get_background_gicon</a> - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-background-gicon" title="gtk_numerable_icon_set_background_gicon ()">gtk_numerable_icon_set_background_gicon</a> - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>); -const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-get-background-icon-name" title="gtk_numerable_icon_get_background_icon_name ()">gtk_numerable_icon_get_background_icon_name</a> - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-background-icon-name" title="gtk_numerable_icon_set_background_icon_name ()">gtk_numerable_icon_set_background_icon_name</a> - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-get-count" title="gtk_numerable_icon_get_count ()">gtk_numerable_icon_get_count</a> (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-count" title="gtk_numerable_icon_set_count ()">gtk_numerable_icon_set_count</a> (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>); -const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-get-label" title="gtk_numerable_icon_get_label ()">gtk_numerable_icon_get_label</a> (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-label" title="gtk_numerable_icon_set_label ()">gtk_numerable_icon_set_label</a> (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>); -<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> * <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-get-style-context" title="gtk_numerable_icon_get_style_context ()">gtk_numerable_icon_get_style_context</a> - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-style-context" title="gtk_numerable_icon_set_style_context ()">gtk_numerable_icon_set_style_context</a> - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *style</code></em>); -</pre> -</div> -<div class="refsect1"> -<a name="GtkNumerableIcon.object-hierarchy"></a><h2>Object Hierarchy</h2> -<pre class="synopsis"> - <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> - +----<a href="http://library.gnome.org/devel/gio/unstable/GEmblemedIcon.html">GEmblemedIcon</a> - +----GtkNumerableIcon -</pre> -</div> -<div class="refsect1"> -<a name="GtkNumerableIcon.implemented-interfaces"></a><h2>Implemented Interfaces</h2> -<p> -GtkNumerableIcon implements - <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html">GIcon</a>.</p> -</div> -<div class="refsect1"> -<a name="GtkNumerableIcon.properties"></a><h2>Properties</h2> -<pre class="synopsis"> - "<a class="link" href="GtkNumerableIcon.html#GtkNumerableIcon--background-icon" title='The "background-icon" property'>background-icon</a>" <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>* : Read / Write - "<a class="link" href="GtkNumerableIcon.html#GtkNumerableIcon--background-icon-name" title='The "background-icon-name" property'>background-icon-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write - "<a class="link" href="GtkNumerableIcon.html#GtkNumerableIcon--count" title='The "count" property'>count</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write - "<a class="link" href="GtkNumerableIcon.html#GtkNumerableIcon--label" title='The "label" property'>label</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write - "<a class="link" href="GtkNumerableIcon.html#GtkNumerableIcon--style-context" title='The "style-context" property'>style-context</a>" <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>* : Read / Write -</pre> -</div> -<div class="refsect1"> -<a name="GtkNumerableIcon.description"></a><h2>Description</h2> -<p> -GtkNumerableIcon is a subclass of <a href="http://library.gnome.org/devel/gio/unstable/GEmblemedIcon.html"><span class="type">GEmblemedIcon</span></a> that can -show a number or short string as an emblem. The number can -be overlayed on top of another emblem, if desired. -</p> -<p> -It supports theming by taking font and color information -from a provided <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>; see -<a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-style-context" title="gtk_numerable_icon_set_style_context ()"><code class="function">gtk_numerable_icon_set_style_context()</code></a>. -</p> -<p> -</p> -<div class="example"> -<a name="id620133"></a><p class="title"><b>Example 43. Typical numerable icons</b></p> -<div class="example-contents"> -<img src="numerableicon.png"><img src="numerableicon2.png"> -</div> -</div> -<p><br class="example-break"> -</p> -</div> -<div class="refsect1"> -<a name="GtkNumerableIcon.details"></a><h2>Details</h2> -<div class="refsect2"> -<a name="GtkNumerableIcon-struct"></a><h3>struct GtkNumerableIcon</h3> -<pre class="programlisting">struct GtkNumerableIcon;</pre> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-new"></a><h3>gtk_numerable_icon_new ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="returnvalue">GIcon</span></a> * gtk_numerable_icon_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>);</pre> -<p> -Creates a new unthemed <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>base_icon</code></em> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> to overlay on</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a new <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-new-with-style-context"></a><h3>gtk_numerable_icon_new_with_style_context ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="returnvalue">GIcon</span></a> * gtk_numerable_icon_new_with_style_context - (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *base_icon</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Creates a new <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> which will themed according -to the passed <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>. This is a convenience constructor -that calls <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-style-context" title="gtk_numerable_icon_set_style_context ()"><code class="function">gtk_numerable_icon_set_style_context()</code></a> internally. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>base_icon</code></em> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> to overlay on</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a new <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-get-background-gicon"></a><h3>gtk_numerable_icon_get_background_gicon ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="returnvalue">GIcon</span></a> * gtk_numerable_icon_get_background_gicon - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre> -<p> -Returns the <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> that was set as the base background image, or -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's none. The caller of this function does not own -a reference to the returned <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-set-background-gicon"></a><h3>gtk_numerable_icon_set_background_gicon ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_numerable_icon_set_background_gicon - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);</pre> -<p> -Updates the icon to use <em class="parameter"><code>icon</code></em> as the base background image. -If <em class="parameter"><code>icon</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>self</code></em> will go back using style information -or default theming for its background image. -</p> -<p> -If this method is called and an icon name was already set as -background for the icon, <em class="parameter"><code>icon</code></em> will be used, i.e. the last method -called between <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-background-gicon" title="gtk_numerable_icon_set_background_gicon ()"><code class="function">gtk_numerable_icon_set_background_gicon()</code></a> and -<a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-background-icon-name" title="gtk_numerable_icon_set_background_icon_name ()"><code class="function">gtk_numerable_icon_set_background_icon_name()</code></a> has always priority. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-get-background-icon-name"></a><h3>gtk_numerable_icon_get_background_icon_name ()</h3> -<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_numerable_icon_get_background_icon_name - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre> -<p> -Returns the icon name used as the base background image, -or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's none. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>an icon name, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-set-background-icon-name"></a><h3>gtk_numerable_icon_set_background_icon_name ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_numerable_icon_set_background_icon_name - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre> -<p> -Updates the icon to use the icon named <em class="parameter"><code>icon_name</code></em> from the -current icon theme as the base background image. If <em class="parameter"><code>icon_name</code></em> -is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>self</code></em> will go back using style information or default -theming for its background image. -</p> -<p> -If this method is called and a <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> was already set as -background for the icon, <em class="parameter"><code>icon_name</code></em> will be used, i.e. the -last method called between <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-background-icon-name" title="gtk_numerable_icon_set_background_icon_name ()"><code class="function">gtk_numerable_icon_set_background_icon_name()</code></a> -and <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-background-gicon" title="gtk_numerable_icon_set_background_gicon ()"><code class="function">gtk_numerable_icon_set_background_gicon()</code></a> has always priority. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td> -<td>an icon name, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-get-count"></a><h3>gtk_numerable_icon_get_count ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gtk_numerable_icon_get_count (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre> -<p> -Returns the value currently displayed by <em class="parameter"><code>self</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the currently displayed value</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-set-count"></a><h3>gtk_numerable_icon_set_count ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_numerable_icon_set_count (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);</pre> -<p> -Sets the currently displayed value of <em class="parameter"><code>self</code></em> to <em class="parameter"><code>count</code></em>. -</p> -<p> -The numeric value is always clamped to make it two digits, i.e. -between -99 and 99. Setting a count of zero removes the emblem. -If this method is called, and a label was already set on the icon, -it will automatically be reset to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> before rendering the number, -i.e. the last method called between <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-count" title="gtk_numerable_icon_set_count ()"><code class="function">gtk_numerable_icon_set_count()</code></a> -and <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-label" title="gtk_numerable_icon_set_label ()"><code class="function">gtk_numerable_icon_set_label()</code></a> has always priority. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td> -<td>a number between -99 and 99</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-get-label"></a><h3>gtk_numerable_icon_get_label ()</h3> -<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_numerable_icon_get_label (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre> -<p> -Returns the currently displayed label of the icon, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the currently displayed label</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-set-label"></a><h3>gtk_numerable_icon_set_label ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_numerable_icon_set_label (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre> -<p> -Sets the currently displayed value of <em class="parameter"><code>self</code></em> to the string -in <em class="parameter"><code>label</code></em>. Setting an empty label removes the emblem. -</p> -<p> -Note that this is meant for displaying short labels, such as -roman numbers, or single letters. For roman numbers, consider -using the Unicode characters U+2160 - U+217F. Strings longer -than two characters will likely not be rendered very well. -</p> -<p> -If this method is called, and a number was already set on the -icon, it will automatically be reset to zero before rendering -the label, i.e. the last method called between -<a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-label" title="gtk_numerable_icon_set_label ()"><code class="function">gtk_numerable_icon_set_label()</code></a> and <a class="link" href="GtkNumerableIcon.html#gtk-numerable-icon-set-count" title="gtk_numerable_icon_set_count ()"><code class="function">gtk_numerable_icon_set_count()</code></a> -has always priority. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td> -<td>a short label, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-get-style-context"></a><h3>gtk_numerable_icon_get_style_context ()</h3> -<pre class="programlisting"><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> * gtk_numerable_icon_get_style_context - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>);</pre> -<p> -Returns the <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> used by the icon for theming, -or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's none. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -This object is internal to GTK+ and should not be unreffed. -Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> if you want to keep it around. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-numerable-icon-set-style-context"></a><h3>gtk_numerable_icon_set_style_context ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_numerable_icon_set_style_context - (<em class="parameter"><code><a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> *self</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *style</code></em>);</pre> -<p> -Updates the icon to fetch theme information from the -given <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td> -<td>a <a class="link" href="GtkNumerableIcon.html" title="GtkNumerableIcon"><span class="type">GtkNumerableIcon</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -</div> -<div class="refsect1"> -<a name="GtkNumerableIcon.property-details"></a><h2>Property Details</h2> -<div class="refsect2"> -<a name="GtkNumerableIcon--background-icon"></a><h3>The <code class="literal">"background-icon"</code> property</h3> -<pre class="programlisting"> "background-icon" <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html"><span class="type">GIcon</span></a>* : Read / Write</pre> -<p>The icon for the number emblem background.</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkNumerableIcon--background-icon-name"></a><h3>The <code class="literal">"background-icon-name"</code> property</h3> -<pre class="programlisting"> "background-icon-name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> -<p>The icon name for the number emblem background.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkNumerableIcon--count"></a><h3>The <code class="literal">"count"</code> property</h3> -<pre class="programlisting"> "count" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre> -<p>The count of the emblem currently displayed.</p> -<p>Allowed values: [-99,99]</p> -<p>Default value: 0</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkNumerableIcon--label"></a><h3>The <code class="literal">"label"</code> property</h3> -<pre class="programlisting"> "label" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre> -<p>The label to be displayed over the icon.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkNumerableIcon--style-context"></a><h3>The <code class="literal">"style-context"</code> property</h3> -<pre class="programlisting"> "style-context" <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>* : Read / Write</pre> -<p>The style context to theme the icon appearance.</p> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.18.1</div> -</body> -</html>
\ No newline at end of file |