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/wxClipboard.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/wxClipboard.erl')
-rw-r--r-- | lib/wx/src/gen/wxClipboard.erl | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/lib/wx/src/gen/wxClipboard.erl b/lib/wx/src/gen/wxClipboard.erl index 7ae27b3133..8f1d59f603 100644 --- a/lib/wx/src/gen/wxClipboard.erl +++ b/lib/wx/src/gen/wxClipboard.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,83 +30,96 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxClipboard/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxClipboard() +-type wxClipboard() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardwxclipboard">external documentation</a>. +-spec new() -> wxClipboard(). new() -> wxe_util:construct(?wxClipboard_new, <<>>). -%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardadddata">external documentation</a>. +-spec addData(This, Data) -> boolean() when + This::wxClipboard(), Data::wxDataObject:wxDataObject(). addData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> ?CLASS(ThisT,wxClipboard), ?CLASS(DataT,wxDataObject), wxe_util:call(?wxClipboard_AddData, <<ThisRef:32/?UI,DataRef:32/?UI>>). -%% @spec (This::wxClipboard()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardclear">external documentation</a>. +-spec clear(This) -> ok when + This::wxClipboard(). clear(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:cast(?wxClipboard_Clear, <<ThisRef:32/?UI>>). -%% @spec (This::wxClipboard()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardclose">external documentation</a>. +-spec close(This) -> ok when + This::wxClipboard(). close(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:cast(?wxClipboard_Close, <<ThisRef:32/?UI>>). -%% @spec (This::wxClipboard()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardflush">external documentation</a>. +-spec flush(This) -> boolean() when + This::wxClipboard(). flush(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_Flush, <<ThisRef:32/?UI>>). -%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardgetdata">external documentation</a>. +-spec getData(This, Data) -> boolean() when + This::wxClipboard(), Data::wxDataObject:wxDataObject(). getData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> ?CLASS(ThisT,wxClipboard), ?CLASS(DataT,wxDataObject), wxe_util:call(?wxClipboard_GetData, <<ThisRef:32/?UI,DataRef:32/?UI>>). -%% @spec (This::wxClipboard()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardisopened">external documentation</a>. +-spec isOpened(This) -> boolean() when + This::wxClipboard(). isOpened(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_IsOpened, <<ThisRef:32/?UI>>). -%% @spec (This::wxClipboard()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardopen">external documentation</a>. +-spec open(This) -> boolean() when + This::wxClipboard(). open(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_Open, <<ThisRef:32/?UI>>). -%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardsetdata">external documentation</a>. +-spec setData(This, Data) -> boolean() when + This::wxClipboard(), Data::wxDataObject:wxDataObject(). setData(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DataT,ref=DataRef}) -> ?CLASS(ThisT,wxClipboard), ?CLASS(DataT,wxDataObject), wxe_util:call(?wxClipboard_SetData, <<ThisRef:32/?UI,DataRef:32/?UI>>). -%% @spec (This::wxClipboard()) -> ok %% @equiv usePrimarySelection(This, []) +-spec usePrimarySelection(This) -> ok when + This::wxClipboard(). + usePrimarySelection(This) when is_record(This, wx_ref) -> usePrimarySelection(This, []). -%% @spec (This::wxClipboard(), [Option]) -> ok -%% Option = {primary, bool()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboarduseprimaryselection">external documentation</a>. +-spec usePrimarySelection(This, [Option]) -> ok when + This::wxClipboard(), + Option :: {primary, boolean()}. usePrimarySelection(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxClipboard), @@ -116,22 +129,23 @@ usePrimarySelection(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxClipboard_UsePrimarySelection, <<ThisRef:32/?UI, 0:32,BinOpt/binary>>). -%% @spec (This::wxClipboard(), Format::integer()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardissupported">external documentation</a>. +-spec isSupported(This, Format) -> boolean() when + This::wxClipboard(), Format::integer(). isSupported(#wx_ref{type=ThisT,ref=ThisRef},Format) when is_integer(Format) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_IsSupported, <<ThisRef:32/?UI,Format:32/?UI>>). -%% @spec () -> wxClipboard() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxclipboard.html#wxclipboardget">external documentation</a>. +-spec get() -> wxClipboard(). get() -> wxe_util:call(?wxClipboard_Get, <<>>). -%% @spec (This::wxClipboard()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxClipboard()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxClipboard), wxe_util:destroy(?DESTROY_OBJECT,Obj), |