2001-04-29 15:27:57 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-23 02:28:01 +00:00
|
|
|
// Name: wx/gtk1/scrolwin.h
|
2001-04-29 15:27:57 +00:00
|
|
|
// Purpose: wxScrolledWindow class
|
|
|
|
// Author: Robert Roebling
|
2005-10-10 18:24:27 +00:00
|
|
|
// Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common
|
2001-04-29 15:27:57 +00:00
|
|
|
// Created: 01/02/97
|
|
|
|
// Copyright: (c) Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-04-29 15:27:57 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GTK_SCROLLWIN_H_
|
|
|
|
#define _WX_GTK_SCROLLWIN_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxScrolledWindow
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-12-24 16:43:30 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxScrollHelper : public wxScrollHelperBase
|
2001-04-29 15:27:57 +00:00
|
|
|
{
|
|
|
|
public:
|
2008-12-24 16:43:30 +00:00
|
|
|
wxScrollHelper(wxWindow *win) : wxScrollHelperBase(win) { }
|
2001-04-29 15:27:57 +00:00
|
|
|
|
2008-12-24 16:43:30 +00:00
|
|
|
// implement base class pure virtuals
|
2001-04-29 15:27:57 +00:00
|
|
|
virtual void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY,
|
2005-10-10 18:24:27 +00:00
|
|
|
int noUnitsX, int noUnitsY,
|
|
|
|
int xPos = 0, int yPos = 0,
|
|
|
|
bool noRefresh = false);
|
2013-08-27 13:12:38 +00:00
|
|
|
virtual bool IsScrollbarShown(int orient) const;
|
2001-04-29 15:27:57 +00:00
|
|
|
virtual void AdjustScrollbars();
|
2004-07-20 16:30:22 +00:00
|
|
|
|
2001-04-29 15:27:57 +00:00
|
|
|
protected:
|
2008-12-24 16:43:30 +00:00
|
|
|
virtual void DoScroll(int x, int y);
|
|
|
|
virtual void DoShowScrollbars(wxScrollbarVisibility horz,
|
|
|
|
wxScrollbarVisibility vert);
|
|
|
|
|
2005-10-10 18:24:27 +00:00
|
|
|
// this does (each) half of AdjustScrollbars() work
|
|
|
|
void DoAdjustScrollbar(GtkAdjustment *adj,
|
|
|
|
int pixelsPerLine,
|
|
|
|
int winSize,
|
|
|
|
int virtSize,
|
|
|
|
int *pos,
|
|
|
|
int *lines,
|
|
|
|
int *linesPerPage);
|
|
|
|
|
|
|
|
// and this does the same for Scroll()
|
2008-12-24 16:43:30 +00:00
|
|
|
void DoScrollOneDir(int orient,
|
|
|
|
GtkAdjustment *adj,
|
|
|
|
int pos,
|
|
|
|
int pixelsPerLine,
|
|
|
|
int *posOld);
|
2001-04-29 15:27:57 +00:00
|
|
|
|
|
|
|
private:
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxScrollHelper);
|
2001-04-29 15:27:57 +00:00
|
|
|
};
|
|
|
|
|
2005-10-10 18:24:27 +00:00
|
|
|
#endif // _WX_GTK_SCROLLWIN_H_
|
2002-04-19 22:12:38 +00:00
|
|
|
|