mirror of
https://github.com/scummvm/scummvm.git
synced 2025-04-02 10:52:32 -04:00
64 lines
1.9 KiB
C++
64 lines
1.9 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef NUVIE_GUI_GUI_CONSOLE_H
|
|
#define NUVIE_GUI_GUI_CONSOLE_H
|
|
|
|
|
|
|
|
#include "ultima/nuvie/gui/widgets/gui_widget.h"
|
|
#include "ultima/nuvie/gui/gui_types.h"
|
|
#include "ultima/nuvie/gui/gui_font.h"
|
|
#include "ultima/nuvie/screen/screen.h"
|
|
|
|
namespace Ultima {
|
|
namespace Nuvie {
|
|
|
|
class GUI_Console : public GUI_Widget {
|
|
|
|
GUI_Color *bg_color;
|
|
GUI_Font *font;
|
|
uint16 num_cols;
|
|
uint16 num_rows;
|
|
Std::list<Std::string> data;
|
|
|
|
public:
|
|
GUI_Console(uint16 x, uint16 y, uint16 w, uint16 h);
|
|
~GUI_Console() override;
|
|
|
|
/* Map the color to the display */
|
|
void SetDisplay(Screen *s) override;
|
|
|
|
/* Show the widget */
|
|
void Display(bool full_redraw) override;
|
|
|
|
/* events, used for dragging the area. */
|
|
GUI_status MouseDown(int x, int y, Shared::MouseButton button) override;
|
|
GUI_status MouseUp(int x, int y, Shared::MouseButton button) override;
|
|
GUI_status MouseMotion(int x, int y, uint8 state) override;
|
|
|
|
virtual void AddLine(const Std::string &line);
|
|
};
|
|
|
|
} // End of namespace Nuvie
|
|
} // End of namespace Ultima
|
|
|
|
#endif
|