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:
@@ -40,6 +40,7 @@ ServerCursor::ServerCursor(BRect r, color_space cspace, int32 flags, BPoint hots
|
|||||||
{
|
{
|
||||||
_hotspot=hotspot;
|
_hotspot=hotspot;
|
||||||
_hotspot.ConstrainTo(Bounds());
|
_hotspot.ConstrainTo(Bounds());
|
||||||
|
_app_signature=NULL;
|
||||||
|
|
||||||
_AllocateBuffer();
|
_AllocateBuffer();
|
||||||
}
|
}
|
||||||
@@ -100,6 +101,7 @@ ServerCursor::ServerCursor(int8 *data)
|
|||||||
_bytesperrow=0;
|
_bytesperrow=0;
|
||||||
_space=B_NO_COLOR_SPACE;
|
_space=B_NO_COLOR_SPACE;
|
||||||
}
|
}
|
||||||
|
_app_signature=NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -111,6 +113,7 @@ ServerCursor::ServerCursor(const ServerCursor *cursor)
|
|||||||
{
|
{
|
||||||
_AllocateBuffer();
|
_AllocateBuffer();
|
||||||
_initialized=true;
|
_initialized=true;
|
||||||
|
_app_signature=NULL;
|
||||||
|
|
||||||
if(cursor)
|
if(cursor)
|
||||||
{
|
{
|
||||||
@@ -124,6 +127,8 @@ ServerCursor::ServerCursor(const ServerCursor *cursor)
|
|||||||
ServerCursor::~ServerCursor(void)
|
ServerCursor::~ServerCursor(void)
|
||||||
{
|
{
|
||||||
_FreeBuffer();
|
_FreeBuffer();
|
||||||
|
if(_app_signature)
|
||||||
|
delete _app_signature;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
#include <Point.h>
|
#include <Point.h>
|
||||||
#include "ServerBitmap.h"
|
#include "ServerBitmap.h"
|
||||||
|
|
||||||
|
class ServerApp;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class ServerCursor ServerCursor.h
|
\class ServerCursor ServerCursor.h
|
||||||
\brief Class to handle all cursor capabilities for the system
|
\brief Class to handle all cursor capabilities for the system
|
||||||
@@ -50,8 +52,11 @@ public:
|
|||||||
//! Returns the cursor's hot spot
|
//! Returns the cursor's hot spot
|
||||||
BPoint GetHotSpot(void);
|
BPoint GetHotSpot(void);
|
||||||
void SetHotSpot(BPoint pt);
|
void SetHotSpot(BPoint pt);
|
||||||
|
const char *GetAppSignature(void) { return _app_signature; }
|
||||||
private:
|
private:
|
||||||
|
friend ServerApp;
|
||||||
BPoint _hotspot;
|
BPoint _hotspot;
|
||||||
|
char *_app_signature;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user