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/wxHtmlWindow.erl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'lib/wx/src/gen/wxHtmlWindow.erl') diff --git a/lib/wx/src/gen/wxHtmlWindow.erl b/lib/wx/src/gen/wxHtmlWindow.erl index c8237ec31d..4820f7d075 100644 --- a/lib/wx/src/gen/wxHtmlWindow.erl +++ b/lib/wx/src/gen/wxHtmlWindow.erl @@ -123,7 +123,7 @@ new(#wx_ref{type=ParentT,ref=ParentRef}, Options) %% @doc See external documentation. -spec appendToPage(This, Source) -> boolean() when - This::wxHtmlWindow(), Source::string(). + This::wxHtmlWindow(), Source::unicode:chardata(). appendToPage(#wx_ref{type=ThisT,ref=ThisRef},Source) when is_list(Source) -> ?CLASS(ThisT,wxHtmlWindow), @@ -132,7 +132,7 @@ appendToPage(#wx_ref{type=ThisT,ref=ThisRef},Source) <>). %% @doc See external documentation. --spec getOpenedAnchor(This) -> string() when +-spec getOpenedAnchor(This) -> unicode:charlist() when This::wxHtmlWindow(). getOpenedAnchor(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), @@ -140,7 +140,7 @@ getOpenedAnchor(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getOpenedPage(This) -> string() when +-spec getOpenedPage(This) -> unicode:charlist() when This::wxHtmlWindow(). getOpenedPage(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), @@ -148,7 +148,7 @@ getOpenedPage(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getOpenedPageTitle(This) -> string() when +-spec getOpenedPageTitle(This) -> unicode:charlist() when This::wxHtmlWindow(). getOpenedPageTitle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), @@ -205,7 +205,7 @@ historyForward(#wx_ref{type=ThisT,ref=ThisRef}) -> %% @doc See external documentation. -spec loadFile(This, Filename) -> boolean() when - This::wxHtmlWindow(), Filename::string(). + This::wxHtmlWindow(), Filename::unicode:chardata(). loadFile(#wx_ref{type=ThisT,ref=ThisRef},Filename) when is_list(Filename) -> ?CLASS(ThisT,wxHtmlWindow), @@ -215,7 +215,7 @@ loadFile(#wx_ref{type=ThisT,ref=ThisRef},Filename) %% @doc See external documentation. -spec loadPage(This, Location) -> boolean() when - This::wxHtmlWindow(), Location::string(). + This::wxHtmlWindow(), Location::unicode:chardata(). loadPage(#wx_ref{type=ThisT,ref=ThisRef},Location) when is_list(Location) -> ?CLASS(ThisT,wxHtmlWindow), @@ -232,7 +232,7 @@ selectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec selectionToText(This) -> string() when +-spec selectionToText(This) -> unicode:charlist() when This::wxHtmlWindow(). selectionToText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), @@ -268,7 +268,7 @@ setBorders(#wx_ref{type=ThisT,ref=ThisRef},B) %% @equiv setFonts(This,Normal_face,Fixed_face, []) -spec setFonts(This, Normal_face, Fixed_face) -> ok when - This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string(). + This::wxHtmlWindow(), Normal_face::unicode:chardata(), Fixed_face::unicode:chardata(). setFonts(This,Normal_face,Fixed_face) when is_record(This, wx_ref),is_list(Normal_face),is_list(Fixed_face) -> @@ -276,7 +276,7 @@ setFonts(This,Normal_face,Fixed_face) %% @doc See external documentation. -spec setFonts(This, Normal_face, Fixed_face, [Option]) -> ok when - This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string(), + This::wxHtmlWindow(), Normal_face::unicode:chardata(), Fixed_face::unicode:chardata(), Option :: {sizes, integer()}. setFonts(#wx_ref{type=ThisT,ref=ThisRef},Normal_face,Fixed_face, Options) when is_list(Normal_face),is_list(Fixed_face),is_list(Options) -> @@ -291,7 +291,7 @@ setFonts(#wx_ref{type=ThisT,ref=ThisRef},Normal_face,Fixed_face, Options) %% @doc See external documentation. -spec setPage(This, Source) -> boolean() when - This::wxHtmlWindow(), Source::string(). + This::wxHtmlWindow(), Source::unicode:chardata(). setPage(#wx_ref{type=ThisT,ref=ThisRef},Source) when is_list(Source) -> ?CLASS(ThisT,wxHtmlWindow), @@ -301,7 +301,7 @@ setPage(#wx_ref{type=ThisT,ref=ThisRef},Source) %% @doc See external documentation. -spec setRelatedFrame(This, Frame, Format) -> ok when - This::wxHtmlWindow(), Frame::wxFrame:wxFrame(), Format::string(). + This::wxHtmlWindow(), Frame::wxFrame:wxFrame(), Format::unicode:chardata(). setRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef},Format) when is_list(Format) -> ?CLASS(ThisT,wxHtmlWindow), @@ -320,7 +320,7 @@ setRelatedStatusBar(#wx_ref{type=ThisT,ref=ThisRef},Bar) <>). %% @doc See external documentation. --spec toText(This) -> string() when +-spec toText(This) -> unicode:charlist() when This::wxHtmlWindow(). toText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), @@ -328,7 +328,7 @@ toText(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc Destroys this object, do not use object again --spec destroy(This::wxHtmlWindow) -> ok. +-spec destroy(This::wxHtmlWindow()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxHtmlWindow), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3