X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19c7ac3d3bf1ac2113505a805a79c40ce3db1f5b..94734b4e51431d4d4d5bccaf011b28e82515091e:/include/wx/osx/scrolbar.h diff --git a/include/wx/osx/scrolbar.h b/include/wx/osx/scrolbar.h index 9d0a3568f6..1fa577a94f 100644 --- a/include/wx/osx/scrolbar.h +++ b/include/wx/osx/scrolbar.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: scrollbar.h +// Name: wx/osx/scrolbar.h // Purpose: wxScrollBar class // Author: Stefan Csomor // Modified by: @@ -46,10 +46,15 @@ public: virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize, bool refresh = true); - // implementation only from now on + // needed for RTTI + void SetThumbSize( int s ) { SetScrollbar( GetThumbPosition() , s , GetRange() , GetPageSize() , true ) ; } + void SetPageSize( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , GetRange() , s , true ) ; } + void SetRange( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , s , GetPageSize() , true ) ; } + + // implementation only from now on void Command(wxCommandEvent& event); virtual void TriggerScrollEvent( wxEventType scrollEvent ) ; - virtual bool HandleClicked( double timestampsec ); + virtual bool OSXHandleClicked( double timestampsec ); protected: virtual wxSize DoGetBestSize() const;