]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/mask.tex
removed empty dtor \membersections
[wxWidgets.git] / docs / latex / wx / mask.tex
CommitLineData
a660d684
KB
1\section{\class{wxMask}}\label{wxmask}
2
3This class encapsulates a monochrome mask bitmap, where the masked area is black and
d3c7cfeb
JS
4the unmasked area is white. When associated with a bitmap and drawn in a device context,
5the unmasked area of the bitmap will be drawn, and the masked area will not be drawn.
a660d684
KB
6
7\wxheading{Derived from}
8
9\helpref{wxObject}{wxobject}
10
954b8ae6
JS
11\wxheading{Include files}
12
13<wx/bitmap.h>
14
a7af285d
VZ
15\wxheading{Library}
16
17\helpref{wxCore}{librarieslist}
18
a660d684
KB
19\wxheading{Remarks}
20
21A mask may be associated with a \helpref{wxBitmap}{wxbitmap}. It is used in \helpref{wxDC::Blit}{wxdcblit} when
22the source device context is a \helpref{wxMemoryDC}{wxmemorydc} with wxBitmap selected into it that
23contains a mask.
24
25\wxheading{See also}
26
27\helpref{wxBitmap}{wxbitmap}, \helpref{wxDC::Blit}{wxdcblit}, \helpref{wxMemoryDC}{wxmemorydc}
28
29\latexignore{\rtfignore{\wxheading{Members}}}
30
dcbd177f 31\membersection{wxMask::wxMask}\label{wxmaskctor}
a660d684
KB
32
33\func{}{wxMask}{\void}
34
35Default constructor.
36
5873607e 37\func{}{wxMask}{\param{const \helpref{wxBitmap}{wxbitmap}\& }{bitmap}}
a660d684
KB
38
39Constructs a mask from a monochrome bitmap.
40
ac1edf35
RD
41\pythonnote{This is the default constructor for wxMask in wxPython.}
42
5873607e 43\func{}{wxMask}{\param{const \helpref{wxBitmap}{wxbitmap}\& }{bitmap}, \param{const \helpref{wxColour}{wxcolour}\& }{colour}}
a660d684 44
f9ee644e 45Constructs a mask from a bitmap and a colour that indicates the background.
a660d684 46
ac1edf35 47\pythonnote{wxPython has an alternate wxMask constructor matching this
c9110876 48form called {\tt wxMaskColour}.}
ac1edf35 49
a660d684
KB
50\func{}{wxMask}{\param{const wxBitmap\& }{bitmap}, \param{int}{ index}}
51
91b8de8d
RR
52Constructs a mask from a bitmap and a palette index that indicates the background. Not
53yet implemented for GTK.
a660d684
KB
54
55\wxheading{Parameters}
56
57\docparam{bitmap}{A valid bitmap.}
58
59\docparam{colour}{A colour specifying the transparency RGB values.}
60
61\docparam{index}{Index into a palette, specifying the transparency colour.}
62
dcbd177f 63\membersection{wxMask::\destruct{wxMask}}\label{wxmaskdtor}
a660d684
KB
64
65\func{}{\destruct{wxMask}}{\void}
66
67Destroys the wxMask object and the underlying bitmap data.
68
69\membersection{wxMask::Create}\label{wxmaskcreate}
70
71\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}}
72
73Constructs a mask from a monochrome bitmap.
74
75\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}, \param{const wxColour\& }{colour}}
76
f9ee644e 77Constructs a mask from a bitmap and a colour that indicates the background.
a660d684
KB
78
79\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}, \param{int}{ index}}
80
91b8de8d
RR
81Constructs a mask from a bitmap and a palette index that indicates the background. Not
82yet implemented for GTK.
a660d684
KB
83
84\wxheading{Parameters}
85
86\docparam{bitmap}{A valid bitmap.}
87
88\docparam{colour}{A colour specifying the transparency RGB values.}
89
90\docparam{index}{Index into a palette, specifying the transparency colour.}
91
92