1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>gdk-pixbuf Xlib initialization</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
8
<link rel="up" href="rn01.html" title="API Reference">
9
<link rel="prev" href="gdk-pixbuf-Module-Interface.html" title="Module Interface">
10
<link rel="next" href="gdk-pixbuf-gdk-pixbuf-xlib-rendering.html" title="Xlib Rendering">
11
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="gdk-pixbuf-Module-Interface.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">GDK-PixBuf Reference Manual</th>
21
<td><a accesskey="n" href="gdk-pixbuf-gdk-pixbuf-xlib-rendering.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#gdk-pixbuf-gdk-pixbuf-xlib-init.synopsis" class="shortcut">Top</a>
26
<a href="#gdk-pixbuf-gdk-pixbuf-xlib-init.description" class="shortcut">Description</a>
29
<div class="refentry" title="gdk-pixbuf Xlib initialization">
30
<a name="gdk-pixbuf-gdk-pixbuf-xlib-init"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="gdk-pixbuf-gdk-pixbuf-xlib-init.top_of_page"></a><span class="application">gdk-pixbuf</span> Xlib initialization</span></h2>
34
<p><span class="application">gdk-pixbuf</span> Xlib initialization — Initializing the <span class="application">gdk-pixbuf</span> Xlib library.</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv" title="Synopsis">
39
<a name="gdk-pixbuf-gdk-pixbuf-xlib-init.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">
41
#include <gdk-pixbuf/gdk-pixbuf.h>
43
<span class="returnvalue">void</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf-xlib-init.html#gdk-pixbuf-xlib-init" title="gdk_pixbuf_xlib_init ()">gdk_pixbuf_xlib_init</a> (<em class="parameter"><code><span class="type">Display</span> *display</code></em>,
44
<em class="parameter"><code><span class="type">int</span> screen_num</code></em>);
45
<span class="returnvalue">void</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf-xlib-init.html#gdk-pixbuf-xlib-init-with-depth" title="gdk_pixbuf_xlib_init_with_depth ()">gdk_pixbuf_xlib_init_with_depth</a> (<em class="parameter"><code><span class="type">Display</span> *display</code></em>,
46
<em class="parameter"><code><span class="type">int</span> screen_num</code></em>,
47
<em class="parameter"><code><span class="type">int</span> prefDepth</code></em>);
50
<div class="refsect1" title="Description">
51
<a name="gdk-pixbuf-gdk-pixbuf-xlib-init.description"></a><h2>Description</h2>
53
In addition to the normal Gdk-specific functions, the <span class="application">gdk-pixbuf</span>
54
package provides a small library that lets Xlib-only applications
55
use <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structures and render them to X drawables. The
56
functions in this section are used to initialize the <span class="application">gdk-pixbuf</span>
57
Xlib library. This library must be initialized near the beginning
58
of the program or before calling any of the other <span class="application">gdk-pixbuf</span>
62
<div class="refsect1" title="Details">
63
<a name="gdk-pixbuf-gdk-pixbuf-xlib-init.details"></a><h2>Details</h2>
64
<div class="refsect2" title="gdk_pixbuf_xlib_init ()">
65
<a name="gdk-pixbuf-xlib-init"></a><h3>gdk_pixbuf_xlib_init ()</h3>
66
<pre class="programlisting"><span class="returnvalue">void</span> gdk_pixbuf_xlib_init (<em class="parameter"><code><span class="type">Display</span> *display</code></em>,
67
<em class="parameter"><code><span class="type">int</span> screen_num</code></em>);</pre>
69
Initializes the gdk-pixbuf Xlib machinery by calling <a class="link" href="gdk-pixbuf-gdk-pixbuf-xlib-rgb.html#xlib-rgb-init" title="xlib_rgb_init ()"><code class="function">xlib_rgb_init()</code></a>. This
70
function should be called near the beginning of your program, or before using
71
any of the gdk-pixbuf-xlib functions.
73
<div class="variablelist"><table border="0">
74
<col align="left" valign="top">
77
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
82
<td><p><span class="term"><em class="parameter"><code>screen_num</code></em> :</span></p></td>
90
<div class="refsect2" title="gdk_pixbuf_xlib_init_with_depth ()">
91
<a name="gdk-pixbuf-xlib-init-with-depth"></a><h3>gdk_pixbuf_xlib_init_with_depth ()</h3>
92
<pre class="programlisting"><span class="returnvalue">void</span> gdk_pixbuf_xlib_init_with_depth (<em class="parameter"><code><span class="type">Display</span> *display</code></em>,
93
<em class="parameter"><code><span class="type">int</span> screen_num</code></em>,
94
<em class="parameter"><code><span class="type">int</span> prefDepth</code></em>);</pre>
96
Similar to <a class="link" href="gdk-pixbuf-gdk-pixbuf-xlib-init.html#gdk-pixbuf-xlib-init" title="gdk_pixbuf_xlib_init ()"><code class="function">gdk_pixbuf_xlib_init()</code></a>, but also lets you specify the preferred
97
depth for XlibRGB if you do not want it to use the default depth it picks.
99
<div class="variablelist"><table border="0">
100
<col align="left" valign="top">
103
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
104
<td>X display to use.
108
<td><p><span class="term"><em class="parameter"><code>screen_num</code></em> :</span></p></td>
113
<td><p><span class="term"><em class="parameter"><code>prefDepth</code></em> :</span></p></td>
114
<td>Preferred depth for XlibRGB.
121
<div class="refsect1" title="See Also">
122
<a name="gdk-pixbuf-gdk-pixbuf-xlib-init.see-also"></a><h2>See Also</h2>
130
Generated by GTK-Doc V1.15</div>
b'\\ No newline at end of file'