From a181c06152a3c935fdf63659322020fb7625b577 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 11:04:18 +0100 Subject: [wx] Generated types for all wx classes --- lib/wx/src/gen/wxMultiChoiceDialog.erl | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'lib/wx/src/gen/wxMultiChoiceDialog.erl') diff --git a/lib/wx/src/gen/wxMultiChoiceDialog.erl b/lib/wx/src/gen/wxMultiChoiceDialog.erl index 6fae0c4860..7c19a1ca42 100644 --- a/lib/wx/src/gen/wxMultiChoiceDialog.erl +++ b/lib/wx/src/gen/wxMultiChoiceDialog.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2011. All Rights Reserved. +%% Copyright Ericsson AB 2008-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -77,6 +77,7 @@ transferDataFromWindow/1,transferDataToWindow/1,update/1,updateWindowUI/1, updateWindowUI/2,validate/1,warpPointer/3]). +-export_type([wxMultiChoiceDialog/0]). %% @hidden parent_class(wxDialog) -> true; parent_class(wxTopLevelWindow) -> true; @@ -84,21 +85,26 @@ parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxMultiChoiceDialog() +-type wxMultiChoiceDialog() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxMultiChoiceDialog(). new() -> wxe_util:construct(?wxMultiChoiceDialog_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]]) -> wxMultiChoiceDialog() %% @equiv new(Parent,Message,Caption,Choices, []) +-spec new(Parent, Message, Caption, Choices) -> wxMultiChoiceDialog() when + Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]]. + new(Parent,Message,Caption,Choices) when is_record(Parent, wx_ref),is_list(Message),is_list(Caption),is_list(Choices) -> new(Parent,Message,Caption,Choices, []). -%% @spec (Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]], [Option]) -> wxMultiChoiceDialog() -%% Option = {style, integer()} | {pos, {X::integer(), Y::integer()}} %% @doc See external documentation. +-spec new(Parent, Message, Caption, Choices, [Option]) -> wxMultiChoiceDialog() when + Parent::wxWindow:wxWindow(), Message::string(), Caption::string(), Choices::[[string()]], + Option :: {style, integer()} + | {pos, {X::integer(), Y::integer()}}. new(#wx_ref{type=ParentT,ref=ParentRef},Message,Caption,Choices, Options) when is_list(Message),is_list(Caption),is_list(Choices),is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -113,15 +119,17 @@ new(#wx_ref{type=ParentT,ref=ParentRef},Message,Caption,Choices, Options) wxe_util:construct(?wxMultiChoiceDialog_new_5, <>|| UC_Str <- Choices_UCA>>)/binary, 0:(((8- ((4 + lists:sum([byte_size(S)+4||S<-Choices_UCA])) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>). -%% @spec (This::wxMultiChoiceDialog()) -> [integer()] %% @doc See external documentation. +-spec getSelections(This) -> [integer()] when + This::wxMultiChoiceDialog(). getSelections(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMultiChoiceDialog), wxe_util:call(?wxMultiChoiceDialog_GetSelections, <>). -%% @spec (This::wxMultiChoiceDialog(), Selections::[integer()]) -> ok %% @doc See external documentation. +-spec setSelections(This, Selections) -> ok when + This::wxMultiChoiceDialog(), Selections::[integer()]. setSelections(#wx_ref{type=ThisT,ref=ThisRef},Selections) when is_list(Selections) -> ?CLASS(ThisT,wxMultiChoiceDialog), @@ -129,8 +137,8 @@ setSelections(#wx_ref{type=ThisT,ref=ThisRef},Selections) <> || C <- Selections>>)/binary, 0:(((0+length(Selections)) rem 2)*32)>>). -%% @spec (This::wxMultiChoiceDialog()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxMultiChoiceDialog) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxMultiChoiceDialog), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3