2004-01-13 14:00:22 +03:00
|
|
|
#ifndef _SCREEN_H_
|
|
|
|
#define _SCREEN_H_
|
2004-01-12 01:12:55 +03:00
|
|
|
|
|
|
|
#include <Point.h>
|
2004-01-13 14:00:22 +03:00
|
|
|
//#include "DisplayDriver.h"
|
|
|
|
class DisplayDriver;
|
2004-01-12 01:12:55 +03:00
|
|
|
|
|
|
|
class Screen{
|
|
|
|
public:
|
2004-01-13 14:00:22 +03:00
|
|
|
Screen(DisplayDriver *dDriver, BPoint res,
|
|
|
|
uint32 colorspace, const int32 &ID);
|
|
|
|
Screen(){ ; }
|
|
|
|
~Screen(void);
|
2004-01-12 01:12:55 +03:00
|
|
|
|
2004-01-13 14:00:22 +03:00
|
|
|
void SetColorSpace(const uint32 &colorspace);
|
|
|
|
uint32 ColorSpace(void) const;
|
|
|
|
|
|
|
|
void SetID(int32 ID){ fID = ID; }
|
2004-01-12 01:12:55 +03:00
|
|
|
|
|
|
|
// TODO: get/set prototype methods for graphic card features
|
2004-01-13 14:00:22 +03:00
|
|
|
bool SupportsResolution(BPoint res, uint32 colorspace);
|
|
|
|
bool SetResolution(BPoint res, uint32 colorspace);
|
|
|
|
BPoint Resolution() const;
|
2004-01-12 01:12:55 +03:00
|
|
|
|
2004-01-13 14:00:22 +03:00
|
|
|
int32 ScreenNumber(void) const;
|
|
|
|
DisplayDriver* DDriver() const { return fDDriver; }
|
2004-01-12 01:12:55 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2004-01-13 14:00:22 +03:00
|
|
|
// TODO: members in witch we should store data.
|
|
|
|
|
|
|
|
int32 fID;
|
|
|
|
DisplayDriver *fDDriver;
|
2004-01-12 01:12:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|