File: gtk-windows.html

package info (click to toggle)
gtk%2B3.0 3.22.11-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 182,828 kB
  • ctags: 82,378
  • sloc: ansic: 1,165,043; xml: 9,259; makefile: 6,914; sh: 5,179; python: 402; perl: 370; cpp: 34; sed: 16
file content (117 lines) | stat: -rw-r--r-- 4,952 bytes parent folder | download
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Using GTK+ on Windows: GTK+ 3 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
<link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
<link rel="prev" href="gtk-x11.html" title="Using GTK+ on the X Window System">
<link rel="next" href="gtk-osx.html" title="Using GTK+ on Mac OS X">
<meta name="generator" content="GTK-Doc V1.25.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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gtk-x11.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gtk-osx.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gtk-windows"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">Using GTK+ on Windows</span></h2>
<p>Using GTK+ on Windows — 
Windows-specific aspects of using GTK+
</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="id-1.8.6.3"></a><h2>Using GTK+ on Windows</h2>
<p>
The Windows port of GTK+ is an implementation of GDK (and therefore GTK+)
on top of the Win32 API. When compiling GTK+ on Windows, this backend is
the default.
</p>
<div class="refsect2">
<a name="win32-cmdline"></a><h3>Windows-specific commandline options</h3>
<p>
The Windows GDK backend can be influenced with some
additional command line arguments.
</p>
<p><b><code class="systemitem">--sync</code>. </b>
Don't batch GDI requests. This might be a marginally useful option for 
debugging.
</p>
<p><b><code class="systemitem">--no-wintab</code>, 
       <code class="systemitem">--ignore-wintab</code>. </b>
Don't use the Wintab API for tablet support.
</p>
<p><b><code class="systemitem">--use-wintab</code>. </b>
Use the Wintab API for tablet support.  This is the default.
</p>
<p><b><code class="systemitem">--max-colors <em class="replaceable"><code>number</code></em></code>. </b>
In 256 color mode, restrict the size of the color palette to 
the specified number of colors. This option is obsolete.
</p>
</div>
<hr>
<div class="refsect2">
<a name="win32-envar"></a><h3>Windows-specific environment variables</h3>
<p>
The Win32 GDK backend can be influenced with some
additional environment variables.
</p>
<p><b><code class="envar">GDK_IGNORE_WINTAB</code>. </b>
If this variable is set, GTK+ doesn't use 
the Wintab API for tablet support.
</p>
<p><b><code class="envar">GDK_USE_WINTAB</code>. </b>
If this variable is set, GTK+ uses the Wintab API for 
tablet support.  This is the default.
</p>
<p><b><code class="envar">GDK_WIN32_MAX_COLORS</code>. </b>
Specifies the size of the color palette used
in 256 color mode.
</p>
</div>
<hr>
<div class="refsect2">
<a name="win32-cursors"></a><h3>Windows-specific handling of cursors</h3>
<p>
By default the "system" cursor theme is used. This makes GTK prefer cursors
that Windows currently uses, falling back to Adwaita cursors and (as the last
resort) built-in X cursors.
</p>
<p>
When any other cursor theme is used, GTK will prefer cursors from that theme,
falling back to Windows cursors and built-in X cursors.
</p>
<p>
Theme can be changed by setting <code class="literal">gtk-cursor-theme-name</code> GTK+ setting. Users can override GTK+ settings in the <code class="filename">settings.ini</code> file or at runtime in the GTK+ Inspector.
</p>
<p>
Themes are loaded from normal Windows variants of the XDG locations:
<code class="filename">%HOME%/icons/THEME/cursors</code>, 
<code class="filename">%APPDATA%/icons/THEME/cursors</code>, 
<code class="filename">RUNTIME_PREFIX/share/icons/THEME/cursors</code>.
</p>
<p>
The <code class="literal">gtk-cursor-theme-size</code> setting is ignored, GTK will use the cursor size that Windows tells it to use.
</p>
</div>
<p>
More information about GTK+ on Windows, including detailed build
instructions, binary downloads, etc, can be found
<a class="ulink" href="https://wiki.gnome.org/Projects/GTK+/Win32" target="_top">online</a>.
</p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25.1</div>
</body>
</html>