Download
Documentation
Development
Examples
Donations
Contributions
Forum
Sources
API
GUI
gui_window_manager_texture.h
1
/*
2
** ClanLib SDK
3
** Copyright (c) 1997-2013 The ClanLib Team
4
**
5
** This software is provided 'as-is', without any express or implied
6
** warranty. In no event will the authors be held liable for any damages
7
** arising from the use of this software.
8
**
9
** Permission is granted to anyone to use this software for any purpose,
10
** including commercial applications, and to alter it and redistribute it
11
** freely, subject to the following restrictions:
12
**
13
** 1. The origin of this software must not be misrepresented; you must not
14
** claim that you wrote the original software. If you use this software
15
** in a product, an acknowledgment in the product documentation would be
16
** appreciated but is not required.
17
** 2. Altered source versions must be plainly marked as such, and must not be
18
** misrepresented as being the original software.
19
** 3. This notice may not be removed or altered from any source distribution.
20
**
21
** Note: Some of the libraries ClanLib may link to may have additional
22
** requirements or restrictions.
23
**
24
** File Author(s):
25
**
26
** Magnus Norddahl
27
** Harry Storbacka
28
** Mark Page
29
*/
30
31
32
#pragma once
33
34
#include "api_gui.h"
35
#include "gui_window_manager.h"
36
37
namespace
clan
38
{
41
42
class
DisplayWindow;
43
class
GUIWindowManagerTexture_Impl;
44
class
FrameBuffer;
45
class
TextureGroup;
46
class
GUIWindowManagerProvider_Texture;
47
class
GUIWindowManagerTextureWindow;
48
50
class
CL_API_GUI
GUIWindowManagerTexture
:
public
GUIWindowManager
51
{
54
public
:
55
57
GUIWindowManagerTexture
();
58
62
GUIWindowManagerTexture
(
DisplayWindow
display_window);
63
GUIWindowManagerTexture
(
const
GUIWindowManager
&wm);
64
~
GUIWindowManagerTexture
();
66
69
public
:
71
GUIWindowManagerProvider_Texture *get_provider()
const
;
72
77
std::vector<GUIWindowManagerTextureWindow> get_windows(
bool
only_visible =
true
)
const
;
79
82
public
:
84
Callback_v0
&func_repaint();
85
87
Callback_v1<FrameBuffer &>
&func_setup_framebuffer();
88
90
Callback_v1<InputEvent &>
&func_input_intercept();
92
95
public
:
96
100
void
set_texture_group(
TextureGroup
&new_texture_group);
101
107
void
draw_windows(
Canvas
&canvas);
108
113
void
process();
114
116
119
private
:
120
122
};
123
124
}
125
clan::Canvas
2D Graphics Canvas
Definition:
canvas.h:70
clan::GUIWindowManagerTexture
Texture window manager.
Definition:
gui_window_manager_texture.h:50
clan::GUIWindowManager
GUI window manager interface.
Definition:
gui_window_manager.h:85
clan::TextureGroup
Texture grouping class.
Definition:
texture_group.h:49
clan::Callback_v1
Callback_v1.
Definition:
callback_v1.h:156
clan::DisplayWindow
Top-level window class.
Definition:
display_window.h:85
clan::Callback_v0
Callback_v0.
Definition:
callback_v0.h:152