diff options
author | Dan Gudmundsson <[email protected]> | 2012-02-28 12:21:15 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-02-28 12:21:15 +0100 |
commit | 77426493dc04593cc00c166e6fb17dd5fc985255 (patch) | |
tree | 868060b6e16d4e9f6a347202ac1ba9c78761f404 /lib/wx/src/gen/wxPen.erl | |
parent | 6510ee4abddbecf10b41d0474a35af1e780ea5be (diff) | |
parent | 6628dbe4ba097a5abed4ca7439a5b515adb0f556 (diff) | |
download | otp-77426493dc04593cc00c166e6fb17dd5fc985255.tar.gz otp-77426493dc04593cc00c166e6fb17dd5fc985255.tar.bz2 otp-77426493dc04593cc00c166e6fb17dd5fc985255.zip |
Merge branch 'dgud/wx/misc-improvements/OTP-9947' into maint
* dgud/wx/misc-improvements/OTP-9947:
[wx] Add simple taskbaricon test
[wx] Add missing stc function
[wx] Add wxTaskBarIcon class
[wx] Doc overloaded functions
[wx] Fix spec errors
[wx] Fix api bugs in wxDC
[wx] Fix wxGraphicContext bugs
[wx] Remove redundant erts version check
[wx] Generated types for all wx classes
[wx] Generate GL api from latest version
[wx] Cleanup Makefiles
Diffstat (limited to 'lib/wx/src/gen/wxPen.erl')
-rw-r--r-- | lib/wx/src/gen/wxPen.erl | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/lib/wx/src/gen/wxPen.erl b/lib/wx/src/gen/wxPen.erl index ada95b0ee3..8b8aafddba 100644 --- a/lib/wx/src/gen/wxPen.erl +++ b/lib/wx/src/gen/wxPen.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 @@ -31,24 +31,30 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxPen/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxPen() +-type wxPen() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpenwxpen">external documentation</a>. +-spec new() -> wxPen(). new() -> wxe_util:construct(?wxPen_new_0, <<>>). -%% @spec (Colour::wx:colour()) -> wxPen() %% @equiv new(Colour, []) +-spec new(Colour) -> wxPen() when + Colour::wx:wx_colour(). + new(Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> new(Colour, []). -%% @spec (Colour::wx:colour(), [Option]) -> wxPen() -%% Option = {width, integer()} | {style, integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpenwxpen">external documentation</a>. +-spec new(Colour, [Option]) -> wxPen() when + Colour::wx:wx_colour(), + Option :: {width, integer()} + | {style, integer()}. new(Colour, Options) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4,is_list(Options) -> MOpts = fun({width, Width}, Acc) -> [<<1:32/?UI,Width:32/?UI>>|Acc]; @@ -58,98 +64,110 @@ new(Colour, Options) wxe_util:construct(?wxPen_new_2, <<(wxe_util:colour_bin(Colour)):16/binary, BinOpt/binary>>). -%% @spec (This::wxPen()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetcap">external documentation</a>. +-spec getCap(This) -> integer() when + This::wxPen(). getCap(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPen), wxe_util:call(?wxPen_GetCap, <<ThisRef:32/?UI>>). -%% @spec (This::wxPen()) -> wx:colour() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetcolour">external documentation</a>. +-spec getColour(This) -> wx:wx_colour4() when + This::wxPen(). getColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPen), wxe_util:call(?wxPen_GetColour, <<ThisRef:32/?UI>>). -%% @spec (This::wxPen()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetjoin">external documentation</a>. +-spec getJoin(This) -> integer() when + This::wxPen(). getJoin(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPen), wxe_util:call(?wxPen_GetJoin, <<ThisRef:32/?UI>>). -%% @spec (This::wxPen()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetstyle">external documentation</a>. +-spec getStyle(This) -> integer() when + This::wxPen(). getStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPen), wxe_util:call(?wxPen_GetStyle, <<ThisRef:32/?UI>>). -%% @spec (This::wxPen()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpengetwidth">external documentation</a>. +-spec getWidth(This) -> integer() when + This::wxPen(). getWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPen), wxe_util:call(?wxPen_GetWidth, <<ThisRef:32/?UI>>). -%% @spec (This::wxPen()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpenisok">external documentation</a>. +-spec isOk(This) -> boolean() when + This::wxPen(). isOk(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxPen), wxe_util:call(?wxPen_IsOk, <<ThisRef:32/?UI>>). -%% @spec (This::wxPen(), CapStyle::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcap">external documentation</a>. +-spec setCap(This, CapStyle) -> ok when + This::wxPen(), CapStyle::integer(). setCap(#wx_ref{type=ThisT,ref=ThisRef},CapStyle) when is_integer(CapStyle) -> ?CLASS(ThisT,wxPen), wxe_util:cast(?wxPen_SetCap, <<ThisRef:32/?UI,CapStyle:32/?UI>>). -%% @spec (This::wxPen(), Colour::wx:colour()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcolour">external documentation</a>. +-spec setColour(This, Colour) -> ok when + This::wxPen(), Colour::wx:wx_colour(). setColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxPen), wxe_util:cast(?wxPen_SetColour_1, <<ThisRef:32/?UI,(wxe_util:colour_bin(Colour)):16/binary>>). -%% @spec (This::wxPen(), Red::integer(), Green::integer(), Blue::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcolour">external documentation</a>. +-spec setColour(This, Red, Green, Blue) -> ok when + This::wxPen(), Red::integer(), Green::integer(), Blue::integer(). setColour(#wx_ref{type=ThisT,ref=ThisRef},Red,Green,Blue) when is_integer(Red),is_integer(Green),is_integer(Blue) -> ?CLASS(ThisT,wxPen), wxe_util:cast(?wxPen_SetColour_3, <<ThisRef:32/?UI,Red:32/?UI,Green:32/?UI,Blue:32/?UI>>). -%% @spec (This::wxPen(), JoinStyle::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetjoin">external documentation</a>. +-spec setJoin(This, JoinStyle) -> ok when + This::wxPen(), JoinStyle::integer(). setJoin(#wx_ref{type=ThisT,ref=ThisRef},JoinStyle) when is_integer(JoinStyle) -> ?CLASS(ThisT,wxPen), wxe_util:cast(?wxPen_SetJoin, <<ThisRef:32/?UI,JoinStyle:32/?UI>>). -%% @spec (This::wxPen(), Style::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetstyle">external documentation</a>. +-spec setStyle(This, Style) -> ok when + This::wxPen(), Style::integer(). setStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxPen), wxe_util:cast(?wxPen_SetStyle, <<ThisRef:32/?UI,Style:32/?UI>>). -%% @spec (This::wxPen(), Width::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetwidth">external documentation</a>. +-spec setWidth(This, Width) -> ok when + This::wxPen(), Width::integer(). setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) when is_integer(Width) -> ?CLASS(ThisT,wxPen), wxe_util:cast(?wxPen_SetWidth, <<ThisRef:32/?UI,Width:32/?UI>>). -%% @spec (This::wxPen()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxPen()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxPen), wxe_util:destroy(?DESTROY_OBJECT,Obj), |