ScummVM API documentation
gondolier_slider.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_GONDOLIER_SLIDER_H
23#define TITANIC_GONDOLIER_SLIDER_H
24
25#include "titanic/game/gondolier/gondolier_base.h"
26
27namespace Titanic {
28
30 DECLARE_MESSAGE_MAP;
31 bool MouseButtonDownMsg(CMouseButtonDownMsg *msg);
32 bool MouseDragMoveMsg(CMouseDragMoveMsg *msg);
33 bool EnterViewMsg(CEnterViewMsg *msg);
34 bool MouseDragStartMsg(CMouseDragStartMsg *msg);
35 bool StatusChangeMsg(CStatusChangeMsg *msg);
36 bool MouseDragEndMsg(CMouseDragEndMsg *msg);
37 bool IsHookedOnMsg(CIsHookedOnMsg *msg);
38 bool FrameMsg(CFrameMsg *msg);
39 bool SignalObject(CSignalObject *msg);
40 bool ActMsg(CActMsg *msg);
41private:
42 Rect _rectUnused;
43 Rect _thumbRect;
44 Rect _defaultThumbRect;
45 int _sliderIndex;
46 CString _stringUnused;
47 int _sliderNum;
48 CString _armName;
49 CString _signalTarget;
50 bool _dragging;
51public:
52 CLASSDEF;
54
58 void save(SimpleFile *file, int indent) override;
59
63 void load(SimpleFile *file) override;
64};
65
66} // End of namespace Titanic
67
68#endif /* TITANIC_GONDOLIER_SLIDER_H */
Definition: messages.h:256
Definition: messages.h:291
Definition: messages.h:293
Definition: gondolier_base.h:29
Definition: gondolier_slider.h:29
void load(SimpleFile *file) override
void save(SimpleFile *file, int indent) override
Definition: messages.h:307
Definition: mouse_messages.h:71
Definition: mouse_messages.h:181
Definition: mouse_messages.h:139
Definition: mouse_messages.h:150
Definition: messages.h:375
Definition: messages.h:378
Definition: string.h:40
Definition: rect.h:35
Definition: simple_file.h:49