aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-07-07 15:13:48 +0200
committerDan Gudmundsson <[email protected]>2011-07-07 15:13:48 +0200
commitf6d661504a1998f3a243731d3fe5769641f80bcc (patch)
tree8063da1b1fc5b146296b7a001e3cbc36d90a4ddb /lib/wx/src
parentac970679c2570947374de24bc69f8721714002f0 (diff)
downloadotp-f6d661504a1998f3a243731d3fe5769641f80bcc.tar.gz
otp-f6d661504a1998f3a243731d3fe5769641f80bcc.tar.bz2
otp-f6d661504a1998f3a243731d3fe5769641f80bcc.zip
Fix documentation and callback options in wxListCtrl:create/3
Diffstat (limited to 'lib/wx/src')
-rw-r--r--lib/wx/src/gen/wxListCtrl.erl37
1 files changed, 26 insertions, 11 deletions
diff --git a/lib/wx/src/gen/wxListCtrl.erl b/lib/wx/src/gen/wxListCtrl.erl
index bf5f4ae20d..5799206b87 100644
--- a/lib/wx/src/gen/wxListCtrl.erl
+++ b/lib/wx/src/gen/wxListCtrl.erl
@@ -29,10 +29,10 @@
-module(wxListCtrl).
-include("wxe.hrl").
--export([ new/0, new/1, new/2 , sortItems/2 ,arrange/1,arrange/2,assignImageList/3,
- clearAll/1,create/2,create/3,deleteAllItems/1,deleteColumn/2,deleteItem/2,
- destroy/1,editLabel/2,ensureVisible/2,findItem/3,findItem/4,getColumn/3,
- getColumnCount/1,getColumnWidth/2,getCountPerPage/1,getEditControl/1,
+-export([ create/2, create/3 , new/0, new/1, new/2 , sortItems/2 ,arrange/1,
+ arrange/2,assignImageList/3,clearAll/1,deleteAllItems/1,deleteColumn/2,
+ deleteItem/2,destroy/1,editLabel/2,ensureVisible/2,findItem/3,findItem/4,
+ getColumn/3,getColumnCount/1,getColumnWidth/2,getCountPerPage/1,getEditControl/1,
getImageList/2,getItem/2,getItemBackgroundColour/2,getItemCount/1,
getItemData/2,getItemFont/2,getItemPosition/3,getItemRect/3,getItemRect/4,
getItemSpacing/1,getItemState/3,getItemText/2,getItemTextColour/2,
@@ -105,14 +105,17 @@ new(Parent)
%% Option = {winid, integer()} |
%% {pos, {X::integer(),Y::integer()}} |
%% {size, {W::integer(),H::integer()}} |
-%% {style, integer()} | {validator, wx:wx()}
-%% {VirtualCallback, Callback::function()}
+%% {style, integer()} |
+%% {validator, wx:wx()} |
+%% {onGetItemText, OnGetItemText} |
+%% {onGetItemAttr, OnGetItemAttr} |
+%% {onGetItemColumnImage, OnGetItemColumnImage}
%%
-%% VirtualCallback = onGetItemText | onGetItemAttr | onGetItemImage | onGetItemColumnImage
-%% Callback = fun OnGetItemText(This, Item, Column) -> wxString() |
-%% fun OnGetItemAttr(This, Item) -> wxListItemAttr() |
-%% fun OnGetItemColumnImage(This, Item, Column) -> integer()
+%% OnGetItemText = (This, Item, Column) -> wxString()
+%% OnGetItemAttr = (This, Item) -> wxListItemAttr()
+%% OnGetItemColumnImage = (This, Item, Column) -> integer()
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlwxlistctrl">external documentation</a>.
+
new(#wx_ref{type=ParentT,ref=ParentRef}, Options)
when is_list(Options)->
?CLASS(ParentT,wxWindow),
@@ -172,6 +175,7 @@ clearAll(#wx_ref{type=ThisT,ref=ThisRef}) ->
wxe_util:cast(?wxListCtrl_ClearAll,
<<ThisRef:32/?UI>>).
+
%% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow()) -> bool()
%% @equiv create(This,Parent, [])
create(This,Parent)
@@ -179,7 +183,18 @@ create(This,Parent)
create(This,Parent, []).
%% @spec (This::wxListCtrl(), Parent::wxWindow:wxWindow(), [Option]) -> bool()
-%% Option = {winid, integer()} | {pos, {X::integer(),Y::integer()}} | {size, {W::integer(),H::integer()}} | {style, integer()} | {validator, wx:wx()}
+%% Option = {winid, integer()} |
+%% {pos, {X::integer(),Y::integer()}} |
+%% {size, {W::integer(),H::integer()}} |
+%% {style, integer()} |
+%% {validator, wx:wx()} |
+%% {onGetItemText, OnGetItemText} |
+%% {onGetItemAttr, OnGetItemAttr} |
+%% {onGetItemColumnImage, OnGetItemColumnImage}
+%%
+%% OnGetItemText = (This, Item, Column) -> wxString()
+%% OnGetItemAttr = (This, Item) -> wxListItemAttr()
+%% OnGetItemColumnImage = (This, Item, Column) -> integer()
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxlistctrl.html#wxlistctrlcreate">external documentation</a>.
create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options)
when is_list(Options) ->