4
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
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/.
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
18
%% This file is generated DO NOT EDIT
20
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html">wxPreviewControlBar</a>.
21
%% <p>This class is derived (and can use functions) from:
22
%% <br />{@link wxPanel}
23
%% <br />{@link wxWindow}
24
%% <br />{@link wxEvtHandler}
26
%% @type wxPreviewControlBar(). 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.
30
-module(wxPreviewControlBar).
32
-export([createButtons/1,destroy/1,getPrintPreview/1,getZoomControl/1,new/3,
33
new/4,setZoomControl/2]).
36
-export([cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1,
37
centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2,
38
clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2,
39
connect/2,connect/3,convertDialogToPixels/2,convertPixelsToDialog/2,
40
destroyChildren/1,disable/1,disconnect/1,disconnect/2,disconnect/3,
41
enable/1,enable/2,findWindow/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1,
42
getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCaret/1,
43
getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1,getContainingSizer/1,
44
getCursor/1,getDropTarget/1,getEventHandler/1,getExtraStyle/1,getFont/1,
45
getForegroundColour/1,getGrandParent/1,getHandle/1,getHelpText/1,
46
getId/1,getLabel/1,getMaxSize/1,getMinSize/1,getName/1,getParent/1,
47
getPosition/1,getRect/1,getScreenPosition/1,getScreenRect/1,getScrollPos/2,
48
getScrollRange/2,getScrollThumb/2,getSize/1,getSizer/1,getTextExtent/2,
49
getTextExtent/3,getToolTip/1,getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,
50
getWindowVariant/1,hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,
51
hide/1,inheritAttributes/1,initDialog/1,invalidateBestSize/1,isEnabled/1,
52
isExposed/2,isExposed/3,isExposed/5,isRetained/1,isShown/1,isTopLevel/1,
53
layout/1,lineDown/1,lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,
54
move/3,move/4,moveAfterInTabOrder/2,moveBeforeInTabOrder/2,navigate/1,
55
navigate/2,pageDown/1,pageUp/1,parent_class/1,popEventHandler/1,popEventHandler/2,
56
popupMenu/2,popupMenu/3,popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,
57
refreshRect/3,releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,
58
screenToClient/2,scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,
59
setAcceleratorTable/2,setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,
60
setCaret/2,setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2,
61
setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2,
62
setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2,
63
setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2,
64
setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6,
65
setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3,
66
setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3,
67
setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3,
68
setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4,
69
setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1,
70
show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1,
71
update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]).
74
parent_class(wxPanel) -> true;
75
parent_class(wxWindow) -> true;
76
parent_class(wxEvtHandler) -> true;
77
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
79
%% @spec (Preview::wxPrintPreview:wxPrintPreview(), Buttons::integer(), Parent::wxWindow:wxWindow()) -> wxPreviewControlBar()
80
%% @equiv new(Preview,Buttons,Parent, [])
81
new(Preview,Buttons,Parent)
82
when is_record(Preview, wx_ref),is_integer(Buttons),is_record(Parent, wx_ref) ->
83
new(Preview,Buttons,Parent, []).
85
%% @spec (Preview::wxPrintPreview:wxPrintPreview(), Buttons::integer(), Parent::wxWindow:wxWindow(), [Option]) -> wxPreviewControlBar()
86
%% Option = {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()}
87
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbarwxpreviewcontrolbar">external documentation</a>.
88
new(#wx_ref{type=PreviewT,ref=PreviewRef},Buttons,#wx_ref{type=ParentT,ref=ParentRef}, Options)
89
when is_integer(Buttons),is_list(Options) ->
90
?CLASS(PreviewT,wxPrintPreview),
91
?CLASS(ParentT,wxWindow),
92
MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc];
93
({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc];
94
({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc];
95
(BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
96
BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
97
wxe_util:construct(?wxPreviewControlBar_new,
98
<<PreviewRef:32/?UI,Buttons:32/?UI,ParentRef:32/?UI, 0:32,BinOpt/binary>>).
100
%% @spec (This::wxPreviewControlBar()) -> ok
101
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbarcreatebuttons">external documentation</a>.
102
createButtons(#wx_ref{type=ThisT,ref=ThisRef}) ->
103
?CLASS(ThisT,wxPreviewControlBar),
104
wxe_util:cast(?wxPreviewControlBar_CreateButtons,
107
%% @spec (This::wxPreviewControlBar()) -> wxPrintPreview:wxPrintPreview()
108
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbargetprintpreview">external documentation</a>.
109
getPrintPreview(#wx_ref{type=ThisT,ref=ThisRef}) ->
110
?CLASS(ThisT,wxPreviewControlBar),
111
wxe_util:call(?wxPreviewControlBar_GetPrintPreview,
114
%% @spec (This::wxPreviewControlBar()) -> integer()
115
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbargetzoomcontrol">external documentation</a>.
116
getZoomControl(#wx_ref{type=ThisT,ref=ThisRef}) ->
117
?CLASS(ThisT,wxPreviewControlBar),
118
wxe_util:call(?wxPreviewControlBar_GetZoomControl,
121
%% @spec (This::wxPreviewControlBar(), Zoom::integer()) -> ok
122
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpreviewcontrolbar.html#wxpreviewcontrolbarsetzoomcontrol">external documentation</a>.
123
setZoomControl(#wx_ref{type=ThisT,ref=ThisRef},Zoom)
124
when is_integer(Zoom) ->
125
?CLASS(ThisT,wxPreviewControlBar),
126
wxe_util:cast(?wxPreviewControlBar_SetZoomControl,
127
<<ThisRef:32/?UI,Zoom:32/?UI>>).
129
%% @spec (This::wxPreviewControlBar()) -> ok
130
%% @doc Destroys this object, do not use object again
131
destroy(Obj=#wx_ref{type=Type}) ->
132
?CLASS(Type,wxPreviewControlBar),
133
wxe_util:destroy(?DESTROY_OBJECT,Obj),
137
initDialog(This) -> wxPanel:initDialog(This).
140
warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
142
validate(This) -> wxWindow:validate(This).
144
updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
146
updateWindowUI(This) -> wxWindow:updateWindowUI(This).
148
update(This) -> wxWindow:update(This).
150
transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
152
transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
154
thaw(This) -> wxWindow:thaw(This).
156
show(This, Options) -> wxWindow:show(This, Options).
158
show(This) -> wxWindow:show(This).
160
shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
162
setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
164
setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
166
setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
168
setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
170
setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
172
setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
174
setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
176
setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
178
setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
180
setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
182
setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
184
setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
186
setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
188
setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
190
setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
192
setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
194
setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
196
setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
198
setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
200
setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
202
setSize(This,Rect) -> wxWindow:setSize(This,Rect).
204
setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
206
setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
208
setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
210
setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
212
setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
214
setName(This,Name) -> wxWindow:setName(This,Name).
216
setLabel(This,Label) -> wxWindow:setLabel(This,Label).
218
setId(This,Winid) -> wxWindow:setId(This,Winid).
220
setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
222
setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
224
setFont(This,Font) -> wxWindow:setFont(This,Font).
226
setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
228
setFocus(This) -> wxWindow:setFocus(This).
230
setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
232
setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
234
setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
236
setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
238
setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
240
setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
242
setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
244
setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
246
setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
248
setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
250
setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
252
setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
254
setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
256
setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
258
setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
260
setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
262
scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
264
scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
266
scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
268
scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
270
screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
272
screenToClient(This) -> wxWindow:screenToClient(This).
274
reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
276
removeChild(This,Child) -> wxWindow:removeChild(This,Child).
278
releaseMouse(This) -> wxWindow:releaseMouse(This).
280
refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
282
refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
284
refresh(This, Options) -> wxWindow:refresh(This, Options).
286
refresh(This) -> wxWindow:refresh(This).
288
raise(This) -> wxWindow:raise(This).
290
popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
292
popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
294
popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
296
popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
298
popEventHandler(This) -> wxWindow:popEventHandler(This).
300
pageUp(This) -> wxWindow:pageUp(This).
302
pageDown(This) -> wxWindow:pageDown(This).
304
navigate(This, Options) -> wxWindow:navigate(This, Options).
306
navigate(This) -> wxWindow:navigate(This).
308
moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
310
moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
312
move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
314
move(This,X,Y) -> wxWindow:move(This,X,Y).
316
move(This,Pt) -> wxWindow:move(This,Pt).
318
makeModal(This, Options) -> wxWindow:makeModal(This, Options).
320
makeModal(This) -> wxWindow:makeModal(This).
322
lower(This) -> wxWindow:lower(This).
324
lineUp(This) -> wxWindow:lineUp(This).
326
lineDown(This) -> wxWindow:lineDown(This).
328
layout(This) -> wxWindow:layout(This).
330
isTopLevel(This) -> wxWindow:isTopLevel(This).
332
isShown(This) -> wxWindow:isShown(This).
334
isRetained(This) -> wxWindow:isRetained(This).
336
isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
338
isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
340
isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
342
isEnabled(This) -> wxWindow:isEnabled(This).
344
invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
346
inheritAttributes(This) -> wxWindow:inheritAttributes(This).
348
hide(This) -> wxWindow:hide(This).
350
hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
352
hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
354
hasCapture(This) -> wxWindow:hasCapture(This).
356
getWindowVariant(This) -> wxWindow:getWindowVariant(This).
358
getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
360
getVirtualSize(This) -> wxWindow:getVirtualSize(This).
362
getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
364
getToolTip(This) -> wxWindow:getToolTip(This).
366
getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
368
getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
370
getSizer(This) -> wxWindow:getSizer(This).
372
getSize(This) -> wxWindow:getSize(This).
374
getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
376
getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
378
getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
380
getScreenRect(This) -> wxWindow:getScreenRect(This).
382
getScreenPosition(This) -> wxWindow:getScreenPosition(This).
384
getRect(This) -> wxWindow:getRect(This).
386
getPosition(This) -> wxWindow:getPosition(This).
388
getParent(This) -> wxWindow:getParent(This).
390
getName(This) -> wxWindow:getName(This).
392
getMinSize(This) -> wxWindow:getMinSize(This).
394
getMaxSize(This) -> wxWindow:getMaxSize(This).
396
getLabel(This) -> wxWindow:getLabel(This).
398
getId(This) -> wxWindow:getId(This).
400
getHelpText(This) -> wxWindow:getHelpText(This).
402
getHandle(This) -> wxWindow:getHandle(This).
404
getGrandParent(This) -> wxWindow:getGrandParent(This).
406
getForegroundColour(This) -> wxWindow:getForegroundColour(This).
408
getFont(This) -> wxWindow:getFont(This).
410
getExtraStyle(This) -> wxWindow:getExtraStyle(This).
412
getEventHandler(This) -> wxWindow:getEventHandler(This).
414
getDropTarget(This) -> wxWindow:getDropTarget(This).
416
getCursor(This) -> wxWindow:getCursor(This).
418
getContainingSizer(This) -> wxWindow:getContainingSizer(This).
420
getClientSize(This) -> wxWindow:getClientSize(This).
422
getChildren(This) -> wxWindow:getChildren(This).
424
getCharWidth(This) -> wxWindow:getCharWidth(This).
426
getCharHeight(This) -> wxWindow:getCharHeight(This).
428
getCaret(This) -> wxWindow:getCaret(This).
430
getBestSize(This) -> wxWindow:getBestSize(This).
432
getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
434
getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
436
getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
438
freeze(This) -> wxWindow:freeze(This).
440
fitInside(This) -> wxWindow:fitInside(This).
442
fit(This) -> wxWindow:fit(This).
444
findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
446
enable(This, Options) -> wxWindow:enable(This, Options).
448
enable(This) -> wxWindow:enable(This).
450
disable(This) -> wxWindow:disable(This).
452
destroyChildren(This) -> wxWindow:destroyChildren(This).
454
convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
456
convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
458
close(This, Options) -> wxWindow:close(This, Options).
460
close(This) -> wxWindow:close(This).
462
clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
464
clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
466
clearBackground(This) -> wxWindow:clearBackground(This).
468
centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
470
centreOnParent(This) -> wxWindow:centreOnParent(This).
472
centre(This, Options) -> wxWindow:centre(This, Options).
474
centre(This) -> wxWindow:centre(This).
476
centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
478
centerOnParent(This) -> wxWindow:centerOnParent(This).
480
center(This, Options) -> wxWindow:center(This, Options).
482
center(This) -> wxWindow:center(This).
484
captureMouse(This) -> wxWindow:captureMouse(This).
486
cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
489
disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
491
disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
493
disconnect(This) -> wxEvtHandler:disconnect(This).
495
connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
497
connect(This,EventType) -> wxEvtHandler:connect(This,EventType).