4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimpchecks</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Base Library Reference Manual">
8
8
<link rel="up" href="libgimpbase.html" title="Part I. GIMP Base Library">
9
<link rel="prev" href="libgimpbase-gimplimits.html" title="gimplimits">
10
<link rel="next" href="libgimpbase-gimpdatafiles.html" title="gimpdatafiles">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
9
<link rel="prev" href="libgimpbase-gimpparam.html" title="gimpparam">
10
<link rel="next" href="libgimpbase-gimpcpuaccel.html" title="gimpcpuaccel">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpbase.html" title="Part I. GIMP Base Library">
14
<link rel="index" href="libgimpbase-index.html" title="Index">
15
<link rel="index" href="libgimpbase-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
16
<link rel="index" href="libgimpbase-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
17
<link rel="index" href="libgimpbase-index-deprecated.html" title="Index of deprecated symbols">
15
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
20
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
21
<tr valign="middle">
18
<td><a accesskey="p" href="libgimpbase-gimplimits.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
22
<td><a accesskey="p" href="libgimpbase-gimpparam.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19
23
<td><a accesskey="u" href="libgimpbase.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21
25
<th width="100%" align="center">GIMP Base Library Reference Manual</th>
22
<td><a accesskey="n" href="libgimpbase-gimpdatafiles.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
26
<td><a accesskey="n" href="libgimpbase-gimpcpuaccel.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2565707" class="shortcut">Top</a>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2581082" class="shortcut">Top</a>
26
<a href="#id2535156" class="shortcut">Description</a></nobr></td></tr>
30
<a href="#id2593237" class="shortcut">Description</a></nobr></td></tr>
28
32
<div class="refentry" lang="en">
29
33
<a name="libgimpbase-gimpchecks"></a><div class="titlepage"></div>
30
34
<div class="refnamediv"><table width="100%"><tr>
33
<a name="id2565707"></a><span class="refentrytitle">gimpchecks</span>
37
<a name="id2581082"></a><span class="refentrytitle">gimpchecks</span>
35
39
<p>gimpchecks — Constants and functions related to rendering checkerboards.</p>
45
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-SIZE:CAPS">GIMP_CHECK_SIZE</a>
46
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-SIZE-SM:CAPS">GIMP_CHECK_SIZE_SM</a>
47
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-DARK:CAPS">GIMP_CHECK_DARK</a>
48
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-LIGHT:CAPS">GIMP_CHECK_LIGHT</a>
49
void <a href="libgimpbase-gimpchecks.html#gimp-checks-get-shades">gimp_checks_get_shades</a> (<a href="libgimpbase-gimpbaseenums.html#GimpCheckType">GimpCheckType</a> type,
49
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-SIZE:CAPS">GIMP_CHECK_SIZE</a>
50
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-SIZE-SM:CAPS">GIMP_CHECK_SIZE_SM</a>
51
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-DARK:CAPS">GIMP_CHECK_DARK</a>
52
#define <a href="libgimpbase-gimpchecks.html#GIMP-CHECK-LIGHT:CAPS">GIMP_CHECK_LIGHT</a>
53
void <a href="libgimpbase-gimpchecks.html#gimp-checks-get-shades">gimp_checks_get_shades</a> (<a href="libgimpbase-gimpbaseenums.html#GimpCheckType">GimpCheckType</a> type,
54
58
<div class="refsect1" lang="en">
55
<a name="id2535156"></a><h2>Description</h2>
59
<a name="id2593237"></a><h2>Description</h2>
57
61
Constants and functions related to rendering checkerboards.
60
64
<div class="refsect1" lang="en">
61
<a name="id2535171"></a><h2>Details</h2>
65
<a name="id2593253"></a><h2>Details</h2>
62
66
<div class="refsect2" lang="en">
63
<a name="id2535182"></a><h3>
67
<a name="id2593264"></a><h3>
64
68
<a name="GIMP-CHECK-SIZE:CAPS"></a>GIMP_CHECK_SIZE</h3>
65
<a class="indexterm" name="id2535193"></a><pre class="programlisting">#define GIMP_CHECK_SIZE 8
69
<a class="indexterm" name="id2593276"></a><pre class="programlisting">#define GIMP_CHECK_SIZE 8
68
72
The default checkerboard size in pixels. This is configurable in the
74
78
<div class="refsect2" lang="en">
75
<a name="id2535212"></a><h3>
79
<a name="id2589191"></a><h3>
76
80
<a name="GIMP-CHECK-SIZE-SM:CAPS"></a>GIMP_CHECK_SIZE_SM</h3>
77
<a class="indexterm" name="id2535223"></a><pre class="programlisting">#define GIMP_CHECK_SIZE_SM 4
81
<a class="indexterm" name="id2589202"></a><pre class="programlisting">#define GIMP_CHECK_SIZE_SM 4
80
84
The default small checkerboard size in pixels.
84
88
<div class="refsect2" lang="en">
85
<a name="id2559248"></a><h3>
89
<a name="id2589218"></a><h3>
86
90
<a name="GIMP-CHECK-DARK:CAPS"></a>GIMP_CHECK_DARK</h3>
87
<a class="indexterm" name="id2559260"></a><pre class="programlisting">#define GIMP_CHECK_DARK 0.4
91
<a class="indexterm" name="id2589230"></a><pre class="programlisting">#define GIMP_CHECK_DARK 0.4
90
94
The dark gray value for the default checkerboard pattern.
94
98
<div class="refsect2" lang="en">
95
<a name="id2559276"></a><h3>
99
<a name="id2589246"></a><h3>
96
100
<a name="GIMP-CHECK-LIGHT:CAPS"></a>GIMP_CHECK_LIGHT</h3>
97
<a class="indexterm" name="id2559288"></a><pre class="programlisting">#define GIMP_CHECK_LIGHT 0.6
101
<a class="indexterm" name="id2589258"></a><pre class="programlisting">#define GIMP_CHECK_LIGHT 0.6
100
104
The light gray value for the default checkerboard pattern.
104
108
<div class="refsect2" lang="en">
105
<a name="id2559303"></a><h3>
109
<a name="id2589274"></a><h3>
106
110
<a name="gimp-checks-get-shades"></a>gimp_checks_get_shades ()</h3>
107
<a class="indexterm" name="id2559317"></a><pre class="programlisting">void gimp_checks_get_shades (<a href="libgimpbase-gimpbaseenums.html#GimpCheckType">GimpCheckType</a> type,
111
<a class="indexterm" name="id2589288"></a><pre class="programlisting">void gimp_checks_get_shades (<a href="libgimpbase-gimpbaseenums.html#GimpCheckType">GimpCheckType</a> type,
111
115
Retrieves the actual shades of gray to use when drawing a
112
116
checkerboard for a certain <a href="libgimpbase-gimpbaseenums.html#GimpCheckType"><span class="type">GimpCheckType</span></a>.</p>
117
121
<col align="left" valign="top">
121
<span class="term"><em class="parameter"><code>type</code></em> :</span></td>
124
<td><span class="term"><em class="parameter"><code>type</code></em> :</span></td>
122
125
<td> the checkerboard type
127
<span class="term"><em class="parameter"><code>light</code></em> :</span></td>
129
<td><span class="term"><em class="parameter"><code>light</code></em> :</span></td>
128
130
<td> return location for the light shade
133
<span class="term"><em class="parameter"><code>dark</code></em> :</span></td>
134
<td><span class="term"><em class="parameter"><code>dark</code></em> :</span></td>
134
135
<td> return location for the dark shade
140
<p class="since">Since GIMP 2.2