aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src/gen/wxPen.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-12-13 08:54:29 +0100
committerDan Gudmundsson <[email protected]>2013-01-09 11:41:41 +0100
commit204d0bdc0acaf8017372a3b93f54bb846b6be58e (patch)
treed7e83d8ee7a465a1fad978d9cfdecb15e56c223e /lib/wx/src/gen/wxPen.erl
parentad6e421879217ee76d3c7267bcd8234ec33153a1 (diff)
downloadotp-204d0bdc0acaf8017372a3b93f54bb846b6be58e.tar.gz
otp-204d0bdc0acaf8017372a3b93f54bb846b6be58e.tar.bz2
otp-204d0bdc0acaf8017372a3b93f54bb846b6be58e.zip
wx: Fix int to enum
In 2.9 several functions takes enum's instead of int as arguments, remove dirty -fpermissive fix and fix it correctly instead.
Diffstat (limited to 'lib/wx/src/gen/wxPen.erl')
-rw-r--r--lib/wx/src/gen/wxPen.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/wx/src/gen/wxPen.erl b/lib/wx/src/gen/wxPen.erl
index 8b8aafddba..681a7edebc 100644
--- a/lib/wx/src/gen/wxPen.erl
+++ b/lib/wx/src/gen/wxPen.erl
@@ -113,8 +113,9 @@ isOk(#wx_ref{type=ThisT,ref=ThisRef}) ->
<<ThisRef:32/?UI>>).
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetcap">external documentation</a>.
+%%<br /> CapStyle = integer
-spec setCap(This, CapStyle) -> ok when
- This::wxPen(), CapStyle::integer().
+ This::wxPen(), CapStyle::wx:wx_enum().
setCap(#wx_ref{type=ThisT,ref=ThisRef},CapStyle)
when is_integer(CapStyle) ->
?CLASS(ThisT,wxPen),
@@ -140,8 +141,9 @@ setColour(#wx_ref{type=ThisT,ref=ThisRef},Red,Green,Blue)
<<ThisRef:32/?UI,Red:32/?UI,Green:32/?UI,Blue:32/?UI>>).
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxpen.html#wxpensetjoin">external documentation</a>.
+%%<br /> JoinStyle = integer
-spec setJoin(This, JoinStyle) -> ok when
- This::wxPen(), JoinStyle::integer().
+ This::wxPen(), JoinStyle::wx:wx_enum().
setJoin(#wx_ref{type=ThisT,ref=ThisRef},JoinStyle)
when is_integer(JoinStyle) ->
?CLASS(ThisT,wxPen),