Last change
on this file since 442 was
442,
checked in by epyon, 10 years ago
|
- more std removal - only <random> left
|
File size:
1.3 KB
|
Rev | Line | |
---|
[395] | 1 | // Copyright (C) 2012-2015 ChaosForge Ltd
|
---|
[66] | 2 | // http://chaosforge.org/
|
---|
| 3 | //
|
---|
[395] | 4 | // This file is part of Nova libraries.
|
---|
| 5 | // For conditions of distribution and use, see copying.txt file in root folder.
|
---|
[66] | 6 |
|
---|
| 7 | /**
|
---|
| 8 | * @file gui_element.hh
|
---|
| 9 | * @author Kornel Kisielewicz
|
---|
| 10 | * @brief GUI Element
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef NV_GUI_ELEMENT_HH
|
---|
| 14 | #define NV_GUI_ELEMENT_HH
|
---|
| 15 |
|
---|
[395] | 16 | #include <nv/common.hh>
|
---|
[319] | 17 | #include <nv/core/position.hh>
|
---|
| 18 | #include <nv/core/io_event.hh>
|
---|
[368] | 19 | #include <nv/stl/string.hh>
|
---|
[69] | 20 | #include <nv/gui/gui_common.hh>
|
---|
[66] | 21 |
|
---|
| 22 | namespace nv
|
---|
| 23 | {
|
---|
| 24 | namespace gui
|
---|
| 25 | {
|
---|
[269] | 26 |
|
---|
[268] | 27 | class element
|
---|
[66] | 28 | {
|
---|
[269] | 29 | public:
|
---|
[268] | 30 | /// List type
|
---|
[440] | 31 | // TODO: change to small_vector once implemented!
|
---|
| 32 | typedef vector< handle > child_list;
|
---|
| 33 | shash64 m_id; ///< id type of the object
|
---|
[269] | 34 | handle m_parent; ///< pointer to parent
|
---|
[351] | 35 | flags m_flags;
|
---|
[440] | 36 | child_list m_children; ///< children objects
|
---|
[268] | 37 | size_t m_child_count; ///< number of children
|
---|
[440] | 38 | shash64 m_class; ///< Class name.
|
---|
| 39 | string_buffer m_text; ///< Displayed label or text.
|
---|
[110] | 40 | rectangle m_relative; ///< Position relative to parent.
|
---|
| 41 | rectangle m_absolute; ///< Position relative to window/screen.
|
---|
| 42 | render_data* m_render_data; ///< -?-
|
---|
[66] | 43 | };
|
---|
| 44 |
|
---|
| 45 | } // namespace gui
|
---|
| 46 |
|
---|
| 47 | } // namespace nv
|
---|
| 48 |
|
---|
| 49 | #endif // NV_GUI_ELEMENT_HH
|
---|
Note: See
TracBrowser
for help on using the repository browser.