diff options
Diffstat (limited to 'lib/wx/src/gen/wxMemoryDC.erl')
-rw-r--r-- | lib/wx/src/gen/wxMemoryDC.erl | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/wx/src/gen/wxMemoryDC.erl b/lib/wx/src/gen/wxMemoryDC.erl index d17ebba4b7..a8e287eb0a 100644 --- a/lib/wx/src/gen/wxMemoryDC.erl +++ b/lib/wx/src/gen/wxMemoryDC.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,18 +52,21 @@ setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2, startPage/1]). +-export_type([wxMemoryDC/0]). %% @hidden parent_class(wxDC) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxMemoryDC() +-type wxMemoryDC() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcwxmemorydc">external documentation</a>. +-spec new() -> wxMemoryDC(). new() -> wxe_util:construct(?wxMemoryDC_new_0, <<>>). -%% @spec (Dc::wxDC:wxDC() | wxBitmap:wxBitmap()) -> wxMemoryDC() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcwxmemorydc">external documentation</a>. +-spec new(Dc) -> wxMemoryDC() when + Dc::wxDC:wxDC() | wxBitmap:wxBitmap(). new(#wx_ref{type=DcT,ref=DcRef}) -> DcOP = case ?CLASS_T(DcT,wxDC) of true -> @@ -74,24 +77,26 @@ new(#wx_ref{type=DcT,ref=DcRef}) -> wxe_util:construct(DcOP, <<DcRef:32/?UI>>). -%% @spec (This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcselectobject">external documentation</a>. +-spec selectObject(This, Bmp) -> ok when + This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap(). selectObject(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) -> ?CLASS(ThisT,wxMemoryDC), ?CLASS(BmpT,wxBitmap), wxe_util:cast(?wxMemoryDC_SelectObject, <<ThisRef:32/?UI,BmpRef:32/?UI>>). -%% @spec (This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxmemorydc.html#wxmemorydcselectobjectassource">external documentation</a>. +-spec selectObjectAsSource(This, Bmp) -> ok when + This::wxMemoryDC(), Bmp::wxBitmap:wxBitmap(). selectObjectAsSource(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef}) -> ?CLASS(ThisT,wxMemoryDC), ?CLASS(BmpT,wxBitmap), wxe_util:cast(?wxMemoryDC_SelectObjectAsSource, <<ThisRef:32/?UI,BmpRef:32/?UI>>). -%% @spec (This::wxMemoryDC()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxMemoryDC) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxMemoryDC), wxe_util:destroy(?DESTROY_OBJECT,Obj), |