diff options
author | Dan Gudmundsson <[email protected]> | 2012-02-16 11:04:18 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-02-16 15:52:18 +0100 |
commit | a181c06152a3c935fdf63659322020fb7625b577 (patch) | |
tree | 355dbc1f9d76f2dc900142deeb48d2dfda652a2e /lib/wx/src/gen/wxAuiManagerEvent.erl | |
parent | f4060823a4141740608ab1efbdf1072fec436076 (diff) | |
download | otp-a181c06152a3c935fdf63659322020fb7625b577.tar.gz otp-a181c06152a3c935fdf63659322020fb7625b577.tar.bz2 otp-a181c06152a3c935fdf63659322020fb7625b577.zip |
[wx] Generated types for all wx classes
Diffstat (limited to 'lib/wx/src/gen/wxAuiManagerEvent.erl')
-rw-r--r-- | lib/wx/src/gen/wxAuiManagerEvent.erl | 46 |
1 files changed, 31 insertions, 15 deletions
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 <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetmanager">external documentation</a>. +-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, <<ThisRef:32/?UI,MgrRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent()) -> wxAuiManager:wxAuiManager() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetmanager">external documentation</a>. +-spec getManager(This) -> wxAuiManager:wxAuiManager() when + This::wxAuiManagerEvent(). getManager(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetManager, <<ThisRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent(), P::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetpane">external documentation</a>. +-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, <<ThisRef:32/?UI,PRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent()) -> wxAuiPaneInfo:wxAuiPaneInfo() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetpane">external documentation</a>. +-spec getPane(This) -> wxAuiPaneInfo:wxAuiPaneInfo() when + This::wxAuiManagerEvent(). getPane(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetPane, <<ThisRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent(), B::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetbutton">external documentation</a>. +-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, <<ThisRef:32/?UI,B:32/?UI>>). -%% @spec (This::wxAuiManagerEvent()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetbutton">external documentation</a>. +-spec getButton(This) -> integer() when + This::wxAuiManagerEvent(). getButton(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetButton, <<ThisRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent(), Pdc::wxDC:wxDC()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetdc">external documentation</a>. +-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, <<ThisRef:32/?UI,PdcRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent()) -> wxDC:wxDC() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetdc">external documentation</a>. +-spec getDC(This) -> wxDC:wxDC() when + This::wxAuiManagerEvent(). getDC(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetDC, <<ThisRef:32/?UI>>). -%% @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 <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventveto">external documentation</a>. +-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, <<ThisRef:32/?UI, 0:32,BinOpt/binary>>). -%% @spec (This::wxAuiManagerEvent()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetveto">external documentation</a>. +-spec getVeto(This) -> boolean() when + This::wxAuiManagerEvent(). getVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_GetVeto, <<ThisRef:32/?UI>>). -%% @spec (This::wxAuiManagerEvent(), Can_veto::bool()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetcanveto">external documentation</a>. +-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, <<ThisRef:32/?UI,(wxe_util:from_bool(Can_veto)):32/?UI>>). -%% @spec (This::wxAuiManagerEvent()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventcanveto">external documentation</a>. +-spec canVeto(This) -> boolean() when + This::wxAuiManagerEvent(). canVeto(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxAuiManagerEvent), wxe_util:call(?wxAuiManagerEvent_CanVeto, |