X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e71c530e030e5aee15f6cc925c8cd477aa351d13..38a097f588121ffcab2fa57e4494a6d0783c3567:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 8f76c9e7e7..00aac00518 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -1027,6 +1027,12 @@ public: wxAccessible* GetOrCreateAccessible() ; #endif + + // Set window transparency if the platform supports it + virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; } + virtual bool CanSetTransparent() { return false; } + + // implementation // -------------- @@ -1328,12 +1334,20 @@ protected: // implements the window variants virtual void DoSetWindowVariant( wxWindowVariant variant ) ; + // Must be called when mouse capture is lost to send + // wxMouseCaptureLostEvent to windows on capture stack. + static void NotifyCaptureLost(); + private: // contains the last id generated by NewControlId static int ms_lastControlId; // the stack of windows which have captured the mouse static struct WXDLLEXPORT wxWindowNext *ms_winCaptureNext; + // the window that currently has mouse capture + static wxWindow *ms_winCaptureCurrent; + // indicates if execution is inside CaptureMouse/ReleaseMouse + static bool ms_winCaptureChanging; DECLARE_ABSTRACT_CLASS(wxWindowBase) DECLARE_NO_COPY_CLASS(wxWindowBase)