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/wxArtProvider.erl | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'lib/wx/src/gen/wxArtProvider.erl') diff --git a/lib/wx/src/gen/wxArtProvider.erl b/lib/wx/src/gen/wxArtProvider.erl index 1955bd2e29..584e240879 100644 --- a/lib/wx/src/gen/wxArtProvider.erl +++ b/lib/wx/src/gen/wxArtProvider.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2011. 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 @@ -29,18 +29,24 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxArtProvider/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (Id::string()) -> wxBitmap:wxBitmap() +-type wxArtProvider() :: wx:wx_object(). %% @equiv getBitmap(Id, []) +-spec getBitmap(Id) -> wxBitmap:wxBitmap() when + Id::string(). + getBitmap(Id) when is_list(Id) -> getBitmap(Id, []). -%% @spec (Id::string(), [Option]) -> wxBitmap:wxBitmap() -%% Option = {client, string()} | {size, {W::integer(), H::integer()}} %% @doc See external documentation. +-spec getBitmap(Id, [Option]) -> wxBitmap:wxBitmap() when + Id::string(), + Option :: {client, string()} + | {size, {W::integer(), H::integer()}}. getBitmap(Id, Options) when is_list(Id),is_list(Options) -> Id_UC = unicode:characters_to_binary([Id,0]), @@ -51,15 +57,19 @@ getBitmap(Id, Options) wxe_util:call(?wxArtProvider_GetBitmap, <<(byte_size(Id_UC)):32/?UI,(Id_UC)/binary, 0:(((8- ((4+byte_size(Id_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>). -%% @spec (Id::string()) -> wxIcon:wxIcon() %% @equiv getIcon(Id, []) +-spec getIcon(Id) -> wxIcon:wxIcon() when + Id::string(). + getIcon(Id) when is_list(Id) -> getIcon(Id, []). -%% @spec (Id::string(), [Option]) -> wxIcon:wxIcon() -%% Option = {client, string()} | {size, {W::integer(), H::integer()}} %% @doc See external documentation. +-spec getIcon(Id, [Option]) -> wxIcon:wxIcon() when + Id::string(), + Option :: {client, string()} + | {size, {W::integer(), H::integer()}}. getIcon(Id, Options) when is_list(Id),is_list(Options) -> Id_UC = unicode:characters_to_binary([Id,0]), -- cgit v1.2.3