My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MAP_COMMON__ICON_ITEM_H
#define MAP_COMMON__ICON_ITEM_H

#include "IMapItem.h"

class ButtonItem : public IMapItem
{
public:
ButtonItem(IMapRender* render);
virtual ~ButtonItem() {}

virtual void Render(Draw* w);

virtual bool ProcessLeftDown(Point p, dword keyflags);

virtual void StatePerformed (dword state, const String& param = String());
virtual bool Contains(const Point& p);
virtual Point GetCenter();
virtual Rect GetRect();

virtual String GetItemType() { return "ButtonItem"; }

public:
virtual ButtonItem* SetIcon(const Image& icon);
virtual ButtonItem* SetPos(const Point& pos);

private:
Image _icon;
Point _pos;
};

#endif

Change log

r4180 by Sc0rch on Nov 17, 2011   Diff
MapRender: First release
(FormEditorCommon, FormEditorProperties,
Map, MapBG, MapCommon, MapEditor,
MapRenderTest.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 697 bytes, 32 lines
Powered by Google Project Hosting