From a181c06152a3c935fdf63659322020fb7625b577 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 11:04:18 +0100 Subject: [wx] Generated types for all wx classes --- lib/wx/src/gen/wxClipboard.erl | 46 +++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 16 deletions(-) (limited to 'lib/wx/src/gen/wxClipboard.erl') diff --git a/lib/wx/src/gen/wxClipboard.erl b/lib/wx/src/gen/wxClipboard.erl index 7ae27b3133..73f57c681e 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 external documentation. +-spec new() -> wxClipboard(). new() -> wxe_util:construct(?wxClipboard_new, <<>>). -%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() %% @doc See external documentation. +-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, <>). -%% @spec (This::wxClipboard()) -> ok %% @doc See external documentation. +-spec clear(This) -> ok when + This::wxClipboard(). clear(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:cast(?wxClipboard_Clear, <>). -%% @spec (This::wxClipboard()) -> ok %% @doc See external documentation. +-spec close(This) -> ok when + This::wxClipboard(). close(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:cast(?wxClipboard_Close, <>). -%% @spec (This::wxClipboard()) -> bool() %% @doc See external documentation. +-spec flush(This) -> boolean() when + This::wxClipboard(). flush(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_Flush, <>). -%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() %% @doc See external documentation. +-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, <>). -%% @spec (This::wxClipboard()) -> bool() %% @doc See external documentation. +-spec isOpened(This) -> boolean() when + This::wxClipboard(). isOpened(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_IsOpened, <>). -%% @spec (This::wxClipboard()) -> bool() %% @doc See external documentation. +-spec open(This) -> boolean() when + This::wxClipboard(). open(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxClipboard), wxe_util:call(?wxClipboard_Open, <>). -%% @spec (This::wxClipboard(), Data::wxDataObject:wxDataObject()) -> bool() %% @doc See external documentation. +-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, <>). -%% @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 external documentation. +-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, <>). -%% @spec (This::wxClipboard(), Format::integer()) -> bool() %% @doc See external documentation. +-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, <>). -%% @spec () -> wxClipboard() %% @doc See external documentation. +-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), -- cgit v1.2.3