Last change
on this file since 395 was
395,
checked in by epyon, 10 years ago
|
- bulk update
copyright update
include guards cleanup
core/common.hh -> common.hh
minor cleanups
|
File size:
1.1 KB
|
Line | |
---|
1 | // Copyright (C) 2015 ChaosForge Ltd
|
---|
2 | // http://chaosforge.org/
|
---|
3 | //
|
---|
4 | // This file is part of Nova libraries.
|
---|
5 | // For conditions of distribution and use, see copying.txt file in root folder.
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * @file gui_ascii_renderer.hh
|
---|
9 | * @author Kornel Kisielewicz
|
---|
10 | * @brief GUI Renderer
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef NV_GUI_ASCII_RENDERER_HH
|
---|
14 | #define NV_GUI_ASCII_RENDERER_HH
|
---|
15 |
|
---|
16 | #include <nv/common.hh>
|
---|
17 | #include <nv/core/position.hh>
|
---|
18 | #include <nv/stl/math.hh>
|
---|
19 | #include <nv/interface/terminal.hh>
|
---|
20 | #include <nv/gui/gui_renderer.hh>
|
---|
21 | #include <nv/gui/gui_common.hh>
|
---|
22 | #include <nv/gui/gui_style.hh>
|
---|
23 |
|
---|
24 | namespace nv
|
---|
25 | {
|
---|
26 | namespace gui
|
---|
27 | {
|
---|
28 | class ascii_renderer : public renderer
|
---|
29 | {
|
---|
30 | public:
|
---|
31 | ascii_renderer( terminal* t );
|
---|
32 | virtual void redraw( element* e, uint32 );
|
---|
33 | virtual void draw( element* e );
|
---|
34 | virtual void draw();
|
---|
35 | virtual void on_hover_change( element* e, bool hover );
|
---|
36 | virtual void on_select_change( element* e, bool select );
|
---|
37 | virtual rectangle get_area() const;
|
---|
38 | virtual ~ascii_renderer();
|
---|
39 | private:
|
---|
40 | terminal* m_terminal;
|
---|
41 | };
|
---|
42 |
|
---|
43 | } // namespace gui
|
---|
44 |
|
---|
45 | } // namespace nv
|
---|
46 |
|
---|
47 | #endif // NV_GUI_RENDERER_HH |
---|
Note: See
TracBrowser
for help on using the repository browser.