File: statbmp.tex

package info (click to toggle)
wxwidgets2.8 2.8.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 239,052 kB
  • ctags: 289,550
  • sloc: cpp: 1,838,857; xml: 396,717; python: 282,506; ansic: 126,171; makefile: 51,406; sh: 14,581; asm: 299; sql: 258; lex: 194; perl: 139; yacc: 128; pascal: 95; php: 39; lisp: 38; tcl: 24; haskell: 20; java: 18; cs: 18; erlang: 17; ruby: 16; ada: 9; ml: 9; csh: 9
file content (134 lines) | stat: -rw-r--r-- 3,853 bytes parent folder | download | duplicates (3)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
\section{\class{wxStaticBitmap}}\label{wxstaticbitmap}

A static bitmap control displays a bitmap. It is meant for display of the
small icons in the dialog boxes and is not meant to be a general purpose image
display control. In particular, under Windows 9x the size of bitmap is limited
to $64*64$ pixels and thus you should use your own control if you want to
display larger images portably.

\wxheading{Derived from}

\helpref{wxControl}{wxcontrol}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxEvtHandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/statbmp.h>

\wxheading{Window styles}

There are no special styles for this control.

See also \helpref{window styles overview}{windowstyles}.

\wxheading{See also}

\helpref{wxStaticBitmap}{wxstaticbitmap}, \helpref{wxStaticBox}{wxstaticbox}

\wxheading{Remarks}

The bitmap to be displayed should have a small number of colours, such as 16, to avoid
palette problems.

\latexignore{\rtfignore{\wxheading{Members}}}


\membersection{wxStaticBitmap::wxStaticBitmap}\label{wxstaticbitmapconstr}

\func{}{wxStaticBitmap}{\void}

Default constructor.

\func{}{wxStaticBitmap}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}

Constructor, creating and showing a static bitmap control.

\wxheading{Parameters}

\docparam{parent}{Parent window. Should not be NULL.}

\docparam{id}{Control identifier. A value of -1 denotes a default value.}

\docparam{label}{Bitmap label.}

\docparam{pos}{Window position.}

\docparam{size}{Window size.}

\docparam{style}{Window style. See \helpref{wxStaticBitmap}{wxstaticbitmap}.}

\docparam{name}{Window name.}

\wxheading{See also}

\helpref{wxStaticBitmap::Create}{wxstaticbitmapcreate}


\membersection{wxStaticBitmap::Create}\label{wxstaticbitmapcreate}

\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticBitmap"}}

Creation function, for two-step construction. For details see \helpref{wxStaticBitmap::wxStaticBitmap}{wxstaticbitmapconstr}.


\membersection{wxStaticBitmap::GetBitmap}\label{wxstaticbitmapgetbitmap}

\constfunc{wxBitmap}{GetBitmap}{\void}

Returns the bitmap currently used in the control. Notice that this method can
be called even if \helpref{SetIcon}{wxstaticbitmapseticon} had been used.

\wxheading{See also}

\helpref{wxStaticBitmap::SetBitmap}{wxstaticbitmapsetbitmap}


\membersection{wxStaticBitmap::GetIcon}\label{wxstaticbitmapgeticon}

\constfunc{wxIcon}{GetIcon}{\void}

Returns the icon currently used in the control. Notice that this method can
only be called if \helpref{SetIcon}{wxstaticbitmapseticon} had been used: an icon
can't be retrieved from the control if a bitmap had been set (using 
\helpref{SetBitmap}{wxstaticbitmapsetbitmap}).

\wxheading{See also}

\helpref{wxStaticBitmap::SetIcon}{wxstaticbitmapseticon}


\membersection{wxStaticBitmap::SetBitmap}\label{wxstaticbitmapsetbitmap}

\func{virtual void}{SetBitmap}{\param{const wxBitmap\& }{ label}}

Sets the bitmap label.

\wxheading{Parameters}

\docparam{label}{The new bitmap.}

\wxheading{See also}

\helpref{wxStaticBitmap::GetBitmap}{wxstaticbitmapgetbitmap}


\membersection{wxStaticBitmap::SetIcon}\label{wxstaticbitmapseticon}

\func{virtual void}{SetIcon}{\param{const wxIcon\& }{ label}}

Sets the label to the given icon.

\wxheading{Parameters}

\docparam{label}{The new icon.}

\wxheading{See also}

\helpref{wxStaticBitmap::GetIcon}{wxstaticbitmapgeticon}