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/wxSpinButton.erl | 47 +++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 14 deletions(-) (limited to 'lib/wx/src/gen/wxSpinButton.erl') diff --git a/lib/wx/src/gen/wxSpinButton.erl b/lib/wx/src/gen/wxSpinButton.erl index e269dbe329..0e987a0f09 100644 --- a/lib/wx/src/gen/wxSpinButton.erl +++ b/lib/wx/src/gen/wxSpinButton.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 @@ -70,27 +70,35 @@ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1, update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]). +-export_type([wxSpinButton/0]). %% @hidden parent_class(wxControl) -> true; parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxSpinButton() +-type wxSpinButton() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxSpinButton(). new() -> wxe_util:construct(?wxSpinButton_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow()) -> wxSpinButton() %% @equiv new(Parent, []) +-spec new(Parent) -> wxSpinButton() when + Parent::wxWindow:wxWindow(). + new(Parent) when is_record(Parent, wx_ref) -> new(Parent, []). -%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSpinButton() -%% Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec new(Parent, [Option]) -> wxSpinButton() when + Parent::wxWindow:wxWindow(), + Option :: {id, integer()} + | {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. new(#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -103,15 +111,21 @@ new(#wx_ref{type=ParentT,ref=ParentRef}, Options) wxe_util:construct(?wxSpinButton_new_2, <>). -%% @spec (This::wxSpinButton(), Parent::wxWindow:wxWindow()) -> bool() %% @equiv create(This,Parent, []) +-spec create(This, Parent) -> boolean() when + This::wxSpinButton(), Parent::wxWindow:wxWindow(). + create(This,Parent) when is_record(This, wx_ref),is_record(Parent, wx_ref) -> create(This,Parent, []). -%% @spec (This::wxSpinButton(), Parent::wxWindow:wxWindow(), [Option]) -> bool() -%% Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec create(This, Parent, [Option]) -> boolean() when + This::wxSpinButton(), Parent::wxWindow:wxWindow(), + Option :: {id, integer()} + | {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSpinButton), @@ -125,45 +139,50 @@ create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Opti wxe_util:call(?wxSpinButton_Create, <>). -%% @spec (This::wxSpinButton()) -> integer() %% @doc See external documentation. +-spec getMax(This) -> integer() when + This::wxSpinButton(). getMax(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSpinButton), wxe_util:call(?wxSpinButton_GetMax, <>). -%% @spec (This::wxSpinButton()) -> integer() %% @doc See external documentation. +-spec getMin(This) -> integer() when + This::wxSpinButton(). getMin(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSpinButton), wxe_util:call(?wxSpinButton_GetMin, <>). -%% @spec (This::wxSpinButton()) -> integer() %% @doc See external documentation. +-spec getValue(This) -> integer() when + This::wxSpinButton(). getValue(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSpinButton), wxe_util:call(?wxSpinButton_GetValue, <>). -%% @spec (This::wxSpinButton(), MinVal::integer(), MaxVal::integer()) -> ok %% @doc See external documentation. +-spec setRange(This, MinVal, MaxVal) -> ok when + This::wxSpinButton(), MinVal::integer(), MaxVal::integer(). setRange(#wx_ref{type=ThisT,ref=ThisRef},MinVal,MaxVal) when is_integer(MinVal),is_integer(MaxVal) -> ?CLASS(ThisT,wxSpinButton), wxe_util:cast(?wxSpinButton_SetRange, <>). -%% @spec (This::wxSpinButton(), Value::integer()) -> ok %% @doc See external documentation. +-spec setValue(This, Value) -> ok when + This::wxSpinButton(), Value::integer(). setValue(#wx_ref{type=ThisT,ref=ThisRef},Value) when is_integer(Value) -> ?CLASS(ThisT,wxSpinButton), wxe_util:cast(?wxSpinButton_SetValue, <>). -%% @spec (This::wxSpinButton()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxSpinButton) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxSpinButton), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3