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/wxListItem.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/wx/src/gen/wxListItem.erl') diff --git a/lib/wx/src/gen/wxListItem.erl b/lib/wx/src/gen/wxListItem.erl index f5662f8942..787d686135 100644 --- a/lib/wx/src/gen/wxListItem.erl +++ b/lib/wx/src/gen/wxListItem.erl @@ -70,7 +70,7 @@ getAlign(#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::wxListItem(). getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxListItem), @@ -126,7 +126,7 @@ getState(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getText(This) -> string() when +-spec getText(This) -> unicode:charlist() when This::wxListItem(). getText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxListItem), @@ -134,7 +134,7 @@ getText(#wx_ref{type=ThisT,ref=ThisRef}) -> <>). %% @doc See external documentation. --spec getTextColour(This) -> wx:wx_colour() when +-spec getTextColour(This) -> wx:wx_colour4() when This::wxListItem(). getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxListItem), @@ -233,7 +233,7 @@ setStateMask(#wx_ref{type=ThisT,ref=ThisRef},StateMask) %% @doc See external documentation. -spec setText(This, Text) -> ok when - This::wxListItem(), Text::string(). + This::wxListItem(), Text::unicode:chardata(). setText(#wx_ref{type=ThisT,ref=ThisRef},Text) when is_list(Text) -> ?CLASS(ThisT,wxListItem), @@ -260,7 +260,7 @@ setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width) <>). %% @doc Destroys this object, do not use object again --spec destroy(This::wxListItem) -> ok. +-spec destroy(This::wxListItem()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxListItem), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3