/usr/share/doc/libkxl0-dev/html/kxldrawpolygon.html is in libkxl0-dev 1.1.7-16.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<meta name="GENERATOR" content="emacs">
<meta name="Author" content="kacchan">
<title>KXL_DrawPolygon</title>
</head>
<body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
<a href="kxldrawrectangle.html">Prev</a>
<a href="KXL.html">Top</a>
<a href="kxlloadbitmap.html">Next</a>
<hr>
<b>Name</b><br><br>
<font size=+2>KXL_DrawPolygon</font><br><br>
<b>Synopsis</b><br>
<pre>KXL_DrawPolygon -- A polygon is drawn.
It clears by the color set up by <a
href="./kxlsetdrawcolor.html">KXL_SetDrawColor.</a>
</pre><br>
<b>Description</b><br>
<pre>void KXL_DrawPolygon(KXL_Polygon polygon, Uint16 max, Bool position, Bool fill);</pre><br>
<b>Arguments</b><br><br>
<table border="1">
<tr><td>polygon</td><td>Arrangement of a point.</td>
<tr><td>max</td><td>Number of points.</td>
<tr><td>position</td><td>True = Absolutely position.<br>
False = relative position from a front position.</td>
<tr><td>fill</td><td>True = The inside of a polygon is applied.<br>
False = The inside of a polygon is not applied.</td>
</table>
<br><br>
<b>Return Value</b><br><br>
Nothing.
<br><br><br>
<b>Exsample</b><br>
<pre>
#include <KXL.h>
int main(void)
{
Sint16 i;
<b>KXL_Polygon p[4] = {
{0, 0}, {20, 0}, {-10, 10}, {-10, -10}
};</b>
KXL_CreateWindow(100, 100, "sample", 0);
for (i = 0; i < 30; i ++) {
KXL_SetDrawColor(rand() % 0xff, rand() % 0xff, rand() % 0xff);
<b>p[0].x = rand() % 80;
p[0].y = rand() % 80;
KXL_DrawPolygon(p, 4, False, True);</b>
}
KXL_UpDateImm(0, 0, 100, 100);
getchar();
KXL_DeleteWindow();
return 0;
}
</pre>
</body>
</html>
|