1wxBitmapDataObject(3)      Erlang Module Definition      wxBitmapDataObject(3)
2
3
4

NAME

6       wxBitmapDataObject - Functions for wxBitmapDataObject class
7

DESCRIPTION

9       wxBitmapDataObject is a specialization of wxDataObject for bitmap data.
10       It can be used without change to paste data into the wxClipboard  or  a
11       wxDropSource  (not  implemented in wx). A user may wish to derive a new
12       class from this class for providing a bitmap on-demand in order to min‐
13       imize memory consumption when offering data in several formats, such as
14       a bitmap and GIF.
15
16       This class may be used as is, but getBitmap/1 may be overridden to  in‐
17       crease efficiency.
18
19       See: Overview dnd, wxDataObject, wxDataObjectSimple (not implemented in
20       wx), wxFileDataObject, wxTextDataObject, wxDataObject
21
22       This class is derived (and can use functions) from: wxDataObject
23
24       wxWidgets docs: wxBitmapDataObject
25

DATA TYPES

27       wxBitmapDataObject() = wx:wx_object()
28

EXPORTS

30       new() -> wxBitmapDataObject()
31
32       new(Options :: [Option]) -> wxBitmapDataObject()
33
34       new(Bitmap) -> wxBitmapDataObject()
35
36              Types:
37
38                 Bitmap = wxBitmap:wxBitmap()
39
40              Constructor, optionally passing a  bitmap  (otherwise  use  set‐
41              Bitmap/2 later).
42
43       getBitmap(This) -> wxBitmap:wxBitmap()
44
45              Types:
46
47                 This = wxBitmapDataObject()
48
49              Returns the bitmap associated with the data object.
50
51              You  may  wish to override this method when offering data on-de‐
52              mand, but this is not required by wxWidgets' internals. Use this
53              method to get data in bitmap form from the wxClipboard.
54
55       setBitmap(This, Bitmap) -> ok
56
57              Types:
58
59                 This = wxBitmapDataObject()
60                 Bitmap = wxBitmap:wxBitmap()
61
62              Sets the bitmap associated with the data object.
63
64              This  method  is called when the data object receives data. Usu‐
65              ally there will be no reason to override this function.
66
67       destroy(This :: wxBitmapDataObject()) -> ok
68
69              Destroys the object.
70
71
72
73wxWidgets team.                    wx 2.2.1              wxBitmapDataObject(3)
Impressum