aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_gen_erl.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-03-16 09:38:08 +0100
committerDan Gudmundsson <[email protected]>2012-03-16 09:38:08 +0100
commit37fb668457fd4d98540c8fc08ab3041d9f3f08cf (patch)
treead5aa5e9b14fd8d56af5186aaf8174a12d988169 /lib/wx/api_gen/wx_gen_erl.erl
parent2738f881102a6c291c8fb1f2305677dba57fa87d (diff)
downloadotp-37fb668457fd4d98540c8fc08ab3041d9f3f08cf.tar.gz
otp-37fb668457fd4d98540c8fc08ab3041d9f3f08cf.tar.bz2
otp-37fb668457fd4d98540c8fc08ab3041d9f3f08cf.zip
[wx] Fix listctrl issues
Wrong arguments / return values in: hitTest getItemPosition and getItemRect
Diffstat (limited to 'lib/wx/api_gen/wx_gen_erl.erl')
-rw-r--r--lib/wx/api_gen/wx_gen_erl.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/wx/api_gen/wx_gen_erl.erl b/lib/wx/api_gen/wx_gen_erl.erl
index 1a616ed876..6159b7c4bd 100644
--- a/lib/wx/api_gen/wx_gen_erl.erl
+++ b/lib/wx/api_gen/wx_gen_erl.erl
@@ -1024,12 +1024,13 @@ enum_name(Name) ->
gen_enums_ints() ->
%% open_write("../include/wx.hrl"), opened in gen_event_recs
w("~n%% Hardcoded Records~n", []),
- w("-record(wxMouseState, {x, y, %% integer()~n"
- " leftDown, middleDown, rightDown, %% bool()~n"
- " controlDown, shiftDown, altDown, metaDown, cmdDown %% bool()~n"
+ w("-record(wxMouseState, {x :: integer(), y :: integer(),~n"
+ " leftDown :: boolean(), middleDown :: boolean, rightDown :: boolean, ~n"
+ " controlDown :: boolean(), shiftDown :: boolean(),~n"
+ " altDown :: boolean(), metaDown :: boolean(), cmdDown :: boolean()~n"
" }).~n", []),
w("-record(wxHtmlLinkInfo, {~n"
- " href, target %% unicode:chardata()~n"
+ " href :: unicode:chardata(), target :: unicode:chardata()~n"
" }).~n", []),
w("~n%% Hardcoded Defines~n", []),
Enums = [E || {{enum,_},E = #enum{as_atom=false}} <- get()],