File: Brush.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 (78 lines) | stat: -rw-r--r-- 1,856 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

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

<body>

<h1>Brush</h1>

<p>The Brush structure contains functions and structures to create and operate on brushes.
&nbsp; Brushes are used to fill areas of the screen with single colours or patterns.</p>

<pre>structure Brush:
  sig
    type HBITMAP and HBRUSH and HDC

    datatype
      HatchStyle =
          HS_BDIAGONAL
        | HS_CROSS
        | HS_DIAGCROSS
        | HS_FDIAGONAL
        | HS_HORIZONTAL
        | HS_VERTICAL

    datatype
      BrushStyle =
          BS_HATCHED of HatchStyle
        | BS_HOLLOW
        | BS_PATTERN of HBITMAP
        | BS_SOLID

    type COLORREF = Color.COLORREF

    type LOGBRUSH = BrushStyle * COLORREF
    type POINT = {x: int, y: int}
    type RasterOpCode = Bitmap.RasterOpCode

    datatype ColorType =
		COLOR_SCROLLBAR
	|	COLOR_BACKGROUND
	|	COLOR_ACTIVECAPTION
	|	COLOR_INACTIVECAPTION
	|	COLOR_MENU
	|	COLOR_WINDOW
	|	COLOR_WINDOWFRAME
	|	COLOR_MENUTEXT
	|	COLOR_WINDOWTEXT
	|	COLOR_CAPTIONTEXT
	|	COLOR_ACTIVEBORDER
	|	COLOR_INACTIVEBORDER
	|	COLOR_APPWORKSPACE
	|	COLOR_HIGHLIGHT
	|	COLOR_HIGHLIGHTTEXT
	|	COLOR_BTNFACE
	|	COLOR_BTNSHADOW
	|	COLOR_GRAYTEXT
	|	COLOR_BTNTEXT
	|	COLOR_INACTIVECAPTIONTEXT
	|	COLOR_BTNHIGHLIGHT
	|	COLOR_3DDKSHADOW
	|	COLOR_3DLIGHT
	|	COLOR_INFOTEXT
	|	COLOR_INFOBK

    val CreateBrushIndirect : LOGBRUSH -&gt; HBRUSH
    val CreateHatchBrush : HatchStyle * COLORREF -&gt; HBRUSH
    val CreatePatternBrush : HBITMAP -&gt; HBRUSH
    val CreateSolidBrush : COLORREF -&gt; HBRUSH
    val GetSysColorBrush : ColorType -&gt; HBRUSH
    val GetBrushOrgEx : HDC -&gt; POINT
    val PatBlt : HDC * int * int * int * int * RasterOpCode -&gt; unit
    val SetBrushOrgEx : HDC * POINT -&gt; POINT
  end</pre>
</body>
</html>