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/wxJoystickEvent.erl | 55 +++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 18 deletions(-) (limited to 'lib/wx/src/gen/wxJoystickEvent.erl') diff --git a/lib/wx/src/gen/wxJoystickEvent.erl b/lib/wx/src/gen/wxJoystickEvent.erl index 2f149a50f8..979c36cd8c 100644 --- a/lib/wx/src/gen/wxJoystickEvent.erl +++ b/lib/wx/src/gen/wxJoystickEvent.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 @@ -39,19 +39,24 @@ -export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1, resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]). +-export_type([wxJoystickEvent/0]). %% @hidden parent_class(wxEvent) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (This::wxJoystickEvent()) -> bool() +-type wxJoystickEvent() :: wx:wx_object(). %% @equiv buttonDown(This, []) +-spec buttonDown(This) -> boolean() when + This::wxJoystickEvent(). + buttonDown(This) when is_record(This, wx_ref) -> buttonDown(This, []). -%% @spec (This::wxJoystickEvent(), [Option]) -> bool() -%% Option = {but, integer()} %% @doc See external documentation. +-spec buttonDown(This, [Option]) -> boolean() when + This::wxJoystickEvent(), + Option :: {but, integer()}. buttonDown(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxJoystickEvent), @@ -61,15 +66,18 @@ buttonDown(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxJoystickEvent_ButtonDown, <>). -%% @spec (This::wxJoystickEvent()) -> bool() %% @equiv buttonIsDown(This, []) +-spec buttonIsDown(This) -> boolean() when + This::wxJoystickEvent(). + buttonIsDown(This) when is_record(This, wx_ref) -> buttonIsDown(This, []). -%% @spec (This::wxJoystickEvent(), [Option]) -> bool() -%% Option = {but, integer()} %% @doc See external documentation. +-spec buttonIsDown(This, [Option]) -> boolean() when + This::wxJoystickEvent(), + Option :: {but, integer()}. buttonIsDown(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxJoystickEvent), @@ -79,15 +87,18 @@ buttonIsDown(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxJoystickEvent_ButtonIsDown, <>). -%% @spec (This::wxJoystickEvent()) -> bool() %% @equiv buttonUp(This, []) +-spec buttonUp(This) -> boolean() when + This::wxJoystickEvent(). + buttonUp(This) when is_record(This, wx_ref) -> buttonUp(This, []). -%% @spec (This::wxJoystickEvent(), [Option]) -> bool() -%% Option = {but, integer()} %% @doc See external documentation. +-spec buttonUp(This, [Option]) -> boolean() when + This::wxJoystickEvent(), + Option :: {but, integer()}. buttonUp(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxJoystickEvent), @@ -97,57 +108,65 @@ buttonUp(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxJoystickEvent_ButtonUp, <>). -%% @spec (This::wxJoystickEvent()) -> integer() %% @doc See external documentation. +-spec getButtonChange(This) -> integer() when + This::wxJoystickEvent(). getButtonChange(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_GetButtonChange, <>). -%% @spec (This::wxJoystickEvent()) -> integer() %% @doc See external documentation. +-spec getButtonState(This) -> integer() when + This::wxJoystickEvent(). getButtonState(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_GetButtonState, <>). -%% @spec (This::wxJoystickEvent()) -> integer() %% @doc See external documentation. +-spec getJoystick(This) -> integer() when + This::wxJoystickEvent(). getJoystick(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_GetJoystick, <>). -%% @spec (This::wxJoystickEvent()) -> {X::integer(), Y::integer()} %% @doc See external documentation. +-spec getPosition(This) -> {X::integer(), Y::integer()} when + This::wxJoystickEvent(). getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_GetPosition, <>). -%% @spec (This::wxJoystickEvent()) -> integer() %% @doc See external documentation. +-spec getZPosition(This) -> integer() when + This::wxJoystickEvent(). getZPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_GetZPosition, <>). -%% @spec (This::wxJoystickEvent()) -> bool() %% @doc See external documentation. +-spec isButton(This) -> boolean() when + This::wxJoystickEvent(). isButton(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_IsButton, <>). -%% @spec (This::wxJoystickEvent()) -> bool() %% @doc See external documentation. +-spec isMove(This) -> boolean() when + This::wxJoystickEvent(). isMove(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_IsMove, <>). -%% @spec (This::wxJoystickEvent()) -> bool() %% @doc See external documentation. +-spec isZMove(This) -> boolean() when + This::wxJoystickEvent(). isZMove(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxJoystickEvent), wxe_util:call(?wxJoystickEvent_IsZMove, -- cgit v1.2.3