From 125016706cdfb30f6462076d5bf7c0144a3d2373 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Mon, 29 Feb 2016 09:17:37 +0100 Subject: wx: Add wxWindow:SetTransparent and CanSetTransperant Available in at least 2.8.12 and later. --- lib/wx/c_src/gen/wxe_funcs.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/wx/c_src/gen/wxe_funcs.cpp') diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp index 772b3d9b22..87779dacc6 100644 --- a/lib/wx/c_src/gen/wxe_funcs.cpp +++ b/lib/wx/c_src/gen/wxe_funcs.cpp @@ -1668,6 +1668,25 @@ case wxWindow_WarpPointer: { // wxWindow::WarpPointer This->WarpPointer(*x,*y); break; } +#if wxCHECK_VERSION(2,8,12) +case wxWindow_SetTransparent: { // wxWindow::SetTransparent + wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; + int * alpha = (int *) bp; bp += 4; + if(!This) throw wxe_badarg(0); + bool Result = This->SetTransparent(*alpha); + rt.addBool(Result); + break; +} +#endif +#if wxCHECK_VERSION(2,8,12) +case wxWindow_CanSetTransparent: { // wxWindow::CanSetTransparent + wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + bool Result = This->CanSetTransparent(); + rt.addBool(Result); + break; +} +#endif #if wxCHECK_VERSION(3,0,0) case wxWindow_IsDoubleBuffered: { // wxWindow::IsDoubleBuffered wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; -- cgit v1.2.3