+
+ void SetLastClick(int button, long timestamp)
+ { m_lastButton = button; m_lastTS = timestamp; }
+
+ int GetLastClickedButton() const { return m_lastButton; }
+ long GetLastClickTime() const { return m_lastTS; }
+
+ // Gives window a chance to do something in response to a size message,
+ // e.g. arrange status bar, toolbar etc.
+ virtual bool PreResize();
+
+ // Generates a paint event
+ virtual void DoPaint();
+
+ // update rectangle/region manipulation
+ // (for wxWindowDC and Motif callbacks only)
+ // -----------------------------------------
+
+ // Adds a recangle to the updates list
+ void AddUpdateRect(int x, int y, int w, int h);
+
+ void ClearUpdateRegion() { m_updateRegion.Clear(); }
+ void SetUpdateRegion(const wxRegion& region) { m_updateRegion = region; }
+
+ // Process idle (send update events)
+ void OnInternalIdle();
+
+protected:
+ // Responds to colour changes: passes event on to children.
+ void OnSysColourChanged(wxSysColourChangedEvent& event);
+
+ // Motif-specific
+
+ void SetMainWidget(WXWidget w) { m_mainWidget = w; }
+
+ // See src/motif/window.cpp, near the top, for an explanation
+ // why this is necessary
+ void CanvasSetSizeIntr(int x, int y, int width, int height,
+ int sizeFlags, bool fromCtor);
+ void DoSetSizeIntr(int x, int y,
+ int width, int height,
+ int sizeFlags, bool fromCtor);
+
+ // for DoMoveWindowIntr flags
+ enum
+ {
+ wxMOVE_X = 1,
+ wxMOVE_Y = 2,
+ wxMOVE_WIDTH = 4,
+ wxMOVE_HEIGHT = 8
+ };
+
+ void DoMoveWindowIntr(int x, int y, int width, int height,
+ int flags);
+
+ // helper function, to remove duplicate code, used in wxScrollBar
+ WXWidget DoCreateScrollBar(WXWidget parent, wxOrientation orientation,
+ void (*callback)());
+public: