1//------------------------------------------------------------------------------
2//	Copyright (c) 2001-2002, Haiku
3//
4//	Permission is hereby granted, free of charge, to any person obtaining a
5//	copy of this software and associated documentation files (the "Software"),
6//	to deal in the Software without restriction, including without limitation
7//	the rights to use, copy, modify, merge, publish, distribute, sublicense,
8//	and/or sell copies of the Software, and to permit persons to whom the
9//	Software is furnished to do so, subject to the following conditions:
10//
11//	The above copyright notice and this permission notice shall be included in
12//	all copies or substantial portions of the Software.
13//
14//	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15//	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16//	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17//	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18//	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19//	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20//	DEALINGS IN THE SOFTWARE.
21//
22//	File Name:		CursorWhichItem.h
23//	Author:			DarkWyrm <bpmagic@columbus.rr.com>
24//	Description:	ListItem class for managing cursor_which specifiers
25//
26//------------------------------------------------------------------------------
27#ifndef COLORWHICH_ITEM_H
28#define COLORWHICH_ITEM_H
29
30#include <InterfaceDefs.h>
31#include <ListItem.h>
32#include <Bitmap.h>
33#include <SysCursor.h>
34
35class CursorWhichItem : public BStringItem
36{
37public:
38	CursorWhichItem(cursor_which which);
39	~CursorWhichItem(void);
40	void SetAttribute(cursor_which which);
41	cursor_which GetAttribute(void);
42	void SetBitmap(BBitmap *bmp) { if(image) delete image; image=bmp; }
43	BBitmap *GetBitmap(void) const { return image; }
44private:
45	cursor_which attribute;
46	BBitmap *image;
47};
48
49#endif
50