diff options
Diffstat (limited to 'lib/wx/src/gen/wxGraphicsObject.erl')
-rw-r--r-- | lib/wx/src/gen/wxGraphicsObject.erl | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/wx/src/gen/wxGraphicsObject.erl b/lib/wx/src/gen/wxGraphicsObject.erl index 7e63285b7a..857a398e1f 100644 --- a/lib/wx/src/gen/wxGraphicsObject.erl +++ b/lib/wx/src/gen/wxGraphicsObject.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 @@ -24,25 +24,35 @@ -module(wxGraphicsObject). -include("wxe.hrl"). --export([getRenderer/1,isNull/1]). +-export([destroy/1,getRenderer/1,isNull/1]). %% inherited exports -export([parent_class/1]). +-export_type([wxGraphicsObject/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (This::wxGraphicsObject()) -> wxGraphicsRenderer:wxGraphicsRenderer() +-type wxGraphicsObject() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsobject.html#wxgraphicsobjectgetrenderer">external documentation</a>. +-spec getRenderer(This) -> wxGraphicsRenderer:wxGraphicsRenderer() when + This::wxGraphicsObject(). getRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsObject), wxe_util:call(?wxGraphicsObject_GetRenderer, <<ThisRef:32/?UI>>). -%% @spec (This::wxGraphicsObject()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgraphicsobject.html#wxgraphicsobjectisnull">external documentation</a>. +-spec isNull(This) -> boolean() when + This::wxGraphicsObject(). isNull(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsObject), wxe_util:call(?wxGraphicsObject_IsNull, <<ThisRef:32/?UI>>). +%% @doc Destroys this object, do not use object again +-spec destroy(This::wxGraphicsObject()) -> ok. +destroy(Obj=#wx_ref{type=Type}) -> + ?CLASS(Type,wxGraphicsObject), + wxe_util:destroy(?DESTROY_OBJECT,Obj), + ok. |