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/wxAuiManagerEvent.erl | 46 ++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 15 deletions(-) (limited to 'lib/wx/src/gen/wxAuiManagerEvent.erl') diff --git a/lib/wx/src/gen/wxAuiManagerEvent.erl b/lib/wx/src/gen/wxAuiManagerEvent.erl index b5e45f1860..feb3931696 100644 --- a/lib/wx/src/gen/wxAuiManagerEvent.erl +++ b/lib/wx/src/gen/wxAuiManagerEvent.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2009-2010. All Rights Reserved. +%% Copyright Ericsson AB 2009-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 @@ -38,79 +38,92 @@ -export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1, resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]). +-export_type([wxAuiManagerEvent/0]). %% @hidden parent_class(wxEvent) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (This::wxAuiManagerEvent(), Mgr::wxAuiManager:wxAuiManager()) -> ok +-type wxAuiManagerEvent() :: wx:wx_object(). %% @doc See external documentation. +-spec setManager(This, Mgr) -> ok when + This::wxAuiManagerEvent(), Mgr::wxAuiManager:wxAuiManager(). setManager(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MgrT,ref=MgrRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), ?CLASS(MgrT,wxAuiManager), wxe_util:cast(?wxAuiManagerEvent_SetManager, <>). -%% @spec (This::wxAuiManagerEvent()) -> wxAuiManager:wxAuiManager() %% @doc See external documentation. +-spec getManager(This) -> wxAuiManager:wxAuiManager() when + This::wxAuiManagerEvent(). getManager(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetManager, <>). -%% @spec (This::wxAuiManagerEvent(), P::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok %% @doc See external documentation. +-spec setPane(This, P) -> ok when + This::wxAuiManagerEvent(), P::wxAuiPaneInfo:wxAuiPaneInfo(). setPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PT,ref=PRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), ?CLASS(PT,wxAuiPaneInfo), wxe_util:cast(?wxAuiManagerEvent_SetPane, <>). -%% @spec (This::wxAuiManagerEvent()) -> wxAuiPaneInfo:wxAuiPaneInfo() %% @doc See external documentation. +-spec getPane(This) -> wxAuiPaneInfo:wxAuiPaneInfo() when + This::wxAuiManagerEvent(). getPane(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetPane, <>). -%% @spec (This::wxAuiManagerEvent(), B::integer()) -> ok %% @doc See external documentation. +-spec setButton(This, B) -> ok when + This::wxAuiManagerEvent(), B::integer(). setButton(#wx_ref{type=ThisT,ref=ThisRef},B) when is_integer(B) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:cast(?wxAuiManagerEvent_SetButton, <>). -%% @spec (This::wxAuiManagerEvent()) -> integer() %% @doc See external documentation. +-spec getButton(This) -> integer() when + This::wxAuiManagerEvent(). getButton(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetButton, <>). -%% @spec (This::wxAuiManagerEvent(), Pdc::wxDC:wxDC()) -> ok %% @doc See external documentation. +-spec setDC(This, Pdc) -> ok when + This::wxAuiManagerEvent(), Pdc::wxDC:wxDC(). setDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PdcT,ref=PdcRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), ?CLASS(PdcT,wxDC), wxe_util:cast(?wxAuiManagerEvent_SetDC, <>). -%% @spec (This::wxAuiManagerEvent()) -> wxDC:wxDC() %% @doc See external documentation. +-spec getDC(This) -> wxDC:wxDC() when + This::wxAuiManagerEvent(). getDC(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetDC, <>). -%% @spec (This::wxAuiManagerEvent()) -> ok %% @equiv veto(This, []) +-spec veto(This) -> ok when + This::wxAuiManagerEvent(). + veto(This) when is_record(This, wx_ref) -> veto(This, []). -%% @spec (This::wxAuiManagerEvent(), [Option]) -> ok -%% Option = {veto, bool()} %% @doc See external documentation. +-spec veto(This, [Option]) -> ok when + This::wxAuiManagerEvent(), + Option :: {veto, boolean()}. veto(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxAuiManagerEvent), @@ -120,23 +133,26 @@ veto(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxAuiManagerEvent_Veto, <>). -%% @spec (This::wxAuiManagerEvent()) -> bool() %% @doc See external documentation. +-spec getVeto(This) -> boolean() when + This::wxAuiManagerEvent(). getVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetVeto, <>). -%% @spec (This::wxAuiManagerEvent(), Can_veto::bool()) -> ok %% @doc See external documentation. +-spec setCanVeto(This, Can_veto) -> ok when + This::wxAuiManagerEvent(), Can_veto::boolean(). setCanVeto(#wx_ref{type=ThisT,ref=ThisRef},Can_veto) when is_boolean(Can_veto) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:cast(?wxAuiManagerEvent_SetCanVeto, <>). -%% @spec (This::wxAuiManagerEvent()) -> bool() %% @doc See external documentation. +-spec canVeto(This) -> boolean() when + This::wxAuiManagerEvent(). canVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_CanVeto, -- cgit v1.2.3