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_wxlistview.html">wxListView</a>.
21
%% <p>This class is derived (and can use functions) from:
22
%% <br />{@link wxControl}
23
%% <br />{@link wxWindow}
24
%% <br />{@link wxEvtHandler}
26
%% @type wxListView(). 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.
32
-export([clearColumnImage/2,focus/2,getFirstSelected/1,getFocusedItem/1,getNextSelected/2,
33
isSelected/2,select/2,select/3,setColumnImage/3]).
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(wxControl) -> true;
75
parent_class(wxWindow) -> true;
76
parent_class(wxEvtHandler) -> true;
77
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
79
%% @spec (This::wxListView(), Col::integer()) -> ok
80
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewclearcolumnimage">external documentation</a>.
81
clearColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Col)
82
when is_integer(Col) ->
83
?CLASS(ThisT,wxListView),
84
wxe_util:cast(?wxListView_ClearColumnImage,
85
<<ThisRef:32/?UI,Col:32/?UI>>).
87
%% @spec (This::wxListView(), Index::integer()) -> ok
88
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewfocus">external documentation</a>.
89
focus(#wx_ref{type=ThisT,ref=ThisRef},Index)
90
when is_integer(Index) ->
91
?CLASS(ThisT,wxListView),
92
wxe_util:cast(?wxListView_Focus,
93
<<ThisRef:32/?UI,Index:32/?UI>>).
95
%% @spec (This::wxListView()) -> integer()
96
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewgetfirstselected">external documentation</a>.
97
getFirstSelected(#wx_ref{type=ThisT,ref=ThisRef}) ->
98
?CLASS(ThisT,wxListView),
99
wxe_util:call(?wxListView_GetFirstSelected,
102
%% @spec (This::wxListView()) -> integer()
103
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewgetfocuseditem">external documentation</a>.
104
getFocusedItem(#wx_ref{type=ThisT,ref=ThisRef}) ->
105
?CLASS(ThisT,wxListView),
106
wxe_util:call(?wxListView_GetFocusedItem,
109
%% @spec (This::wxListView(), Item::integer()) -> integer()
110
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewgetnextselected">external documentation</a>.
111
getNextSelected(#wx_ref{type=ThisT,ref=ThisRef},Item)
112
when is_integer(Item) ->
113
?CLASS(ThisT,wxListView),
114
wxe_util:call(?wxListView_GetNextSelected,
115
<<ThisRef:32/?UI,Item:32/?UI>>).
117
%% @spec (This::wxListView(), Index::integer()) -> bool()
118
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewisselected">external documentation</a>.
119
isSelected(#wx_ref{type=ThisT,ref=ThisRef},Index)
120
when is_integer(Index) ->
121
?CLASS(ThisT,wxListView),
122
wxe_util:call(?wxListView_IsSelected,
123
<<ThisRef:32/?UI,Index:32/?UI>>).
125
%% @spec (This::wxListView(), N::integer()) -> ok
126
%% @equiv select(This,N, [])
128
when is_record(This, wx_ref),is_integer(N) ->
131
%% @spec (This::wxListView(), N::integer(), [Option]) -> ok
132
%% Option = {on, bool()}
133
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewselect">external documentation</a>.
134
select(#wx_ref{type=ThisT,ref=ThisRef},N, Options)
135
when is_integer(N),is_list(Options) ->
136
?CLASS(ThisT,wxListView),
137
MOpts = fun({on, On}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(On)):32/?UI>>|Acc];
138
(BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
139
BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
140
wxe_util:cast(?wxListView_Select,
141
<<ThisRef:32/?UI,N:32/?UI, BinOpt/binary>>).
143
%% @spec (This::wxListView(), Col::integer(), Image::integer()) -> ok
144
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistview.html#wxlistviewsetcolumnimage">external documentation</a>.
145
setColumnImage(#wx_ref{type=ThisT,ref=ThisRef},Col,Image)
146
when is_integer(Col),is_integer(Image) ->
147
?CLASS(ThisT,wxListView),
148
wxe_util:cast(?wxListView_SetColumnImage,
149
<<ThisRef:32/?UI,Col:32/?UI,Image:32/?UI>>).
153
setLabel(This,Label) -> wxControl:setLabel(This,Label).
155
getLabel(This) -> wxControl:getLabel(This).
158
warpPointer(This,X,Y) -> wxWindow:warpPointer(This,X,Y).
160
validate(This) -> wxWindow:validate(This).
162
updateWindowUI(This, Options) -> wxWindow:updateWindowUI(This, Options).
164
updateWindowUI(This) -> wxWindow:updateWindowUI(This).
166
update(This) -> wxWindow:update(This).
168
transferDataToWindow(This) -> wxWindow:transferDataToWindow(This).
170
transferDataFromWindow(This) -> wxWindow:transferDataFromWindow(This).
172
thaw(This) -> wxWindow:thaw(This).
174
show(This, Options) -> wxWindow:show(This, Options).
176
show(This) -> wxWindow:show(This).
178
shouldInheritColours(This) -> wxWindow:shouldInheritColours(This).
180
setWindowVariant(This,Variant) -> wxWindow:setWindowVariant(This,Variant).
182
setWindowStyleFlag(This,Style) -> wxWindow:setWindowStyleFlag(This,Style).
184
setWindowStyle(This,Style) -> wxWindow:setWindowStyle(This,Style).
186
setVirtualSizeHints(This,MinW,MinH, Options) -> wxWindow:setVirtualSizeHints(This,MinW,MinH, Options).
188
setVirtualSizeHints(This,MinW,MinH) -> wxWindow:setVirtualSizeHints(This,MinW,MinH).
190
setVirtualSizeHints(This,MinSize) -> wxWindow:setVirtualSizeHints(This,MinSize).
192
setVirtualSize(This,X,Y) -> wxWindow:setVirtualSize(This,X,Y).
194
setVirtualSize(This,Size) -> wxWindow:setVirtualSize(This,Size).
196
setToolTip(This,Tip) -> wxWindow:setToolTip(This,Tip).
198
setThemeEnabled(This,EnableTheme) -> wxWindow:setThemeEnabled(This,EnableTheme).
200
setSizerAndFit(This,Sizer, Options) -> wxWindow:setSizerAndFit(This,Sizer, Options).
202
setSizerAndFit(This,Sizer) -> wxWindow:setSizerAndFit(This,Sizer).
204
setSizer(This,Sizer, Options) -> wxWindow:setSizer(This,Sizer, Options).
206
setSizer(This,Sizer) -> wxWindow:setSizer(This,Sizer).
208
setSizeHints(This,MinW,MinH, Options) -> wxWindow:setSizeHints(This,MinW,MinH, Options).
210
setSizeHints(This,MinW,MinH) -> wxWindow:setSizeHints(This,MinW,MinH).
212
setSizeHints(This,MinSize) -> wxWindow:setSizeHints(This,MinSize).
214
setSize(This,X,Y,Width,Height, Options) -> wxWindow:setSize(This,X,Y,Width,Height, Options).
216
setSize(This,X,Y,Width,Height) -> wxWindow:setSize(This,X,Y,Width,Height).
218
setSize(This,Width,Height) -> wxWindow:setSize(This,Width,Height).
220
setSize(This,Rect) -> wxWindow:setSize(This,Rect).
222
setScrollPos(This,Orient,Pos, Options) -> wxWindow:setScrollPos(This,Orient,Pos, Options).
224
setScrollPos(This,Orient,Pos) -> wxWindow:setScrollPos(This,Orient,Pos).
226
setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range, Options).
228
setScrollbar(This,Orient,Pos,ThumbVisible,Range) -> wxWindow:setScrollbar(This,Orient,Pos,ThumbVisible,Range).
230
setPalette(This,Pal) -> wxWindow:setPalette(This,Pal).
232
setName(This,Name) -> wxWindow:setName(This,Name).
234
setId(This,Winid) -> wxWindow:setId(This,Winid).
236
setHelpText(This,Text) -> wxWindow:setHelpText(This,Text).
238
setForegroundColour(This,Colour) -> wxWindow:setForegroundColour(This,Colour).
240
setFont(This,Font) -> wxWindow:setFont(This,Font).
242
setFocusFromKbd(This) -> wxWindow:setFocusFromKbd(This).
244
setFocus(This) -> wxWindow:setFocus(This).
246
setExtraStyle(This,ExStyle) -> wxWindow:setExtraStyle(This,ExStyle).
248
setDropTarget(This,DropTarget) -> wxWindow:setDropTarget(This,DropTarget).
250
setOwnForegroundColour(This,Colour) -> wxWindow:setOwnForegroundColour(This,Colour).
252
setOwnFont(This,Font) -> wxWindow:setOwnFont(This,Font).
254
setOwnBackgroundColour(This,Colour) -> wxWindow:setOwnBackgroundColour(This,Colour).
256
setMinSize(This,MinSize) -> wxWindow:setMinSize(This,MinSize).
258
setMaxSize(This,MaxSize) -> wxWindow:setMaxSize(This,MaxSize).
260
setCursor(This,Cursor) -> wxWindow:setCursor(This,Cursor).
262
setContainingSizer(This,Sizer) -> wxWindow:setContainingSizer(This,Sizer).
264
setClientSize(This,Width,Height) -> wxWindow:setClientSize(This,Width,Height).
266
setClientSize(This,Size) -> wxWindow:setClientSize(This,Size).
268
setCaret(This,Caret) -> wxWindow:setCaret(This,Caret).
270
setBackgroundStyle(This,Style) -> wxWindow:setBackgroundStyle(This,Style).
272
setBackgroundColour(This,Colour) -> wxWindow:setBackgroundColour(This,Colour).
274
setAutoLayout(This,AutoLayout) -> wxWindow:setAutoLayout(This,AutoLayout).
276
setAcceleratorTable(This,Accel) -> wxWindow:setAcceleratorTable(This,Accel).
278
scrollWindow(This,Dx,Dy, Options) -> wxWindow:scrollWindow(This,Dx,Dy, Options).
280
scrollWindow(This,Dx,Dy) -> wxWindow:scrollWindow(This,Dx,Dy).
282
scrollPages(This,Pages) -> wxWindow:scrollPages(This,Pages).
284
scrollLines(This,Lines) -> wxWindow:scrollLines(This,Lines).
286
screenToClient(This,Pt) -> wxWindow:screenToClient(This,Pt).
288
screenToClient(This) -> wxWindow:screenToClient(This).
290
reparent(This,NewParent) -> wxWindow:reparent(This,NewParent).
292
removeChild(This,Child) -> wxWindow:removeChild(This,Child).
294
releaseMouse(This) -> wxWindow:releaseMouse(This).
296
refreshRect(This,Rect, Options) -> wxWindow:refreshRect(This,Rect, Options).
298
refreshRect(This,Rect) -> wxWindow:refreshRect(This,Rect).
300
refresh(This, Options) -> wxWindow:refresh(This, Options).
302
refresh(This) -> wxWindow:refresh(This).
304
raise(This) -> wxWindow:raise(This).
306
popupMenu(This,Menu,X,Y) -> wxWindow:popupMenu(This,Menu,X,Y).
308
popupMenu(This,Menu, Options) -> wxWindow:popupMenu(This,Menu, Options).
310
popupMenu(This,Menu) -> wxWindow:popupMenu(This,Menu).
312
popEventHandler(This, Options) -> wxWindow:popEventHandler(This, Options).
314
popEventHandler(This) -> wxWindow:popEventHandler(This).
316
pageUp(This) -> wxWindow:pageUp(This).
318
pageDown(This) -> wxWindow:pageDown(This).
320
navigate(This, Options) -> wxWindow:navigate(This, Options).
322
navigate(This) -> wxWindow:navigate(This).
324
moveBeforeInTabOrder(This,Win) -> wxWindow:moveBeforeInTabOrder(This,Win).
326
moveAfterInTabOrder(This,Win) -> wxWindow:moveAfterInTabOrder(This,Win).
328
move(This,X,Y, Options) -> wxWindow:move(This,X,Y, Options).
330
move(This,X,Y) -> wxWindow:move(This,X,Y).
332
move(This,Pt) -> wxWindow:move(This,Pt).
334
makeModal(This, Options) -> wxWindow:makeModal(This, Options).
336
makeModal(This) -> wxWindow:makeModal(This).
338
lower(This) -> wxWindow:lower(This).
340
lineUp(This) -> wxWindow:lineUp(This).
342
lineDown(This) -> wxWindow:lineDown(This).
344
layout(This) -> wxWindow:layout(This).
346
isTopLevel(This) -> wxWindow:isTopLevel(This).
348
isShown(This) -> wxWindow:isShown(This).
350
isRetained(This) -> wxWindow:isRetained(This).
352
isExposed(This,X,Y,W,H) -> wxWindow:isExposed(This,X,Y,W,H).
354
isExposed(This,X,Y) -> wxWindow:isExposed(This,X,Y).
356
isExposed(This,Pt) -> wxWindow:isExposed(This,Pt).
358
isEnabled(This) -> wxWindow:isEnabled(This).
360
invalidateBestSize(This) -> wxWindow:invalidateBestSize(This).
362
initDialog(This) -> wxWindow:initDialog(This).
364
inheritAttributes(This) -> wxWindow:inheritAttributes(This).
366
hide(This) -> wxWindow:hide(This).
368
hasTransparentBackground(This) -> wxWindow:hasTransparentBackground(This).
370
hasScrollbar(This,Orient) -> wxWindow:hasScrollbar(This,Orient).
372
hasCapture(This) -> wxWindow:hasCapture(This).
374
getWindowVariant(This) -> wxWindow:getWindowVariant(This).
376
getWindowStyleFlag(This) -> wxWindow:getWindowStyleFlag(This).
378
getVirtualSize(This) -> wxWindow:getVirtualSize(This).
380
getUpdateRegion(This) -> wxWindow:getUpdateRegion(This).
382
getToolTip(This) -> wxWindow:getToolTip(This).
384
getTextExtent(This,String, Options) -> wxWindow:getTextExtent(This,String, Options).
386
getTextExtent(This,String) -> wxWindow:getTextExtent(This,String).
388
getSizer(This) -> wxWindow:getSizer(This).
390
getSize(This) -> wxWindow:getSize(This).
392
getScrollThumb(This,Orient) -> wxWindow:getScrollThumb(This,Orient).
394
getScrollRange(This,Orient) -> wxWindow:getScrollRange(This,Orient).
396
getScrollPos(This,Orient) -> wxWindow:getScrollPos(This,Orient).
398
getScreenRect(This) -> wxWindow:getScreenRect(This).
400
getScreenPosition(This) -> wxWindow:getScreenPosition(This).
402
getRect(This) -> wxWindow:getRect(This).
404
getPosition(This) -> wxWindow:getPosition(This).
406
getParent(This) -> wxWindow:getParent(This).
408
getName(This) -> wxWindow:getName(This).
410
getMinSize(This) -> wxWindow:getMinSize(This).
412
getMaxSize(This) -> wxWindow:getMaxSize(This).
414
getId(This) -> wxWindow:getId(This).
416
getHelpText(This) -> wxWindow:getHelpText(This).
418
getHandle(This) -> wxWindow:getHandle(This).
420
getGrandParent(This) -> wxWindow:getGrandParent(This).
422
getForegroundColour(This) -> wxWindow:getForegroundColour(This).
424
getFont(This) -> wxWindow:getFont(This).
426
getExtraStyle(This) -> wxWindow:getExtraStyle(This).
428
getEventHandler(This) -> wxWindow:getEventHandler(This).
430
getDropTarget(This) -> wxWindow:getDropTarget(This).
432
getCursor(This) -> wxWindow:getCursor(This).
434
getContainingSizer(This) -> wxWindow:getContainingSizer(This).
436
getClientSize(This) -> wxWindow:getClientSize(This).
438
getChildren(This) -> wxWindow:getChildren(This).
440
getCharWidth(This) -> wxWindow:getCharWidth(This).
442
getCharHeight(This) -> wxWindow:getCharHeight(This).
444
getCaret(This) -> wxWindow:getCaret(This).
446
getBestSize(This) -> wxWindow:getBestSize(This).
448
getBackgroundStyle(This) -> wxWindow:getBackgroundStyle(This).
450
getBackgroundColour(This) -> wxWindow:getBackgroundColour(This).
452
getAcceleratorTable(This) -> wxWindow:getAcceleratorTable(This).
454
freeze(This) -> wxWindow:freeze(This).
456
fitInside(This) -> wxWindow:fitInside(This).
458
fit(This) -> wxWindow:fit(This).
460
findWindow(This,Winid) -> wxWindow:findWindow(This,Winid).
462
enable(This, Options) -> wxWindow:enable(This, Options).
464
enable(This) -> wxWindow:enable(This).
466
disable(This) -> wxWindow:disable(This).
468
destroyChildren(This) -> wxWindow:destroyChildren(This).
470
convertPixelsToDialog(This,Sz) -> wxWindow:convertPixelsToDialog(This,Sz).
472
convertDialogToPixels(This,Sz) -> wxWindow:convertDialogToPixels(This,Sz).
474
close(This, Options) -> wxWindow:close(This, Options).
476
close(This) -> wxWindow:close(This).
478
clientToScreen(This,X,Y) -> wxWindow:clientToScreen(This,X,Y).
480
clientToScreen(This,Pt) -> wxWindow:clientToScreen(This,Pt).
482
clearBackground(This) -> wxWindow:clearBackground(This).
484
centreOnParent(This, Options) -> wxWindow:centreOnParent(This, Options).
486
centreOnParent(This) -> wxWindow:centreOnParent(This).
488
centre(This, Options) -> wxWindow:centre(This, Options).
490
centre(This) -> wxWindow:centre(This).
492
centerOnParent(This, Options) -> wxWindow:centerOnParent(This, Options).
494
centerOnParent(This) -> wxWindow:centerOnParent(This).
496
center(This, Options) -> wxWindow:center(This, Options).
498
center(This) -> wxWindow:center(This).
500
captureMouse(This) -> wxWindow:captureMouse(This).
502
cacheBestSize(This,Size) -> wxWindow:cacheBestSize(This,Size).
505
disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options).
507
disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType).
509
disconnect(This) -> wxEvtHandler:disconnect(This).
511
connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options).
513
connect(This,EventType) -> wxEvtHandler:connect(This,EventType).