X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af0bb3b161bc687d4a53a83c930c807bfa300a2d..c89165a82daea967ec79e528fd08bf7440bbd4ec:/include/wx/motif/window.h?ds=inline diff --git a/include/wx/motif/window.h b/include/wx/motif/window.h index e174a4538e..3a165449c1 100644 --- a/include/wx/motif/window.h +++ b/include/wx/motif/window.h @@ -103,8 +103,8 @@ public: const wxRect* rect = (wxRect *) NULL ); virtual void SetSizeHints(int minW, int minH, - int maxW, int maxH, - int incW, int incH); + int maxW = -1, int maxH = -1, + int incW = -1, int incH = -1); #if wxUSE_DRAG_AND_DROP virtual void SetDropTarget( wxDropTarget *dropTarget ); #endif // wxUSE_DRAG_AND_DROP @@ -209,6 +209,7 @@ protected: int GetPixmapWidth() const { return m_pixmapWidth; } int GetPixmapHeight() const { return m_pixmapHeight; } +public: // Change properties virtual void ChangeFont(bool keepOriginalSize = TRUE); // Change to the current font (often overridden) virtual void DoChangeForegroundColour(WXWidget widget, wxColour& foregroundColour); @@ -220,6 +221,7 @@ protected: // Change foreground colour using current foreground colour setting virtual void ChangeForegroundColour(); +protected: // Adds the widget to the hash table and adds event handlers. bool AttachWidget(wxWindow* parent, WXWidget mainWidget, WXWidget formWidget, int x, int y, int width, int height); @@ -237,8 +239,10 @@ protected: // accelerator table, and try to find what menu id or window (beneath it) // has this ID. Then construct an appropriate command // event and send it. +public: virtual bool ProcessAccelerator(wxKeyEvent& event); - + +protected: // unmanage and destroy an X widget f it's !NULL (passing NULL is ok) void UnmanageAndDestroy(WXWidget widget);