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/wxFindReplaceData.erl | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'lib/wx/src/gen/wxFindReplaceData.erl') diff --git a/lib/wx/src/gen/wxFindReplaceData.erl b/lib/wx/src/gen/wxFindReplaceData.erl index 52eafa8398..fbc207b758 100644 --- a/lib/wx/src/gen/wxFindReplaceData.erl +++ b/lib/wx/src/gen/wxFindReplaceData.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,53 +30,61 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxFindReplaceData/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxFindReplaceData() +-type wxFindReplaceData() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxFindReplaceData(). new() -> wxe_util:construct(?wxFindReplaceData_new_0, <<>>). -%% @spec (Flags::integer()) -> wxFindReplaceData() %% @doc See external documentation. +-spec new(Flags) -> wxFindReplaceData() when + Flags::integer(). new(Flags) when is_integer(Flags) -> wxe_util:construct(?wxFindReplaceData_new_1, <>). -%% @spec (This::wxFindReplaceData()) -> string() %% @doc See external documentation. +-spec getFindString(This) -> string() when + This::wxFindReplaceData(). getFindString(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxFindReplaceData), wxe_util:call(?wxFindReplaceData_GetFindString, <>). -%% @spec (This::wxFindReplaceData()) -> string() %% @doc See external documentation. +-spec getReplaceString(This) -> string() when + This::wxFindReplaceData(). getReplaceString(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxFindReplaceData), wxe_util:call(?wxFindReplaceData_GetReplaceString, <>). -%% @spec (This::wxFindReplaceData()) -> integer() %% @doc See external documentation. +-spec getFlags(This) -> integer() when + This::wxFindReplaceData(). getFlags(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxFindReplaceData), wxe_util:call(?wxFindReplaceData_GetFlags, <>). -%% @spec (This::wxFindReplaceData(), Flags::integer()) -> ok %% @doc See external documentation. +-spec setFlags(This, Flags) -> ok when + This::wxFindReplaceData(), Flags::integer(). setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) when is_integer(Flags) -> ?CLASS(ThisT,wxFindReplaceData), wxe_util:cast(?wxFindReplaceData_SetFlags, <>). -%% @spec (This::wxFindReplaceData(), Str::string()) -> ok %% @doc See external documentation. +-spec setFindString(This, Str) -> ok when + This::wxFindReplaceData(), Str::string(). setFindString(#wx_ref{type=ThisT,ref=ThisRef},Str) when is_list(Str) -> ?CLASS(ThisT,wxFindReplaceData), @@ -84,8 +92,9 @@ setFindString(#wx_ref{type=ThisT,ref=ThisRef},Str) wxe_util:cast(?wxFindReplaceData_SetFindString, <>). -%% @spec (This::wxFindReplaceData(), Str::string()) -> ok %% @doc See external documentation. +-spec setReplaceString(This, Str) -> ok when + This::wxFindReplaceData(), Str::string(). setReplaceString(#wx_ref{type=ThisT,ref=ThisRef},Str) when is_list(Str) -> ?CLASS(ThisT,wxFindReplaceData), @@ -93,8 +102,8 @@ setReplaceString(#wx_ref{type=ThisT,ref=ThisRef},Str) wxe_util:cast(?wxFindReplaceData_SetReplaceString, <>). -%% @spec (This::wxFindReplaceData()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxFindReplaceData) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxFindReplaceData), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3 From 217343d158afe60a5a6a15e8b894b6fd62611ad3 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Tue, 21 Feb 2012 16:05:37 +0100 Subject: [wx] Fix spec errors --- lib/wx/src/gen/wxFindReplaceData.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/wx/src/gen/wxFindReplaceData.erl') diff --git a/lib/wx/src/gen/wxFindReplaceData.erl b/lib/wx/src/gen/wxFindReplaceData.erl index fbc207b758..8dc6036da6 100644 --- a/lib/wx/src/gen/wxFindReplaceData.erl +++ b/lib/wx/src/gen/wxFindReplaceData.erl @@ -50,7 +50,7 @@ new(Flags) <>). %% @doc See external documentation. --spec getFindString(This) -> string() when +-spec getFindString(This) -> unicode:charlist() when This::wxFindReplaceData(). getFindString(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxFindReplaceData), @@ -58,7 +58,7 @@ getFindString(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getReplaceString(This) -> string() when +-spec getReplaceString(This) -> unicode:charlist() when This::wxFindReplaceData(). getReplaceString(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxFindReplaceData), @@ -84,7 +84,7 @@ setFlags(#wx_ref{type=ThisT,ref=ThisRef},Flags) %% @doc See external documentation. -spec setFindString(This, Str) -> ok when - This::wxFindReplaceData(), Str::string(). + This::wxFindReplaceData(), Str::unicode:chardata(). setFindString(#wx_ref{type=ThisT,ref=ThisRef},Str) when is_list(Str) -> ?CLASS(ThisT,wxFindReplaceData), @@ -94,7 +94,7 @@ setFindString(#wx_ref{type=ThisT,ref=ThisRef},Str) %% @doc See external documentation. -spec setReplaceString(This, Str) -> ok when - This::wxFindReplaceData(), Str::string(). + This::wxFindReplaceData(), Str::unicode:chardata(). setReplaceString(#wx_ref{type=ThisT,ref=ThisRef},Str) when is_list(Str) -> ?CLASS(ThisT,wxFindReplaceData), @@ -103,7 +103,7 @@ setReplaceString(#wx_ref{type=ThisT,ref=ThisRef},Str) <>). %% @doc Destroys this object, do not use object again --spec destroy(This::wxFindReplaceData) -> ok. +-spec destroy(This::wxFindReplaceData()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxFindReplaceData), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3