ScummVM API documentation
qd_screen_text_dispatcher.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 QDENGINE_QDCORE_QD_SCREEN_TEXT_DISPATCHER
23 #define QDENGINE_QDCORE_QD_SCREEN_TEXT_DISPATCHER
24 
25 #include "qdengine/qdcore/qd_screen_text_set.h"
26 #include "qdengine/system/input/mouse_input.h"
27 
28 
29 namespace QDEngine {
30 
33 public:
36 
38  void clear_texts();
40  void clear_texts(qdNamedObject *owner);
41 
43  qdScreenText *add_text(int set_ID, const qdScreenText &txt);
46  _text_sets.push_back(set);
47  return &_text_sets.back();
48  }
50  const qdScreenTextSet *get_text_set(int id) const;
53 
55  void redraw() const;
56  void pre_redraw() const;
57  void post_redraw();
58 
59  bool save_script(Common::WriteStream &fh, int indent = 0) const;
60 
61 private:
62 
65  text_sets_container_t _text_sets;
66 };
67 
68 } // namespace QDEngine
69 
70 #endif // QDENGINE_QDCORE_QD_SCREEN_TEXT_DISPATCHER
Definition: stream.h:77
Поименованный объект.
Definition: qd_named_object.h:70
Диспетчер экранных текстов.
Definition: qd_screen_text_dispatcher.h:32
Экранный текст.
Definition: qd_screen_text.h:146
Набор экранных текстов.
Definition: qd_screen_text_set.h:32
void push_back(const T &element)
Definition: array.h:180
Базовый класс для игровых ресурсов.
Definition: console.h:28
qdScreenText * add_text(int set_ID, const qdScreenText &txt)
Добавление текста в определенный набор.
const qdScreenTextSet * get_text_set(int id) const
Поиск набора текстов.
void clear_texts()
Очистка всех текстов.
void redraw() const
Отрисовка текстов.
qdScreenTextSet * add_text_set(const qdScreenTextSet &set)
Добавление набора текстов.
Definition: qd_screen_text_dispatcher.h:45
T & back()
Definition: array.h:229