Debian Codegraph @

docs/kxlcreatewindow.html

raw
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
5 <meta name="GENERATOR" content="emacs">
6 <meta name="Author" content="kacchan">
7 <title>KXL_CreateWindow</title>
8 </head>
9 <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
10
11 <a href="./kxldisplayname.html">Prev</a>
12 <a href="./KXL.html">Top</a>
13 <a href="./kxldeletewindow.html">Next</a>
14 <hr>
15
16 <b>Name</b><br><br>
17 <font size=+2>KXL_CreateWindow</font><br><br>
18
19 <b>Synopsis</b><br>
20 <pre>KXL_CreateWindow -- window is created.
21 X window must start by any of 16bpp, 24bpp, and 32bpp they are.
22 The frame of the same size as window size is created simultaneously.
23 A font color is set up white.
24 A drawing color is set up black.
25 A key repeat is set as OFF.
26 </pre><br>
27
28 <b>Description</b><br>
29 <pre>void KXL_CreateWindow(Uint16 width, Uint16 height, Uint8 *title,
30 Uint32 events);</pre><br>
31
32 <b>Arguments</b><br><br>
33 <table border="1">
34 <tr><td>width</td><td>Width of a window.</td></tr>
35 <tr><td>height</td><td>Height of a window.</td></tr>
36 <tr><td>title</td><td>The name of a title bar.</td></tr>
37 <tr><td>events</td><td>The event to receive.<br>
38 An event is specified combining the following by logical sum.<br>
39 <table border="1">
40 <tr><td>KXL_EVENT_KEY_PRESS_MASK</td><td>When a key is press.</td></tr>
41 <tr><td>KXL_EVENT_KEY_RELEASE_MASK</td><td>When a key is release.</td></tr>
42 <tr><td>KXL_EVENT_BUTTON_PRESS_MASK</td><td>When a mouse button is press.</td></tr>
43 <tr><td>KXL_EVENT_BUTTON_RELEASE_MASK</td><td>When a mouse button is release.</td></tr>
44 <tr><td>KXL_EVENT_BUTTON_MOTION_MASK</td><td>When a moves pressing mouse button.</td></tr>
45 <tr><td>KXL_EVENT_EXPOSURE_MASK</td><td>When a demand of re-drawing.</td></tr>
46 </table>
47 </td>
48 </tr>
49 </table>
50 <br><br>
51
52 <b>Return Value</b><br><br>
53 Nothing.<br><br><br>
54
55 <b>Exsample</b><br>
56 <pre>
57 #include &lt;KXL.h&gt;
58
59 int main(void)
60 {
61 <b>KXL_CreateWindow(100, 100, "kxl.org", 0);</b>
62 getchar();
63 KXL_DeleteWindow();
64 return 0;
65 }
66 </pre>
67
68 </body>
69 </html>