diff options
Diffstat (limited to 'lib/wx/src/gen/wxColourData.erl')
-rw-r--r-- | lib/wx/src/gen/wxColourData.erl | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/lib/wx/src/gen/wxColourData.erl b/lib/wx/src/gen/wxColourData.erl index dc77ea043c..01b73a59f0 100644 --- a/lib/wx/src/gen/wxColourData.erl +++ b/lib/wx/src/gen/wxColourData.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 @@ -30,70 +30,79 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxColourData/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxColourData() +-type wxColourData() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatawxcolourdata">external documentation</a>. +-spec new() -> wxColourData(). new() -> wxe_util:construct(?wxColourData_new_0, <<>>). -%% @spec (Data::wxColourData()) -> wxColourData() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatawxcolourdata">external documentation</a>. +-spec new(Data) -> wxColourData() when + Data::wxColourData(). new(#wx_ref{type=DataT,ref=DataRef}) -> ?CLASS(DataT,wxColourData), wxe_util:construct(?wxColourData_new_1, <<DataRef:32/?UI>>). -%% @spec (This::wxColourData()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatagetchoosefull">external documentation</a>. +-spec getChooseFull(This) -> boolean() when + This::wxColourData(). getChooseFull(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxColourData), wxe_util:call(?wxColourData_GetChooseFull, <<ThisRef:32/?UI>>). -%% @spec (This::wxColourData()) -> wx:colour() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatagetcolour">external documentation</a>. +-spec getColour(This) -> wx:wx_colour() when + This::wxColourData(). getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxColourData), wxe_util:call(?wxColourData_GetColour, <<ThisRef:32/?UI>>). -%% @spec (This::wxColourData(), I::integer()) -> wx:colour() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatagetcustomcolour">external documentation</a>. +-spec getCustomColour(This, I) -> wx:wx_colour() when + This::wxColourData(), I::integer(). getCustomColour(#wx_ref{type=ThisT,ref=ThisRef},I) when is_integer(I) -> ?CLASS(ThisT,wxColourData), wxe_util:call(?wxColourData_GetCustomColour, <<ThisRef:32/?UI,I:32/?UI>>). -%% @spec (This::wxColourData(), Flag::bool()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatasetchoosefull">external documentation</a>. +-spec setChooseFull(This, Flag) -> ok when + This::wxColourData(), Flag::boolean(). setChooseFull(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_boolean(Flag) -> ?CLASS(ThisT,wxColourData), wxe_util:cast(?wxColourData_SetChooseFull, <<ThisRef:32/?UI,(wxe_util:from_bool(Flag)):32/?UI>>). -%% @spec (This::wxColourData(), Colour::wx:colour()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatasetcolour">external documentation</a>. +-spec setColour(This, Colour) -> ok when + This::wxColourData(), Colour::wx:wx_colour(). setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxColourData), wxe_util:cast(?wxColourData_SetColour, <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>). -%% @spec (This::wxColourData(), I::integer(), Colour::wx:colour()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxcolourdata.html#wxcolourdatasetcustomcolour">external documentation</a>. +-spec setCustomColour(This, I, Colour) -> ok when + This::wxColourData(), I::integer(), Colour::wx:wx_colour(). setCustomColour(#wx_ref{type=ThisT,ref=ThisRef},I,Colour) when is_integer(I),tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxColourData), wxe_util:cast(?wxColourData_SetCustomColour, <<ThisRef:32/?UI,I:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>). -%% @spec (This::wxColourData()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxColourData) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxColourData), wxe_util:destroy(?DESTROY_OBJECT,Obj), |