/usr/include/tuxcap/ScrollbarWidget.h is in libtuxcap-dev 1.4.0.dfsg2-2.2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | // ScrollbarWidget.h: interface for the ScrollbarWidget class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __SCROLLBARWIDGET_H__
#define __SCROLLBARWIDGET_H__
#include "Widget.h"
#include "ButtonListener.h"
namespace Sexy
{
class ScrollListener;
class ScrollbuttonWidget;
class ScrollbarWidget : public Widget, public ButtonListener
{
public:
enum
{
UPDATE_MODE_IDLE =0,
UPDATE_MODE_PGUP,
UPDATE_MODE_PGDN
};
public:
ScrollbuttonWidget *mUpButton;
ScrollbuttonWidget *mDownButton;
bool mInvisIfNoScroll;
public:
int mId;
double mValue;
double mMaxValue;
double mPageSize;
bool mHorizontal;
bool mPressedOnThumb;
int mMouseDownThumbPos;
int mMouseDownX;
int mMouseDownY;
int mUpdateMode;
int mUpdateAcc;
int mButtonAcc;
int mLastMouseX;
int mLastMouseY;
ScrollListener* mScrollListener;
public:
ScrollbarWidget(int theId, ScrollListener *theScrollListener);
virtual ~ScrollbarWidget();
virtual void SetInvisIfNoScroll(bool invisIfNoScroll);
virtual void SetMaxValue(double theNewMaxValue);
virtual void SetPageSize(double theNewPageSize);
virtual void SetValue(double theNewValue);
virtual void SetHorizontal(bool isHorizontal);
virtual void ResizeScrollbar(int theX, int theY, int theWidth, int theHeight);
virtual bool AtBottom();
virtual void GoToBottom();
virtual void DrawThumb(Graphics *g, int theX, int theY, int theWidth, int theHeight);
virtual int GetTrackSize();
virtual int GetThumbSize();
virtual int GetThumbPosition();
virtual void Draw(Graphics *g);
virtual void ClampValue();
virtual void SetThumbPosition(int thePosition);
virtual void ButtonPress(int theId);
virtual void ButtonDepress(int theId);
virtual void ButtonDownTick(int theId);
virtual void Update();
virtual int ThumbCompare(int x, int y);
virtual void MouseDown(int x, int y, int theClickCount) { Widget::MouseDown(x, y, theClickCount); }
virtual void MouseDown(int x, int y, int theBtnNum, int theClickCount);
virtual void MouseUp(int x, int y) { Widget::MouseUp(x, y); }
virtual void MouseUp(int x, int y, int theBtnNum, int theClickCount);
virtual void MouseDrag(int x, int y);
};
}
#endif // __SCROLLBARWIDGET_H__
|