X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d208085a75dd9d59e038dd0e3c66185020ebedf..04d29fda821871ff0f4c63de7de4c5324cc270af:/include/wx/cocoa/window.h diff --git a/include/wx/cocoa/window.h b/include/wx/cocoa/window.h index 06ce0bb977..c8b36b275a 100644 --- a/include/wx/cocoa/window.h +++ b/include/wx/cocoa/window.h @@ -4,9 +4,9 @@ // Author: David Elliott // Modified by: // Created: 2002/12/26 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) 2002 David Elliott -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __WX_COCOA_WINDOW_H__ @@ -81,13 +81,8 @@ public: WX_NSAffineTransform CocoaGetWxToBoundsTransform(); #endif //def __OBJC__ protected: - // enable==false: disables the control - // enable==true: enables the control IF it should be enabled - bool EnableSelfAndChildren(bool enable); // actually enable/disable the cocoa control, overridden by subclasses virtual void CocoaSetEnabled(bool enable) { } - // Reflects the state for THIS window (ignoring disables by parents) - bool m_shouldBeEnabled; void CocoaCreateNSScrollView(); void InitMouseEvent(wxMouseEvent &event, WX_NSEvent cocoaEvent); @@ -142,10 +137,13 @@ public: // Warp the pointer the given position virtual void WarpPointer(int x_pos, int y_pos) ; // Send the window a refresh event - virtual void Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL); + virtual void Refresh(bool eraseBack = true, const wxRect *rect = NULL); // Set/get the window's font virtual bool SetFont(const wxFont& f); // inline virtual wxFont& GetFont() const; + virtual void SetLabel(const wxString& label); + virtual wxString GetLabel() const; + // label handling // Get character size virtual int GetCharHeight() const; virtual int GetCharWidth() const; @@ -155,8 +153,8 @@ public: const wxFont *theFont = NULL) const; // Scroll stuff virtual void SetScrollbar(int orient, int pos, int thumbVisible, - int range, bool refresh = TRUE); - virtual void SetScrollPos(int orient, int pos, bool refresh = TRUE); + int range, bool refresh = true); + virtual void SetScrollPos(int orient, int pos, bool refresh = true); virtual int GetScrollPos(int orient) const; virtual int GetScrollThumb(int orient) const; virtual int GetScrollRange(int orient) const; @@ -195,7 +193,9 @@ public: // NOTE: typically Close() is not virtual, but we want this for Cocoa virtual bool Close( bool force = false ); virtual bool Show( bool show = true ); - virtual bool Enable( bool enable = true ); + virtual void DoEnable( bool enable ); + + virtual bool IsDoubleBuffered() const { return true; } }; #endif // __WX_COCOA_WINDOW_H__