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

NAME

6       wxStaticBitmap - Functions for wxStaticBitmap class
7

DESCRIPTION

9       A  static  bitmap  control displays a bitmap. Native implementations on
10       some platforms are only meant for display of the small icons in the di‐
11       alog boxes.
12
13       If  you want to display larger images portably, you may use generic im‐
14       plementation wxGenericStaticBitmap declared in <wx/generic/statbmpg.h>.
15
16       Notice that for the best results, the size of the control should be the
17       same as the size of the image displayed in it, as happens by default if
18       it's not resized explicitly. Otherwise, behaviour depends on the  plat‐
19       form:  under MSW, the bitmap is drawn centred inside the control, while
20       elsewhere it is drawn at  the  origin  of  the  control.  You  can  use
21       SetScaleMode()  (not  implemented  in  wx)  to control how the image is
22       scaled inside the control.
23
24       See: wxBitmap
25
26       This class is derived (and can use functions) from: wxControl  wxWindow
27       wxEvtHandler
28
29       wxWidgets docs: wxStaticBitmap
30

DATA TYPES

32       wxStaticBitmap() = wx:wx_object()
33

EXPORTS

35       new() -> wxStaticBitmap()
36
37              Default constructor.
38
39       new(Parent, Id, Label) -> wxStaticBitmap()
40
41              Types:
42
43                 Parent = wxWindow:wxWindow()
44                 Id = integer()
45                 Label = wxBitmap:wxBitmap()
46
47       new(Parent, Id, Label, Options :: [Option]) -> wxStaticBitmap()
48
49              Types:
50
51                 Parent = wxWindow:wxWindow()
52                 Id = integer()
53                 Label = wxBitmap:wxBitmap()
54                 Option =
55                     {pos, {X :: integer(), Y :: integer()}} |
56                     {size, {W :: integer(), H :: integer()}} |
57                     {style, integer()}
58
59              Constructor, creating and showing a static bitmap control.
60
61              See: create/5
62
63       create(This, Parent, Id, Label) -> boolean()
64
65              Types:
66
67                 This = wxStaticBitmap()
68                 Parent = wxWindow:wxWindow()
69                 Id = integer()
70                 Label = wxBitmap:wxBitmap()
71
72       create(This, Parent, Id, Label, Options :: [Option]) -> boolean()
73
74              Types:
75
76                 This = wxStaticBitmap()
77                 Parent = wxWindow:wxWindow()
78                 Id = integer()
79                 Label = wxBitmap:wxBitmap()
80                 Option =
81                     {pos, {X :: integer(), Y :: integer()}} |
82                     {size, {W :: integer(), H :: integer()}} |
83                     {style, integer()}
84
85              Creation function, for two-step construction.
86
87              For details see new/4.
88
89       getBitmap(This) -> wxBitmap:wxBitmap()
90
91              Types:
92
93                 This = wxStaticBitmap()
94
95              Returns the bitmap currently used in the control.
96
97              Notice that this method can be called even if SetIcon() (not im‐
98              plemented in wx) had been used.
99
100              See: setBitmap/2
101
102       setBitmap(This, Label) -> ok
103
104              Types:
105
106                 This = wxStaticBitmap()
107                 Label = wxBitmap:wxBitmap()
108
109              Sets the bitmap label.
110
111              See: getBitmap/1
112
113       destroy(This :: wxStaticBitmap()) -> ok
114
115              Destroys the object.
116
117
118
119wxWidgets team.                    wx 2.2.2                  wxStaticBitmap(3)
Impressum