Checkin to accomodate client-based BScrollBar

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2321 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2002-12-30 23:35:10 +00:00
parent 7fae070584
commit c1a8250fd3
1 changed files with 20 additions and 13 deletions

View File

@ -14,14 +14,20 @@
#include <BeBuild.h>
#include <View.h>
/*----------------------------------------------------------------*/
/*----- scroll bar defines ---------------------------------------*/
#include <BeBuild.h>
#include <View.h>
//----------------------------------------------------------------
//----- scroll bar defines ---------------------------------------
#define B_V_SCROLL_BAR_WIDTH 14.0
#define B_H_SCROLL_BAR_HEIGHT 14.0
/*----------------------------------------------------------------*/
/*----- BScrollBar class -----------------------------------------*/
//----------------------------------------------------------------
//----- BScrollBar class -----------------------------------------
class BScrollArrowButton;
class BScrollBarPrivateData;
class BScrollBar : public BView {
@ -76,20 +82,18 @@ virtual void AllDetached();
virtual status_t GetSupportedSuites(BMessage *data);
/*----- Private or reserved -----------------------------------------*/
//----- Private or reserved -----------------------------------------
virtual status_t Perform(perform_code d, void *arg);
private:
friend class BWindow;
friend class BApplication;
friend BScrollArrowButton;
virtual void _ReservedScrollBar1();
virtual void _ReservedScrollBar2();
virtual void _ReservedScrollBar3();
virtual void _ReservedScrollBar4();
BScrollBar &operator=(const BScrollBar &);
void DoScroll(float delta);
void InitObject(float min, float max, orientation o, BView *t);
float fMin;
@ -101,10 +105,13 @@ virtual void _ReservedScrollBar4();
BView* fTarget;
orientation fOrientation;
char *fTargetName;
uint32 _reserved[4];
BScrollBarPrivateData *privatedata;
uint32 _reserved[3];
};
/*-------------------------------------------------------------*/
/*-------------------------------------------------------------*/
//-------------------------------------------------------------
//-------------------------------------------------------------
#endif /* _SCROLL_BAR_H */
#endif // _SCROLL_BAR_H