]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/bmpdatob.tex
CW5.2 Pro Adaptions, wxMac starting to move in
[wxWidgets.git] / docs / latex / wx / bmpdatob.tex
CommitLineData
dface61c
JS
1\section{\class{wxBitmapDataObject}}\label{wxbitmapdataobject}
2
717a57c2
VZ
3wxBitmapDataObject is a specialization of wxDataObject for bitmap data. It can
4be used without change to paste data into the
5\helpref{wxClipboard}{wxclipboard} or a \helpref{wxDropSource}{wxdropsource}. A
6user may wish to derive a new class from this class for providing a bitmap
7on-demand in order to minimize memory consumption when offering data in several
8formats, such as a bitmap and GIF.
ab272c0b 9
717a57c2
VZ
10\wxheading{Virtual functions to override}
11
12This class may be used as is, but
13\helpref{GetBitmap}{wxbitmapdataobjectgetbitmap} may be overridden to increase
14efficiency.
dface61c
JS
15
16\wxheading{Derived from}
17
407f3681 18\helpref{wxDataObjectSimple}{wxdataobjectsimple}\\
dface61c
JS
19\helpref{wxDataObject}{wxdataobject}
20
954b8ae6
JS
21\wxheading{Include files}
22
23<wx/dataobj.h>
24
dface61c
JS
25\wxheading{See also}
26
7f24fdbf 27\helpref{Clipboard and drag and drop overview}{wxdndoverview},
717a57c2
VZ
28\helpref{wxDataObject}{wxdataobject},
29\helpref{wxDataObjectSimple}{wxdataobjectsimple},
30\helpref{wxFileDataObject}{wxfiledataobject},
31\helpref{wxTextDataObject}{wxtextdataobject},
ab272c0b 32\helpref{wxDataObject}{wxdataobject}
dface61c 33
717a57c2 34\func{}{wxBitmapDataObject}{\param{const wxBitmap\& }{bitmap = wxNullBitmap}}
ab272c0b 35
717a57c2
VZ
36Constructor, optionally passing a bitmap (otherwise use
37\helpref{SetBitmap}{wxbitmapdataobjectsetbitmap} later)
ab272c0b 38
1fb3eae5 39\membersection{wxBitmapDataObject::GetBitmap}\label{wxbitmapdataobjectgetbitmap}
dface61c
JS
40
41\constfunc{virtual wxBitmap}{GetBitmap}{\void}
42
ab272c0b
RR
43Returns the bitmap associated with the data object. You may wish to override
44this method when offering data on-demand, but this is not required by
45wxWindows' internals. Use this method to get data in bitmap form from
46the \helpref{wxClipboard}{wxclipboard}.
47
03ab016d 48\membersection{wxBitmapDataObject::SetBitmap}\label{wxbitmapdataobjectsetbitmap}
ab272c0b
RR
49
50\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
51
717a57c2
VZ
52Sets the bitmap associated with the data object. This method is called when the
53data object receives data. Usually there will be no reason to override this
54function.
ab272c0b 55