aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src/gen/wxSpinCtrl.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-02-21 16:05:37 +0100
committerDan Gudmundsson <[email protected]>2012-02-22 09:41:06 +0100
commit217343d158afe60a5a6a15e8b894b6fd62611ad3 (patch)
treefcc6d24f7fae59e455ffbb0b2931349a63d3c599 /lib/wx/src/gen/wxSpinCtrl.erl
parent2c95eb0c575c95a2cdf3c2eacb562d1a5a8cfe08 (diff)
downloadotp-217343d158afe60a5a6a15e8b894b6fd62611ad3.tar.gz
otp-217343d158afe60a5a6a15e8b894b6fd62611ad3.tar.bz2
otp-217343d158afe60a5a6a15e8b894b6fd62611ad3.zip
[wx] Fix spec errors
Diffstat (limited to 'lib/wx/src/gen/wxSpinCtrl.erl')
-rw-r--r--lib/wx/src/gen/wxSpinCtrl.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wx/src/gen/wxSpinCtrl.erl b/lib/wx/src/gen/wxSpinCtrl.erl
index 5de7619b34..17d7e49a8d 100644
--- a/lib/wx/src/gen/wxSpinCtrl.erl
+++ b/lib/wx/src/gen/wxSpinCtrl.erl
@@ -96,7 +96,7 @@ new(Parent)
-spec new(Parent, [Option]) -> wxSpinCtrl() when
Parent::wxWindow:wxWindow(),
Option :: {id, integer()}
- | {value, string()}
+ | {value, unicode:chardata()}
| {pos, {X::integer(), Y::integer()}}
| {size, {W::integer(), H::integer()}}
| {style, integer()}
@@ -131,7 +131,7 @@ create(This,Parent)
-spec create(This, Parent, [Option]) -> boolean() when
This::wxSpinCtrl(), Parent::wxWindow:wxWindow(),
Option :: {id, integer()}
- | {value, string()}
+ | {value, unicode:chardata()}
| {pos, {X::integer(), Y::integer()}}
| {size, {W::integer(), H::integer()}}
| {style, integer()}
@@ -159,7 +159,7 @@ create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Opti
-spec setValue(This, Value) -> ok when
This::wxSpinCtrl(), Value::integer();
(This, Text) -> ok when
- This::wxSpinCtrl(), Text::string().
+ This::wxSpinCtrl(), Text::unicode:chardata().
setValue(#wx_ref{type=ThisT,ref=ThisRef},Value)
when is_integer(Value) ->
?CLASS(ThisT,wxSpinCtrl),
@@ -215,7 +215,7 @@ getMax(#wx_ref{type=ThisT,ref=ThisRef}) ->
<<ThisRef:32/?UI>>).
%% @doc Destroys this object, do not use object again
--spec destroy(This::wxSpinCtrl) -> ok.
+-spec destroy(This::wxSpinCtrl()) -> ok.
destroy(Obj=#wx_ref{type=Type}) ->
?CLASS(Type,wxSpinCtrl),
wxe_util:destroy(?DESTROY_OBJECT,Obj),