Last change
on this file since 270 was
270,
checked in by epyon, 11 years ago
|
- nv::handle - generic handle implementation
- nv::index_store - index store based on handles
- gui elements fully based on handles instead of pointers
|
File size:
887 bytes
|
Line | |
---|
1 | // Copyright (C) 2012-2013 ChaosForge / Kornel Kisielewicz
|
---|
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_common.hh
|
---|
9 | * @author Kornel Kisielewicz
|
---|
10 | * @brief common GUI
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef NV_GUI_COMMON_HH
|
---|
14 | #define NV_GUI_COMMON_HH
|
---|
15 |
|
---|
16 | #include <nv/common.hh>
|
---|
17 | #include <nv/handle.hh>
|
---|
18 |
|
---|
19 | namespace nv
|
---|
20 | {
|
---|
21 | namespace gui
|
---|
22 | {
|
---|
23 | enum alignment
|
---|
24 | {
|
---|
25 | ALIGN_TOP,
|
---|
26 | ALIGN_BOTTOM,
|
---|
27 | ALIGN_CENTER,
|
---|
28 | ALIGN_SCALE,
|
---|
29 | ALIGN_LEFT = ALIGN_TOP,
|
---|
30 | ALIGN_RIGHT = ALIGN_BOTTOM,
|
---|
31 | };
|
---|
32 |
|
---|
33 | class render_data
|
---|
34 | {
|
---|
35 | public:
|
---|
36 | virtual ~render_data(){}
|
---|
37 | };
|
---|
38 |
|
---|
39 | class element;
|
---|
40 | class environment;
|
---|
41 | class renderer;
|
---|
42 |
|
---|
43 | typedef nv::handle<> handle;
|
---|
44 | typedef nv::index_store<handle> index_store;
|
---|
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.