cosmetical changes and some bug fixes along the way, added another constructor to take on bitmap data from somewhere else
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12383 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
//
|
||||
// File Name: ServerCursor.h
|
||||
// Author: DarkWyrm <[email protected]>
|
||||
// Stephan Aßmus <[email protected]>
|
||||
// Description: Glorified ServerBitmap used for cursor work.
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -29,6 +30,7 @@
|
||||
|
||||
#include <Point.h>
|
||||
#include <String.h>
|
||||
|
||||
#include "ServerBitmap.h"
|
||||
|
||||
class ServerApp;
|
||||
@@ -43,30 +45,43 @@ class CursorManager;
|
||||
R5, cursors can be any size or color space, and this class accomodates and
|
||||
expands the R5 API.
|
||||
*/
|
||||
class ServerCursor : public ServerBitmap
|
||||
{
|
||||
public:
|
||||
ServerCursor(BRect r, color_space cspace, int32 flags, BPoint hotspot, int32 bytesperrow=-1, screen_id screen=B_MAIN_SCREEN_ID);
|
||||
ServerCursor(int8 *data);
|
||||
ServerCursor(const ServerCursor *cursor);
|
||||
~ServerCursor(void);
|
||||
class ServerCursor : public ServerBitmap {
|
||||
public:
|
||||
ServerCursor(BRect r, color_space space,
|
||||
int32 flags, BPoint hotspot,
|
||||
int32 bytesperrow = -1,
|
||||
screen_id screen = B_MAIN_SCREEN_ID);
|
||||
ServerCursor(const int8* cursorDataFromR5);
|
||||
ServerCursor(const uint8* alreadyPaddedData,
|
||||
uint32 width, uint32 height,
|
||||
color_space format);
|
||||
ServerCursor(const ServerCursor* cursor);
|
||||
|
||||
virtual ~ServerCursor(void);
|
||||
|
||||
//! Returns the cursor's hot spot
|
||||
BPoint GetHotSpot(void) { return fHotSpot; }
|
||||
void SetHotSpot(BPoint pt);
|
||||
const char *GetAppSignature(void) { return fAppSignature.String(); }
|
||||
void SetAppSignature(const char *signature);
|
||||
void SetOwningTeam(team_id tid) { fOwningTeam=tid; }
|
||||
team_id OwningTeam(void) const { return fOwningTeam; }
|
||||
void SetHotSpot(BPoint pt);
|
||||
BPoint GetHotSpot(void)
|
||||
{ return fHotSpot; }
|
||||
|
||||
void SetAppSignature(const char* signature);
|
||||
const char* GetAppSignature() const
|
||||
{ return fAppSignature.String(); }
|
||||
|
||||
void SetOwningTeam(team_id tid)
|
||||
{ fOwningTeam=tid; }
|
||||
team_id OwningTeam(void) const
|
||||
{ return fOwningTeam; }
|
||||
|
||||
//! Returns the cursor's ID
|
||||
int32 ID(void) { return fToken; }
|
||||
private:
|
||||
int32 ID()
|
||||
{ return fToken; }
|
||||
private:
|
||||
friend class CursorManager;
|
||||
|
||||
BPoint fHotSpot;
|
||||
team_id fOwningTeam;
|
||||
BString fAppSignature;
|
||||
BPoint fHotSpot;
|
||||
team_id fOwningTeam;
|
||||
BString fAppSignature;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // SERVERCURSOR_H_
|
||||
|
||||
Reference in New Issue
Block a user