Game Develop Core: CommentEvent.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
CommentEvent.h
Go to the documentation of this file.
1
5 #ifndef COMMENTEVENT_H
6 #define COMMENTEVENT_H
7
8 #include "GDCore/Events/Event.h"
9 class TiXmlElement;
10 namespace gd { class Layout; }
11 namespace gd { class Project; }
12 namespace gd { class MainFrameWrapper; }
13 namespace gd { class Project; }
14 class wxWindow;
15 namespace gd { class EventsEditorItemsAreas; }
16 namespace gd { class EventsEditorSelection; }
17
18 namespace gd
19 {
20
24 class GD_CORE_API CommentEvent : public gd::BaseEvent
25 {
26 public:
27 CommentEvent() : BaseEvent(), r(255), v(230), b(109), textR(0), textG(0), textB(0) {};
28 virtual ~CommentEvent() {};
29 virtual gd::BaseEventSPtr Clone() const { return boost::shared_ptr<gd::BaseEvent>(new CommentEvent(*this));}
30
31 void SaveToXml(TiXmlElement * eventElem) const;
32 void LoadFromXml(gd::Project & project, const TiXmlElement * eventElem);
33
34 int r;
35 int v;
36 int b;
37
38 int textR;
39 int textG;
40 int textB;
41
42 std::string com1;
43 std::string com2;
44
48 virtual void Render(wxDC & dc, int x, int y, unsigned int width, gd::EventsEditorItemsAreas & areas, gd::EventsEditorSelection & selection, const gd::Platform & );
49
53 virtual unsigned int GetRenderedHeight(unsigned int width, const gd::Platform & ) const;
54
55 virtual EditEventReturnType EditEvent(wxWindow* parent_, gd::Project & game_, gd::Layout & scene_, gd::MainFrameWrapper & mainFrameWrapper_);
56 };
57
58 }
59
60 #endif // COMMENTEVENT_H