aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-02-29 09:17:37 +0100
committerDan Gudmundsson <[email protected]>2016-02-29 10:37:47 +0100
commit125016706cdfb30f6462076d5bf7c0144a3d2373 (patch)
treede115311631d5e0bbf2c948d0702e273b21e4aa6 /lib/wx/api_gen
parent375a6d9b157aab42c0a4e866ff5933494a2ea081 (diff)
downloadotp-125016706cdfb30f6462076d5bf7c0144a3d2373.tar.gz
otp-125016706cdfb30f6462076d5bf7c0144a3d2373.tar.bz2
otp-125016706cdfb30f6462076d5bf7c0144a3d2373.zip
wx: Add wxWindow:SetTransparent and CanSetTransperant
Available in at least 2.8.12 and later.
Diffstat (limited to 'lib/wx/api_gen')
-rw-r--r--lib/wx/api_gen/wx_gen.erl2
-rw-r--r--lib/wx/api_gen/wxapi.conf2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl
index 5045283f60..ec2c35cc0e 100644
--- a/lib/wx/api_gen/wx_gen.erl
+++ b/lib/wx/api_gen/wx_gen.erl
@@ -705,6 +705,8 @@ parse_type2(["unsigned"|R],Info,Opts,T=#type{mod=Mod}) ->
parse_type2(R,Info,Opts,T#type{mod=[unsigned|Mod]});
parse_type2(["int"|R],Info,Opts, T) ->
parse_type2(R,Info,Opts,T#type{name=int,base=int});
+parse_type2(["wxByte"|R],Info,Opts, T) ->
+ parse_type2(R,Info,Opts,T#type{name=int,base=int});
parse_type2(["char"|R],Info,Opts, T) ->
parse_type2(R,Info,Opts,T#type{name="char",base=int});
parse_type2([N="size_t"|R], Info, Opts, T) ->
diff --git a/lib/wx/api_gen/wxapi.conf b/lib/wx/api_gen/wxapi.conf
index 4b34b9ead8..b8458e901b 100644
--- a/lib/wx/api_gen/wxapi.conf
+++ b/lib/wx/api_gen/wxapi.conf
@@ -151,6 +151,8 @@
'TransferDataToWindow',%'UnregisterHotKey',
'Update','UpdateWindowUI','Validate',
'WarpPointer',
+ {'SetTransparent', [{test_if, "wxCHECK_VERSION(2,8,12)"}]},
+ {'CanSetTransparent', [{test_if, "wxCHECK_VERSION(2,8,12)"}]},
{'IsDoubleBuffered', [{test_if, "wxCHECK_VERSION(3,0,0)"}]},
{'SetDoubleBuffered', [{test_if, "wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__)"}]}
]}.