File: Painting.html

package info (click to toggle)
polyml 5.6-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 31,892 kB
  • ctags: 34,453
  • sloc: cpp: 44,983; ansic: 24,520; asm: 14,850; sh: 11,730; makefile: 551; exp: 484; python: 253; awk: 91; sed: 9
file content (59 lines) | stat: -rw-r--r-- 2,029 bytes parent folder | download | duplicates (5)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title>Windows Interface Reference: Painting structure</title>
</head>

<body>

<h1>Painting and Drawing</h1>

<p>The Painting structure contains functions to control painting and drawing to a window
or device context.</p>

<pre>structure Painting :
  sig
  	type HWND and HDC and COLORREF and HRGN

    type RECT = { top: int, left: int, bottom: int, right: int }

    type BinaryRasterOperation
    val R2_BLACK : BinaryRasterOperation
    val R2_COPYPEN : BinaryRasterOperation
    val R2_MASKNOTPEN : BinaryRasterOperation
    val R2_MASKPEN : BinaryRasterOperation
    val R2_MASKPENNOT : BinaryRasterOperation
    val R2_MERGENOTPEN : BinaryRasterOperation
    val R2_MERGEPEN : BinaryRasterOperation
    val R2_MERGEPENNOT : BinaryRasterOperation
    val R2_NOP : BinaryRasterOperation
    val R2_NOT : BinaryRasterOperation
    val R2_NOTCOPYPEN : BinaryRasterOperation
    val R2_NOTMASKPEN : BinaryRasterOperation
    val R2_NOTMERGEPEN : BinaryRasterOperation
    val R2_NOTXORPEN : BinaryRasterOperation
    val R2_WHITE : BinaryRasterOperation
    val R2_XORPEN : BinaryRasterOperation

	type PAINTSTRUCT =
		{ hdc: HDC, erase: bool, paint: RECT, private: Word8Vector.vector }

    val <a
name="BeginPaint">BeginPaint</a> : HWND -&gt; HDC * PAINTSTRUCT
    val <a name="EndPaint">EndPaint</a> : HWND * PAINTSTRUCT -&gt; unit
    val GdiFlush : unit -&gt; unit
    val GdiGetBatchLimit : unit -&gt; int
    val GdiSetBatchLimit : int -&gt; int
    val GetBkColor : HDC -&gt; COLORREF
    val GetROP2 : HDC -&gt; BinaryRasterOperation
    val GetUpdateRect : HWND * bool -&gt; RECT option
    val GetUpdateRgn : HWND * HRGN * bool -&gt; Region.ResultRegion
    val GetWindowDC : HWND -&gt; HDC
    val InvalidateRgn : HWND * HRGN * bool -&gt; unit
    val SetBkColor : HDC * COLORREF -&gt; COLORREF
    val SetROP2 : HDC * BinaryRasterOperation -&gt; BinaryRasterOperation
    val WindowFromDC : HDC -&gt; HWND
  end</pre>
</body>
</html>