X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0dbd6262a9ee7d735fb3930707346298f71b2cb7..61ecf6d34ffb087e4a02d1c4e29e1f155875eba0:/include/wx/mac/scrolbar.h diff --git a/include/wx/mac/scrolbar.h b/include/wx/mac/scrolbar.h index 3ec992e78e..61c7f5b139 100644 --- a/include/wx/mac/scrolbar.h +++ b/include/wx/mac/scrolbar.h @@ -12,7 +12,7 @@ #ifndef _WX_SCROLBAR_H_ #define _WX_SCROLBAR_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "scrolbar.h" #endif @@ -46,15 +46,18 @@ public: const wxString& name = wxScrollBarNameStr); int GetThumbPosition() const ; - inline int GetThumbSize() const { return m_pageSize; } - inline int GetPageSize() const { return m_viewSize; } + inline int GetThumbSize() const { return m_viewSize; } + inline int GetPageSize() const { return m_pageSize; } inline int GetRange() const { return m_objectSize; } + bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; } + virtual void SetThumbPosition(int viewStart); virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize, bool refresh = TRUE); void Command(wxCommandEvent& event); + virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart ) ; protected: int m_pageSize;