ShishGL
1.0
A simple modular cross-platform graphics library
UICanvas.hpp
Go to the documentation of this file.
1
/*============================================================================*/
2
#ifndef SHISHGL_UICANVAS_HPP
3
#define SHISHGL_UICANVAS_HPP
4
/*============================================================================*/
5
#include "
Image.hpp
"
6
#include "
UIWindow.hpp
"
7
/*============================================================================*/
8
namespace
Sh
{
9
10
class
UICanvas
:
public
UIWindow
{
11
public
:
12
13
explicit
UICanvas
(
const
Frame
& frame,
const
Color
& color =
Color::NONE
);
14
15
void
onRender
()
override
;
16
17
~UICanvas
()
override
;
18
19
protected
:
20
21
Image
canvas
;
22
23
private
:
24
25
IPlatform::IContext
* context;
26
27
};
28
29
}
30
/*============================================================================*/
31
#endif //SHISHGL_UICANVAS_HPP
32
/*============================================================================*/
Image.hpp
Sh::UICanvas::UICanvas
UICanvas(const Frame &frame, const Color &color=Color::NONE)
Definition:
UICanvas.cpp:7
Sh::Frame
Definition:
Frame.hpp:9
Sh::Color::NONE
static const Color NONE
Definition:
Color.hpp:28
Sh::UICanvas
Definition:
UICanvas.hpp:10
Sh::UIWindow
Definition:
UIWindow.hpp:16
Sh::Image
Definition:
Image.hpp:20
Sh
Definition:
CoreApplication.hpp:10
Sh::UICanvas::onRender
void onRender() override
Definition:
UICanvas.cpp:22
Sh::Color
Definition:
Color.hpp:9
Sh::UICanvas::canvas
Image canvas
Definition:
UICanvas.hpp:21
Sh::UICanvas::~UICanvas
~UICanvas() override
Definition:
UICanvas.cpp:16
UIWindow.hpp
Sh::IPlatform::IContext
Definition:
IPlatform.hpp:32
include
ShishGL
GUI
UICanvas.hpp
Generated by
1.8.20