ScummVM API documentation
pet_quit.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef TITANIC_PET_QUIT_H
23#define TITANIC_PET_QUIT_H
24
25#include "titanic/pet_control/pet_gfx_element.h"
26#include "titanic/pet_control/pet_glyphs.h"
27#include "titanic/gfx/text_control.h"
28
29namespace Titanic {
30
31class CPetQuit : public CPetGlyph {
32private:
33 CTextControl _text;
34 CPetGfxElement _btnYes;
35public:
39 bool setup(CPetControl *petControl, CPetGlyphs *owner) override;
40
44 bool reset() override;
45
49 void draw2(CScreenManager *screenManager) override;
50
54 bool MouseButtonDownMsg(const Point &pt) override;
55
59 bool MouseButtonUpMsg(const Point &pt) override;
60
64 void getTooltip(CTextControl *text) override;
65
69 virtual CTextControl *getText() { return &_text; }
70};
71
72} // End of namespace Titanic
73
74#endif /* TITANIC_PET_QUIT_H */
Definition: pet_control.h:45
Definition: pet_gfx_element.h:29
Definition: pet_glyphs.h:53
Definition: pet_glyphs.h:244
Definition: pet_quit.h:31
bool reset() override
bool MouseButtonUpMsg(const Point &pt) override
bool setup(CPetControl *petControl, CPetGlyphs *owner) override
virtual CTextControl * getText()
Definition: pet_quit.h:69
bool MouseButtonDownMsg(const Point &pt) override
void draw2(CScreenManager *screenManager) override
void getTooltip(CTextControl *text) override
Definition: screen_manager.h:49
Definition: text_control.h:35
Definition: rect.h:144