~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/wx/src/gen/wxListbook.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%
 
2
%% %CopyrightBegin%
 
3
%% 
 
4
%% Copyright Ericsson AB 2009. All Rights Reserved.
 
5
%% 
 
6
%% The contents of this file are subject to the Erlang Public License,
 
7
%% Version 1.1, (the "License"); you may not use this file except in
 
8
%% compliance with the License. You should have received a copy of the
 
9
%% Erlang Public License along with this software. If not, it can be
 
10
%% retrieved online at http://www.erlang.org/.
 
11
%% 
 
12
%% Software distributed under the License is distributed on an "AS IS"
 
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
14
%% the License for the specific language governing rights and limitations
 
15
%% under the License.
 
16
%% 
 
17
%% %CopyrightEnd%
 
18
%% This file is generated DO NOT EDIT
 
19
 
 
20
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html">wxListbook</a>.
 
21
%% <p>This class is derived (and can use functions) from: 
 
22
%% <br />{@link wxControl}
 
23
%% <br />{@link wxWindow}
 
24
%% <br />{@link wxEvtHandler}
 
25
%% </p>
 
26
%% @type wxListbook().  An object reference, The representation is internal
 
27
%% and can be changed without notice. It can't be used for comparsion
 
28
%% stored on disc or distributed for use on other nodes.
 
29
 
 
30
-module(wxListbook).
 
31
-include("wxe.hrl").
 
32
-export([addPage/3,addPage/4,advanceSelection/1,advanceSelection/2,assignImageList/2,
 
33
  changeSelection/2,create/3,create/4,deleteAllPages/1,deletePage/2,
 
34
  destroy/1,getCurrentPage/1,getImageList/1,getPage/2,getPageCount/1,
 
35
  getPageImage/2,getPageText/2,getSelection/1,hitTest/2,insertPage/4,
 
36
  insertPage/5,new/0,new/2,new/3,removePage/2,setImageList/2,setPageImage/3,
 
37
  setPageSize/2,setPageText/3,setSelection/2]).
 
38
 
 
39
%% inherited exports
 
40
-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
 
41
  centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
 
42
  clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
 
43
  connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
 
44
  destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
 
45
  enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
 
46
  getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
 
47
  getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
 
48
  getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
 
49
  getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
 
50
  getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
 
51
  getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
 
52
  getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
 
53
  getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
 
54
  getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
 
55
  hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
 
56
  isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
 
57
  layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
 
58
  move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
 
59
  navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
 
60
  popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
 
61
  refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
 
62
  screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
 
63
  setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
 
64
  setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
 
65
  setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
 
66
  setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
 
67
  setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
 
68
  setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
 
69
  setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
 
70
  setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
 
71
  setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
 
72
  setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
 
73
  setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
 
74
  show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
 
75
  update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
 
76
 
 
77
%% @hidden
 
78
parent_class(wxControl) -> true;
 
79
parent_class(wxWindow) -> true;
 
80
parent_class(wxEvtHandler) -> true;
 
81
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
 
82
 
 
83
%% @spec () -> wxListbook()
 
84
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookwxlistbook">external documentation</a>.
 
85
new() ->
 
86
  wxe_util:construct(?wxListbook_new_0,
 
87
  <<>>).
 
88
 
 
89
%% @spec (Parent::wxWindow:wxWindow(), Id::integer()) -> wxListbook()
 
90
%% @equiv new(Parent,Id, [])
 
91
new(Parent,Id)
 
92
 when is_record(Parent, wx_ref),is_integer(Id) ->
 
93
  new(Parent,Id, []).
 
94
 
 
95
%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> wxListbook()
 
96
%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
 
97
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookwxlistbook">external documentation</a>.
 
98
new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
 
99
 when is_integer(Id),is_list(Options) ->
 
100
  ?CLASS(ParentT,wxWindow),
 
101
  MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
 
102
          ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
 
103
          ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
 
104
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
 
105
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
 
106
  wxe_util:construct(?wxListbook_new_3,
 
107
  <<ParentRef:32/?UI,Id:32/?UI, BinOpt/binary>>).
 
