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/wxWindow.erl | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'lib/wx/src/gen/wxWindow.erl') diff --git a/lib/wx/src/gen/wxWindow.erl b/lib/wx/src/gen/wxWindow.erl index 9c4d3596fe..ecae29ea5f 100644 --- a/lib/wx/src/gen/wxWindow.erl +++ b/lib/wx/src/gen/wxWindow.erl @@ -327,7 +327,7 @@ findFocus() -> -spec findWindow(This, Winid) -> wxWindow() when This::wxWindow(), Winid::integer(); (This, Name) -> wxWindow() when - This::wxWindow(), Name::string(). + This::wxWindow(), Name::unicode:chardata(). findWindow(#wx_ref{type=ThisT,ref=ThisRef},Winid) when is_integer(Winid) -> ?CLASS(ThisT,wxWindow), @@ -362,7 +362,7 @@ findWindowById(Winid, Options) %% @equiv findWindowByName(Name, []) -spec findWindowByName(Name) -> wxWindow() when - Name::string(). + Name::unicode:chardata(). findWindowByName(Name) when is_list(Name) -> @@ -370,7 +370,7 @@ findWindowByName(Name) %% @doc See external documentation. -spec findWindowByName(Name, [Option]) -> wxWindow() when - Name::string(), + Name::unicode:chardata(), Option :: {parent, wxWindow()}. findWindowByName(Name, Options) when is_list(Name),is_list(Options) -> @@ -383,7 +383,7 @@ findWindowByName(Name, Options) %% @equiv findWindowByLabel(Label, []) -spec findWindowByLabel(Label) -> wxWindow() when - Label::string(). + Label::unicode:chardata(). findWindowByLabel(Label) when is_list(Label) -> @@ -391,7 +391,7 @@ findWindowByLabel(Label) %% @doc See external documentation. -spec findWindowByLabel(Label, [Option]) -> wxWindow() when - Label::string(), + Label::unicode:chardata(), Option :: {parent, wxWindow()}. findWindowByLabel(Label, Options) when is_list(Label),is_list(Options) -> @@ -435,7 +435,7 @@ getAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getBackgroundColour(This) -> wx:wx_colour() when +-spec getBackgroundColour(This) -> wx:wx_colour4() when This::wxWindow(). getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), @@ -554,7 +554,7 @@ getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getForegroundColour(This) -> wx:wx_colour() when +-spec getForegroundColour(This) -> wx:wx_colour4() when This::wxWindow(). getForegroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), @@ -578,7 +578,7 @@ getHandle(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getHelpText(This) -> string() when +-spec getHelpText(This) -> unicode:charlist() when This::wxWindow(). getHelpText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), @@ -594,7 +594,7 @@ getId(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getLabel(This) -> string() when +-spec getLabel(This) -> unicode:charlist() when This::wxWindow(). getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), @@ -618,7 +618,7 @@ getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getName(This) -> string() when +-spec getName(This) -> unicode:charlist() when This::wxWindow(). getName(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), @@ -711,7 +711,7 @@ getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> %% @equiv getTextExtent(This,String, []) -spec getTextExtent(This, String) -> Result when Result ::{X::integer(), Y::integer(), Descent::integer(), ExternalLeading::integer()}, - This::wxWindow(), String::string(). + This::wxWindow(), String::unicode:chardata(). getTextExtent(This,String) when is_record(This, wx_ref),is_list(String) -> @@ -720,7 +720,7 @@ getTextExtent(This,String) %% @doc See external documentation. -spec getTextExtent(This, String, [Option]) -> Result when Result :: {X::integer(), Y::integer(), Descent::integer(), ExternalLeading::integer()}, - This::wxWindow(), String::string(), + This::wxWindow(), String::unicode:chardata(), Option :: {theFont, wxFont:wxFont()}. getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String, Options) when is_list(String),is_list(Options) -> @@ -1419,7 +1419,7 @@ setForegroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) %% @doc See external documentation. -spec setHelpText(This, Text) -> ok when - This::wxWindow(), Text::string(). + This::wxWindow(), Text::unicode:chardata(). setHelpText(#wx_ref{type=ThisT,ref=ThisRef},Text) when is_list(Text) -> ?CLASS(ThisT,wxWindow), @@ -1438,7 +1438,7 @@ setId(#wx_ref{type=ThisT,ref=ThisRef},Winid) %% @doc See external documentation. -spec setLabel(This, Label) -> ok when - This::wxWindow(), Label::string(). + This::wxWindow(), Label::unicode:chardata(). setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label) when is_list(Label) -> ?CLASS(ThisT,wxWindow), @@ -1448,7 +1448,7 @@ setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label) %% @doc See external documentation. -spec setName(This, Name) -> ok when - This::wxWindow(), Name::string(). + This::wxWindow(), Name::unicode:chardata(). setName(#wx_ref{type=ThisT,ref=ThisRef},Name) when is_list(Name) -> ?CLASS(ThisT,wxWindow), @@ -1666,7 +1666,7 @@ setThemeEnabled(#wx_ref{type=ThisT,ref=ThisRef},EnableTheme) %% @doc See external documentation. -spec setToolTip(This, Tip) -> ok when - This::wxWindow(), Tip::string(); + This::wxWindow(), Tip::unicode:chardata(); (This, Tip) -> ok when This::wxWindow(), Tip::wxToolTip:wxToolTip(). setToolTip(#wx_ref{type=ThisT,ref=ThisRef},Tip) @@ -1869,7 +1869,7 @@ warpPointer(#wx_ref{type=ThisT,ref=ThisRef},X,Y) <>). %% @doc Destroys this object, do not use object again --spec destroy(This::wxWindow) -> ok. +-spec destroy(This::wxWindow()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxWindow), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3