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
29
namespace
Titanic
{
30
31
class
CPetQuit
:
public
CPetGlyph
{
32
private
:
33
CTextControl
_text;
34
CPetGfxElement
_btnYes;
35
public
:
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 */
Titanic::CTextControl
Definition:
text_control.h:35
Titanic::CPetQuit::draw2
void draw2(CScreenManager *screenManager) override
Titanic::CPetQuit::setup
bool setup(CPetControl *petControl, CPetGlyphs *owner) override
Titanic::CPetQuit::MouseButtonUpMsg
bool MouseButtonUpMsg(const Point &pt) override
Titanic::CPetQuit::getText
virtual CTextControl * getText()
Definition:
pet_quit.h:69
Titanic::CPetQuit::reset
bool reset() override
Titanic::CPetQuit::MouseButtonDownMsg
bool MouseButtonDownMsg(const Point &pt) override
Titanic::CScreenManager
Definition:
screen_manager.h:49
Titanic::CPetQuit
Definition:
pet_quit.h:31
Titanic::CPetGfxElement
Definition:
pet_gfx_element.h:29
Titanic::CPetGlyph
Definition:
pet_glyphs.h:53
Titanic::CPetQuit::getTooltip
void getTooltip(CTextControl *text) override
Common::Point
Definition:
rect.h:45
Titanic
Definition:
arm.h:30
Titanic::CPetGlyphs
Definition:
pet_glyphs.h:244
Titanic::CPetControl
Definition:
pet_control.h:45
engines
titanic
pet_control
pet_quit.h
Generated on Fri Nov 15 2024 09:21:44 for ScummVM API documentation by
1.8.13