Added app signature identifier for CursorManager class

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2533 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-01-23 00:37:53 +00:00
parent 5911e5552e
commit abc4a76816
2 changed files with 10 additions and 0 deletions

View File

@ -40,6 +40,7 @@ ServerCursor::ServerCursor(BRect r, color_space cspace, int32 flags, BPoint hots
{
_hotspot=hotspot;
_hotspot.ConstrainTo(Bounds());
_app_signature=NULL;
_AllocateBuffer();
}
@ -100,6 +101,7 @@ ServerCursor::ServerCursor(int8 *data)
_bytesperrow=0;
_space=B_NO_COLOR_SPACE;
}
_app_signature=NULL;
}
/*!
@ -111,6 +113,7 @@ ServerCursor::ServerCursor(const ServerCursor *cursor)
{
_AllocateBuffer();
_initialized=true;
_app_signature=NULL;
if(cursor)
{
@ -124,6 +127,8 @@ ServerCursor::ServerCursor(const ServerCursor *cursor)
ServerCursor::~ServerCursor(void)
{
_FreeBuffer();
if(_app_signature)
delete _app_signature;
}
/*!

View File

@ -30,6 +30,8 @@
#include <Point.h>
#include "ServerBitmap.h"
class ServerApp;
/*!
\class ServerCursor ServerCursor.h
\brief Class to handle all cursor capabilities for the system
@ -50,8 +52,11 @@ public:
//! Returns the cursor's hot spot
BPoint GetHotSpot(void);
void SetHotSpot(BPoint pt);
const char *GetAppSignature(void) { return _app_signature; }
private:
friend ServerApp;
BPoint _hotspot;
char *_app_signature;
};
#endif