source: trunk/nv/gui/gui_element.hh @ 368

Last change on this file since 368 was 368, checked in by epyon, 10 years ago
  • massive restructuring
  • detail::data_base class for container/reference class base
File size: 1.2 KB
Line 
1// Copyright (C) 2012-2014 ChaosForge Ltd
2// http://chaosforge.org/
3//
4// This file is part of NV Libraries.
5// For conditions of distribution and use, see copyright notice in nv.hh
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
16#include <nv/core/common.hh>
17#include <nv/core/position.hh>
18#include <nv/core/io_event.hh>
19#include <nv/stl/string.hh>
20#include <nv/gui/gui_common.hh>
21#include <list>
22
23namespace nv
24{
25        namespace gui
26        {
27
28                class element
29                {
30                public:
31                        /// List type
32                        typedef std::list<handle> list;
33
34                        string    m_id;              ///< id type of the object
35                        handle    m_parent;          ///< pointer to parent
36                        flags     m_flags;
37                        list      m_children;        ///< children objects
38                        size_t    m_child_count;     ///< number of children
39                        string    m_class; ///< Class name.
40                        string    m_text; ///< Displayed label or text.
41                        rectangle m_relative; ///< Position relative to parent.
42                        rectangle m_absolute; ///< Position relative to window/screen.
43                        render_data* m_render_data; ///<   -?-
44                };
45
46        } // namespace gui
47
48} // namespace nv
49
50#endif // NV_GUI_ELEMENT_HH
Note: See TracBrowser for help on using the repository browser.