108
 
 
109
%% @spec (This::wxListbook(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
 
110
%% @equiv addPage(This,Page,Text, [])
 
111
addPage(This,Page,Text)
 
112
 when is_record(This, wx_ref),is_record(Page, wx_ref),is_list(Text) ->
 
113
  addPage(This,Page,Text, []).
 
114
 
 
115
%% @spec (This::wxListbook(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
 
116
%% Option = {bSelect, bool()} | {imageId, integer()}
 
117
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookaddpage">external documentation</a>.
 
118
addPage(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PageT,ref=PageRef},Text, Options)
 
119
 when is_list(Text),is_list(Options) ->
 
120
  ?CLASS(ThisT,wxListbook),
 
121
  ?CLASS(PageT,wxWindow),
 
122
  Text_UC = unicode:characters_to_binary([Text,0]),
 
123
  MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
 
124
          ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
 
125
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
 
126
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
 
127
  wxe_util:call(?wxListbook_AddPage,
 
128
  <<ThisRef:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((4+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
 
129
 
 
130
%% @spec (This::wxListbook()) -> ok
 
131
%% @equiv advanceSelection(This, [])
 
132
advanceSelection(This)
 
133
 when is_record(This, wx_ref) ->
 
134
  advanceSelection(This, []).
 
135
 
 
136
%% @spec (This::wxListbook(), [Option]) -> ok
 
137
%% Option = {forward, bool()}
 
138
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookadvanceselection">external documentation</a>.
 
139
advanceSelection(#wx_ref{type=ThisT,ref=ThisRef}, Options)
 
140
 when is_list(Options) ->
 
141
  ?CLASS(ThisT,wxListbook),
 
142
  MOpts = fun({forward, Forward}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Forward)):32/?UI>>|Acc];
 
143
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
 
144
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
 
145
  wxe_util:cast(?wxListbook_AdvanceSelection,
 
146
  <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
 
147
 
 
148
%% @spec (This::wxListbook(), ImageList::wxImageList:wxImageList()) -> ok
 
149
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookassignimagelist">external documentation</a>.
 
150
assignImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
 
151
  ?CLASS(ThisT,wxListbook),
 
152
  ?CLASS(ImageListT,wxImageList),
 
153
  wxe_util:cast(?wxListbook_AssignImageList,
 
154
  <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
 
155
 
 
156
%% @spec (This::wxListbook(), Parent::wxWindow:wxWindow(), Id::integer()) -> bool()
 
157
%% @equiv create(This,Parent,Id, [])
 
158
create(This,Parent,Id)
 
159
 when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id) ->
 
160
  create(This,Parent,Id, []).
 
161
 
 
162
%% @spec (This::wxListbook(), Parent::wxWindow:wxWindow(), Id::integer(), [Option]) -> bool()
 
163
%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
 
164
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookcreate">external documentation</a>.
 
165
create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id, Options)
 
166
 when is_integer(Id),is_list(Options) ->
 
167
  ?CLASS(ThisT,wxListbook),
 
168
  ?CLASS(ParentT,wxWindow),
 
169
  MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
 
170
          ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
 
171
          ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
 
172
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
 
173
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
 
174
  wxe_util:call(?wxListbook_Create,
 
175
  <<ThisRef:32/?UI,ParentRef:32/?UI,Id:32/?UI, 0:32,BinOpt/binary>>).
 
176
 
 
177
%% @spec (This::wxListbook()) -> bool()
 
178
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookdeleteallpages">external documentation</a>.
 
179
deleteAllPages(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
180
  ?CLASS(ThisT,wxListbook),
 
181
  wxe_util:call(?wxListbook_DeleteAllPages,
 
182
  <<ThisRef:32/?UI>>).
 
183
 
 
184
%% @spec (This::wxListbook(), N::integer()) -> bool()
 
185
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookdeletepage">external documentation</a>.
 
186
deletePage(#wx_ref{type=ThisT,ref=ThisRef},N)
 
187
 when is_integer(N) ->
 
188
  ?CLASS(ThisT,wxListbook),
 
189
  wxe_util:call(?wxListbook_DeletePage,
 
190
  <<ThisRef:32/?UI,N:32/?UI>>).
 
191
 
 
192
%% @spec (This::wxListbook(), N::integer()) -> bool()
 
193
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookremovepage">external documentation</a>.
 
194
removePage(#wx_ref{type=ThisT,ref=ThisRef},N)
 
195
 when is_integer(N) ->
 
196
  ?CLASS(ThisT,wxListbook),
 
197
  wxe_util:call(?wxListbook_RemovePage,
 
198
  <<ThisRef:32/?UI,N:32/?UI>>).
 
199
 
 
200
%% @spec (This::wxListbook()) -> wxWindow:wxWindow()
 
201
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetcurrentpage">external documentation</a>.
 
202
getCurrentPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
203
  ?CLASS(ThisT,wxListbook),
 
204
  wxe_util:call(?wxListbook_GetCurrentPage,
 
205
  <<ThisRef:32/?UI>>).
 
206
 
 
207
%% @spec (This::wxListbook()) -> wxImageList:wxImageList()
 
208
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetimagelist">external documentation</a>.
 
209
getImageList(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
210
  ?CLASS(ThisT,wxListbook),
 
211
  wxe_util:call(?wxListbook_GetImageList,
 
212
  <<ThisRef:32/?UI>>).
 
213
 
 
214
%% @spec (This::wxListbook(), N::integer()) -> wxWindow:wxWindow()
 
215
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpage">external documentation</a>.
 
216
getPage(#wx_ref{type=ThisT,ref=ThisRef},N)
 
217
 when is_integer(N) ->
 
218
  ?CLASS(ThisT,wxListbook),
 
219
  wxe_util:call(?wxListbook_GetPage,
 
220
  <<ThisRef:32/?UI,N:32/?UI>>).
 
221
 
 
222
%% @spec (This::wxListbook()) -> integer()
 
223
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpagecount">external documentation</a>.
 
224
getPageCount(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
225
  ?CLASS(ThisT,wxListbook),
 
226
  wxe_util:call(?wxListbook_GetPageCount,
 
227
  <<ThisRef:32/?UI>>).
 
228
 
 
229
%% @spec (This::wxListbook(), N::integer()) -> integer()
 
230
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpageimage">external documentation</a>.
 
231
getPageImage(#wx_ref{type=ThisT,ref=ThisRef},N)
 
232
 when is_integer(N) ->
 
233
  ?CLASS(ThisT,wxListbook),
 
234
  wxe_util:call(?wxListbook_GetPageImage,
 
235
  <<ThisRef:32/?UI,N:32/?UI>>).
 
236
 
 
237
%% @spec (This::wxListbook(), N::integer()) -> string()
 
238
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetpagetext">external documentation</a>.
 
239
getPageText(#wx_ref{type=ThisT,ref=ThisRef},N)
 
240
 when is_integer(N) ->
 
241
  ?CLASS(ThisT,wxListbook),
 
242
  wxe_util:call(?wxListbook_GetPageText,
 
243
  <<ThisRef:32/?UI,N:32/?UI>>).
 
244
 
 
245
%% @spec (This::wxListbook()) -> integer()
 
246
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookgetselection">external documentation</a>.
 
247
getSelection(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
248
  ?CLASS(ThisT,wxListbook),
 
249
  wxe_util:call(?wxListbook_GetSelection,
 
250
  <<ThisRef:32/?UI>>).
 
251
 
 
252
%% @spec (This::wxListbook(), Pt::{X::integer(),Y::integer()}) -> {integer(),Flags::integer()}
 
253
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookhittest">external documentation</a>.
 
254
hitTest(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY})
 
255
 when is_integer(PtX),is_integer(PtY) ->
 
256
  ?CLASS(ThisT,wxListbook),
 
257
  wxe_util:call(?wxListbook_HitTest,
 
258
  <<ThisRef:32/?UI,PtX:32/?UI,PtY:32/?UI>>).
 
259
 
 
260
%% @spec (This::wxListbook(), N::integer(), Page::wxWindow:wxWindow(), Text::string()) -> bool()
 
261
%% @equiv insertPage(This,N,Page,Text, [])
 
262
insertPage(This,N,Page,Text)
 
263
 when is_record(This, wx_ref),is_integer(N),is_record(Page, wx_ref),is_list(Text) ->
 
264
  insertPage(This,N,Page,Text, []).
 
265
 
 
266
%% @spec (This::wxListbook(), N::integer(), Page::wxWindow:wxWindow(), Text::string(), [Option]) -> bool()
 
267
%% Option = {bSelect, bool()} | {imageId, integer()}
 
268
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookinsertpage">external documentation</a>.
 
269
insertPage(#wx_ref{type=ThisT,ref=ThisRef},N,#wx_ref{type=PageT,ref=PageRef},Text, Options)
 
270
 when is_integer(N),is_list(Text),is_list(Options) ->
 
271
  ?CLASS(ThisT,wxListbook),
 
272
  ?CLASS(PageT,wxWindow),
 
273
  Text_UC = unicode:characters_to_binary([Text,0]),
 
274
  MOpts = fun({bSelect, BSelect}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(BSelect)):32/?UI>>|Acc];
 
275
          ({imageId, ImageId}, Acc) -> [<<2:32/?UI,ImageId:32/?UI>>|Acc];
 
276
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
 
277
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
 
278
  wxe_util:call(?wxListbook_InsertPage,
 
279
  <<ThisRef:32/?UI,N:32/?UI,PageRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>).
 
280
 
 
281
%% @spec (This::wxListbook(), ImageList::wxImageList:wxImageList()) -> ok
 
282
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetimagelist">external documentation</a>.
 
283
setImageList(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ImageListT,ref=ImageListRef}) ->
 
284
  ?CLASS(ThisT,wxListbook),
 
285
  ?CLASS(ImageListT,wxImageList),
 
286
  wxe_util:cast(?wxListbook_SetImageList,
 
287
  <<ThisRef:32/?UI,ImageListRef:32/?UI>>).
 
288
 
 
289
%% @spec (This::wxListbook(), Size::{W::integer(),H::integer()}) -> ok
 
290
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetpagesize">external documentation</a>.
 
291
setPageSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH})
 
292
 when is_integer(SizeW),is_integer(SizeH) ->
 
293
  ?CLASS(ThisT,wxListbook),
 
294
  wxe_util:cast(?wxListbook_SetPageSize,
 
295
  <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>).
 
296
 
 
297
%% @spec (This::wxListbook(), N::integer(), ImageId::integer()) -> bool()
 
298
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetpageimage">external documentation</a>.
 
299
setPageImage(#wx_ref{type=ThisT,ref=ThisRef},N,ImageId)
 
300
 when is_integer(N),is_integer(ImageId) ->
 
301
  ?CLASS(ThisT,wxListbook),
 
302
  wxe_util:call(?wxListbook_SetPageImage,
 
303
  <<ThisRef:32/?UI,N:32/?UI,ImageId:32/?UI>>).
 
304
 
 
305
%% @spec (This::wxListbook(), N::integer(), StrText::string()) -> bool()
 
306
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetpagetext">external documentation</a>.
 
307
setPageText(#wx_ref{type=ThisT,ref=ThisRef},N,StrText)
 
308
 when is_integer(N),is_list(StrText) ->
 
309
  ?CLASS(ThisT,wxListbook),
 
310
  StrText_UC = unicode:characters_to_binary([StrText,0]),
 
311
  wxe_util:call(?wxListbook_SetPageText,
 
312
  <<ThisRef:32/?UI,N:32/?UI,(byte_size(StrText_UC)):32/?UI,(StrText_UC)/binary, 0:(((8- ((4+byte_size(StrText_UC)) band 16#7)) band 16#7))/unit:8>>).
 
313
 
 
314
%% @spec (This::wxListbook(), N::integer()) -> integer()
 
315
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbooksetselection">external documentation</a>.
 
316
setSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
 
317
 when is_integer(N) ->
 
318
  ?CLASS(ThisT,wxListbook),
 
319
  wxe_util:call(?wxListbook_SetSelection,
 
320
  <<ThisRef:32/?UI,N:32/?UI>>).
 
321
 
 
322
%% @spec (This::wxListbook(), N::integer()) -> integer()
 
323
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistbook.html#wxlistbookchangeselection">external documentation</a>.
 
324
changeSelection(#wx_ref{type=ThisT,ref=ThisRef},N)
 
325
 when is_integer(N) ->
 
326
  ?CLASS(ThisT,wxListbook),
 
327
  wxe_util:call(?wxListbook_ChangeSelection,
 
328
  <<ThisRef:32/?UI,N:32/?UI>>).
 
329
 
 
330
%% @spec (This::wxListbook()) -> ok
 
331
%% @doc Destroys this object, do not use object again
 
332
destroy(Obj=#wx_ref{type=Type}) -> 
 
333
  ?CLASS(Type,wxListbook),
 
334
  wxe_util:destroy(?DESTROY_OBJECT,Obj),
 
335
  ok.
 
336
 %% From wxControl 
 
337
%% @hidden
 
338
setLabel(This,Label) -> wxControl:setLabel(This,Label).
 
339
%% @hidden
 
340
getLabel(This) -> wxControl:getLabel(This).
 
341
 %% From wxWindow 
 
342
%% @hidden
 
343
warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
 
344
%% @hidden
 
345
validate(This) -> wxWindow:validate(This).
 
346
%% @hidden
 
347
updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
 
348
%% @hidden
 
349
updateWindowUI(This) -> wxWindow:updateWindowUI(This).
 
350
%% @hidden
 
351
update(This) -> wxWindow:update(This).
 
352
%% @hidden
 
353
transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
 
354
%% @hidden
 
355
transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
 
356
%% @hidden
 
357
thaw(This) -> wxWindow:thaw(This).
 
358
%% @hidden
 
359
show(This, Options) -> wxWindow:show(This, Options).
 
360
%% @hidden
 
361
show(This) -> wxWindow:show(This).
 
362
%% @hidden
 
363
shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
 
364
%% @hidden
 
365
setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
 
366
%% @hidden
 
367
setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
 
368
%% @hidden
 
369
setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
 
370
%% @hidden
 
371
setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
 
372
%% @hidden
 
373
setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
 
374
%% @hidden
 
375
setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
 
376
%% @hidden
 
377
setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
 
378
%% @hidden
 
379
setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
 
380
%% @hidden
 
381
setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
 
382
%% @hidden
 
383
setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
 
384
%% @hidden
 
385
setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
 
386
%% @hidden
 
387
setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
 
388
%% @hidden
 
389
setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
 
390
%% @hidden
 
391
setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
 
392
%% @hidden
 
393
setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
 
394
%% @hidden
 
395
setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
 
396
%% @hidden
 
397
setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
 
398
%% @hidden
 
399
setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
 
400
%% @hidden
 
401
setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
 
402
%% @hidden
 
403
setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
 
404
%% @hidden
 
405
setSize(This,Rect) -> wxWindow:setSize(This,Rect).
 
406
%% @hidden
 
407
setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
 
408
%% @hidden
 
409
setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
 
410
%% @hidden
 
411
setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
 
412
%% @hidden
 
413
setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
 
414
%% @hidden
 
415
setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
 
416
%% @hidden
 
417
setName(This,Name) -> wxWindow:setName(This,Name).
 
418
%% @hidden
 
419
setId(This,Winid) -> wxWindow:setId(This,Winid).
 
420
%% @hidden
 
421
setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
 
422
%% @hidden
 
423
setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
 
424
%% @hidden
 
425
setFont(This,Font) -> wxWindow:setFont(This,Font).
 
426
%% @hidden
 
427
setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
 
428
%% @hidden
 
429
setFocus(This) -> wxWindow:setFocus(This).
 
430
%% @hidden
 
431
setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
 
432
%% @hidden
 
433
setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
 
434
%% @hidden
 
435
setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
 
436
%% @hidden
 
437
setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
 
438
%% @hidden
 
439
setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
 
440
%% @hidden
 
441
setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
 
442
%% @hidden
 
443
setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
 
444
%% @hidden
 
445
setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
 
446
%% @hidden
 
447
setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
 
448
%% @hidden
 
449
setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
 
450
%% @hidden
 
451
setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
 
452
%% @hidden
 
453
setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
 
454
%% @hidden
 
455
setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
 
456
%% @hidden
 
457
setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
 
458
%% @hidden
 
459
setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
 
460
%% @hidden
 
461
setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
 
462
%% @hidden
 
463
scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
 
464
%% @hidden
 
465
scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
 
466
%% @hidden
 
467
scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
 
468
%% @hidden
 
469
scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
 
470
%% @hidden
 
471
screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
 
472
%% @hidden
 
473
screenToClient(This) -> wxWindow:screenToClient(This).
 
474
%% @hidden
 
475
reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
 
476
%% @hidden
 
477
removeChild(This,Child) -> wxWindow:removeChild(This,Child).
 
478
%% @hidden
 
479
releaseMouse(This) -> wxWindow:releaseMouse(This).
 
480
%% @hidden
 
481
refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
 
482
%% @hidden
 
483
refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
 
484
%% @hidden
 
485
refresh(This, Options) -> wxWindow:refresh(This, Options).
 
486
%% @hidden
 
487
refresh(This) -> wxWindow:refresh(This).
 
488
%% @hidden
 
489
raise(This) -> wxWindow:raise(This).
 
490
%% @hidden
 
491
popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
 
492
%% @hidden
 
493
popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
 
494
%% @hidden
 
495
popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
 
496
%% @hidden
 
497
popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
 
498
%% @hidden
 
499
popEventHandler(This) -> wxWindow:popEventHandler(This).
 
500
%% @hidden
 
501
pageUp(This) -> wxWindow:pageUp(This).
 
502
%% @hidden
 
503
pageDown(This) -> wxWindow:pageDown(This).
 
504
%% @hidden
 
505
navigate(This, Options) -> wxWindow:navigate(This, Options).
 
506
%% @hidden
 
507
navigate(This) -> wxWindow:navigate(This).
 
508
%% @hidden
 
509
moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
 
510
%% @hidden
 
511
moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
 
512
%% @hidden
 
513
move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
 
514
%% @hidden
 
515
move(This,X,Y) -> wxWindow:move(This,X,Y).
 
516
%% @hidden
 
517
move(This,Pt) -> wxWindow:move(This,Pt).
 
518
%% @hidden
 
519
makeModal(This, Options) -> wxWindow:makeModal(This, Options).
 
520
%% @hidden
 
521
makeModal(This) -> wxWindow:makeModal(This).
 
522
%% @hidden
 
523
lower(This) -> wxWindow:lower(This).
 
524
%% @hidden
 
525
lineUp(This) -> wxWindow:lineUp(This).
 
526
%% @hidden
 
527
lineDown(This) -> wxWindow:lineDown(This).
 
528
%% @hidden
 
529
layout(This) -> wxWindow:layout(This).
 
530
%% @hidden
 
531
isTopLevel(This) -> wxWindow:isTopLevel(This).
 
532
%% @hidden
 
533
isShown(This) -> wxWindow:isShown(This).
 
534
%% @hidden
 
535
isRetained(This) -> wxWindow:isRetained(This).
 
536
%% @hidden
 
537
isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
 
538
%% @hidden
 
539
isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
 
540
%% @hidden
 
541
isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
 
542
%% @hidden
 
543
isEnabled(This) -> wxWindow:isEnabled(This).
 
544
%% @hidden
 
545
invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
 
546
%% @hidden
 
547
initDialog(This) -> wxWindow:initDialog(This).
 
548
%% @hidden
 
549
inheritAttributes(This) -> wxWindow:inheritAttributes(This).
 
550
%% @hidden
 
551
hide(This) -> wxWindow:hide(This).
 
552
%% @hidden
 
553
hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
 
554
%% @hidden
 
555
hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
 
556
%% @hidden
 
557
hasCapture(This) -> wxWindow:hasCapture(This).
 
558
%% @hidden
 
559
getWindowVariant(This) -> wxWindow:getWindowVariant(This).
 
560
%% @hidden
 
561
getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
 
562
%% @hidden
 
563
getVirtualSize(This) -> wxWindow:getVirtualSize(This).
 
564
%% @hidden
 
565
getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
 
566
%% @hidden
 
567
getToolTip(This) -> wxWindow:getToolTip(This).
 
568
%% @hidden
 
569
getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
 
570
%% @hidden
 
571
getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
 
572
%% @hidden
 
573
getSizer(This) -> wxWindow:getSizer(This).
 
574
%% @hidden
 
575
getSize(This) -> wxWindow:getSize(This).
 
576
%% @hidden
 
577
getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
 
578
%% @hidden
 
579
getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
 
580
%% @hidden
 
581
getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
 
582
%% @hidden
 
583
getScreenRect(This) -> wxWindow:getScreenRect(This).
 
584
%% @hidden
 
585
getScreenPosition(This) -> wxWindow:getScreenPosition(This).
 
586
%% @hidden
 
587
getRect(This) -> wxWindow:getRect(This).
 
588
%% @hidden
 
589
getPosition(This) -> wxWindow:getPosition(This).
 
590
%% @hidden
 
591
getParent(This) -> wxWindow:getParent(This).
 
592
%% @hidden
 
593
getName(This) -> wxWindow:getName(This).
 
594
%% @hidden
 
595
getMinSize(This) -> wxWindow:getMinSize(This).
 
596
%% @hidden
 
597
getMaxSize(This) -> wxWindow:getMaxSize(This).
 
598
%% @hidden
 
599
getId(This) -> wxWindow:getId(This).
 
600
%% @hidden
 
601
getHelpText(This) -> wxWindow:getHelpText(This).
 
602
%% @hidden
 
603
getHandle(This) -> wxWindow:getHandle(This).
 
604
%% @hidden
 
605
getGrandParent(This) -> wxWindow:getGrandParent(This).
 
606
%% @hidden
 
607
getForegroundColour(This) -> wxWindow:getForegroundColour(This).
 
608
%% @hidden
 
609
getFont(This) -> wxWindow:getFont(This).
 
610
%% @hidden
 
611
getExtraStyle(This) -> wxWindow:getExtraStyle(This).
 
612
%% @hidden
 
613
getEventHandler(This) -> wxWindow:getEventHandler(This).
 
614
%% @hidden
 
615
getDropTarget(This) -> wxWindow:getDropTarget(This).
 
616
%% @hidden
 
617
getCursor(This) -> wxWindow:getCursor(This).
 
618
%% @hidden
 
619
getContainingSizer(This) -> wxWindow:getContainingSizer(This).
 
620
%% @hidden
 
621
getClientSize(This) -> wxWindow:getClientSize(This).
 
622
%% @hidden
 
623
getChildren(This) -> wxWindow:getChildren(This).
 
624
%% @hidden
 
625
getCharWidth(This) -> wxWindow:getCharWidth(This).
 
626
%% @hidden
 
627
getCharHeight(This) -> wxWindow:getCharHeight(This).
 
628
%% @hidden
 
629
getCaret(This) -> wxWindow:getCaret(This).
 
630
%% @hidden
 
631
getBestSize(This) -> wxWindow:getBestSize(This).
 
632
%% @hidden
 
633
getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
 
634
%% @hidden
 
635
getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
 
636
%% @hidden
 
637
getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
 
638
%% @hidden
 
639
freeze(This) -> wxWindow:freeze(This).
 
640
%% @hidden
 
641
fitInside(This) -> wxWindow:fitInside(This).
 
642
%% @hidden
 
643
fit(This) -> wxWindow:fit(This).
 
644
%% @hidden
 
645
findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
 
646
%% @hidden
 
647
enable(This, Options) -> wxWindow:enable(This, Options).
 
648
%% @hidden
 
649
enable(This) -> wxWindow:enable(This).
 
650
%% @hidden
 
651
disable(This) -> wxWindow:disable(This).
 
652
%% @hidden
 
653
destroyChildren(This) -> wxWindow:destroyChildren(This).
 
654
%% @hidden
 
655
convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
 
656
%% @hidden
 
657
convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
 
658
%% @hidden
 
659
close(This, Options) -> wxWindow:close(This, Options).
 
660
%% @hidden
 
661
close(This) -> wxWindow:close(This).
 
662
%% @hidden
 
663
clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
 
664
%% @hidden
 
665
clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
 
666
%% @hidden
 
667
clearBackground(This) -> wxWindow:clearBackground(This).
 
668
%% @hidden
 
669
centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
 
670
%% @hidden
 
671
centreOnParent(This) -> wxWindow:centreOnParent(This).
 
672
%% @hidden
 
673
centre(This, Options) -> wxWindow:centre(This, Options).
 
674
%% @hidden
 
675
centre(This) -> wxWindow:centre(This).
 
676
%% @hidden
 
677
centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
 
678
%% @hidden
 
679
centerOnParent(This) -> wxWindow:centerOnParent(This).
 
680
%% @hidden
 
681
center(This, Options) -> wxWindow:center(This, Options).
 
682
%% @hidden
 
683
center(This) -> wxWindow:center(This).
 
684
%% @hidden
 
685
captureMouse(This) -> wxWindow:captureMouse(This).
 
686
%% @hidden
 
687
cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
 
688
 %% From wxEvtHandler 
 
689
%% @hidden
 
690
disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
 
691
%% @hidden
 
692
disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
 
693
%% @hidden
 
694
disconnect(This) -> wxEvtHandler:disconnect(This).
 
695
%% @hidden
 
696
connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
 
697
%% @hidden
 
698
connect(This,EventType) -> wxEvtHandler:connect(This,EventType).