diff options
Diffstat (limited to 'lib/wx/src/gen/wxMirrorDC.erl')
-rw-r--r-- | lib/wx/src/gen/wxMirrorDC.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/wx/src/gen/wxMirrorDC.erl b/lib/wx/src/gen/wxMirrorDC.erl index c218bd7e72..53fa259fb3 100644 --- a/lib/wx/src/gen/wxMirrorDC.erl +++ b/lib/wx/src/gen/wxMirrorDC.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2010. 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 @@ -52,20 +52,23 @@ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2, startPage/1]). +-export_type([wxMirrorDC/0]). %% @hidden parent_class(wxDC) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (Dc::wxDC:wxDC(), Mirror::bool()) -> wxMirrorDC() +-type wxMirrorDC() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmirrordc.html#wxmirrordcwxmirrordc">external documentation</a>. +-spec new(Dc, Mirror) -> wxMirrorDC() when + Dc::wxDC:wxDC(), Mirror::boolean(). new(#wx_ref{type=DcT,ref=DcRef},Mirror) when is_boolean(Mirror) -> ?CLASS(DcT,wxDC), wxe_util:construct(?wxMirrorDC_new, <<DcRef:32/?UI,(wxe_util:from_bool(Mirror)):32/?UI>>). -%% @spec (This::wxMirrorDC()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxMirrorDC) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxMirrorDC), wxe_util:destroy(?DESTROY_OBJECT,Obj), |