68 lines
1.2 KiB
C++
68 lines
1.2 KiB
C++
|
/* Copyright (c) Microsoft Corporation.
|
||
|
Licensed under the MIT License. */
|
||
|
|
||
|
/* Copyright (c) Microsoft Corporation.
|
||
|
Licensed under the MIT License. */
|
||
|
|
||
|
/***************************************************************************
|
||
|
Author: ShonK
|
||
|
Project: Kauai
|
||
|
Reviewed:
|
||
|
Copyright (c) Microsoft Corporation
|
||
|
|
||
|
Cursor class.
|
||
|
|
||
|
***************************************************************************/
|
||
|
#ifndef CURSOR_H
|
||
|
#define CURSOR_H
|
||
|
|
||
|
|
||
|
enum
|
||
|
{
|
||
|
curtMonochrome = 0,
|
||
|
};
|
||
|
|
||
|
|
||
|
//cursor on file - stored in a GG with the rgb's in the variable part
|
||
|
struct CURF
|
||
|
{
|
||
|
long curt; //type of cursor
|
||
|
byte xp; //hot spot
|
||
|
byte yp;
|
||
|
byte dxp; //size - either 16 or 32 and they should match
|
||
|
byte dyp;
|
||
|
//byte rgbAnd[];
|
||
|
//byte rgbXor[];
|
||
|
};
|
||
|
const BOM kbomCurf = 0xC0000000;
|
||
|
|
||
|
|
||
|
typedef class CURS *PCURS;
|
||
|
#define CURS_PAR BACO
|
||
|
#define kclsCURS 'CURS'
|
||
|
class CURS : public CURS_PAR
|
||
|
{
|
||
|
RTCLASS_DEC
|
||
|
|
||
|
private:
|
||
|
protected:
|
||
|
#ifdef WIN
|
||
|
HCRS _hcrs;
|
||
|
#endif //WIN
|
||
|
#ifdef MAC
|
||
|
Cursor _crs;
|
||
|
#endif //MAC
|
||
|
|
||
|
CURS(void) {} //we have to be allocated
|
||
|
~CURS(void);
|
||
|
|
||
|
public:
|
||
|
static bool FReadCurs(PCRF pcrf, CTG ctg, CNO cno, BLCK *pblck,
|
||
|
PBACO *ppbaco, long *pcb);
|
||
|
|
||
|
void Set(void);
|
||
|
};
|
||
|
|
||
|
#endif //!CURSOR_H
|
||
|
|