X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..0c8392cac2d36d0d211432e71d3b24d3d93c22db:/wxPython/src/frames.i diff --git a/wxPython/src/frames.i b/wxPython/src/frames.i index 619ae6ebe2..ea407d7766 100644 --- a/wxPython/src/frames.i +++ b/wxPython/src/frames.i @@ -116,6 +116,12 @@ public: virtual void SetTitle(const wxString& title); virtual wxString GetTitle() const; + + // Set the shape of the window to the given region. + // Returns TRUE if the platform supports this feature (and the operation + // is successful.) + virtual bool SetShape(const wxRegion& region); + }; //---------------------------------------------------------------------- @@ -177,7 +183,7 @@ public: // create main toolbar - virtual wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL, + virtual wxToolBar* CreateToolBar(long style = -1, //wxNO_BORDER|wxTB_HORIZONTAL, wxWindowID id = -1, const wxString& name = wxPyToolBarNameStr); @@ -188,6 +194,14 @@ public: // sends a size event to the window using its current size -- this has an // effect of refreshing the window layout virtual void SendSizeEvent(); + + + // send wxUpdateUIEvents for all menu items in the menubar, + // or just for menu if non-NULL + void DoMenuUpdates(wxMenu* menu = NULL); + + // do the UI update processing for this window + virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE); }; //---------------------------------------------------------------------------