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