Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
frame_context.hpp
Go to the documentation of this file.
1
/*
2
Copyright 2019 natinusala
3
Copyright 2019 psam
4
5
Licensed under the Apache License, Version 2.0 (the "License");
6
you may not use this file except in compliance with the License.
7
You may obtain a copy of the License at
8
9
http://www.apache.org/licenses/LICENSE-2.0
10
11
Unless required by applicable law or agreed to in writing, software
12
distributed under the License is distributed on an "AS IS" BASIS,
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
See the License for the specific language governing permissions and
15
limitations under the License.
16
*/
17
18
#pragma once
19
20
#include <nanovg.h>
21
22
#include <
aurore/core/font.hpp
>
23
#include <
aurore/core/style.hpp
>
24
#include <
aurore/core/theme.hpp
>
25
26
namespace
aurore
27
{
28
29
class
FrameContext
30
{
31
public
:
32
NVGcontext*
vg
=
nullptr
;
33
float
pixelRatio
= 0.0;
34
FontStash
*
fontStash
=
nullptr
;
35
Theme
theme
=
nullptr
;
36
};
37
38
}
// namespace aurore
aurore::FrameContext
Definition
frame_context.hpp:30
aurore::FrameContext::vg
NVGcontext * vg
Definition
frame_context.hpp:32
aurore::FrameContext::theme
Theme theme
Definition
frame_context.hpp:35
aurore::FrameContext::fontStash
FontStash * fontStash
Definition
frame_context.hpp:34
aurore::FrameContext::pixelRatio
float pixelRatio
Definition
frame_context.hpp:33
aurore::Theme
Definition
theme.hpp:298
font.hpp
aurore
Definition
actions.hpp:25
aurore::FontStash
std::unordered_map< std::string, int > FontStash
Definition
font.hpp:38
style.hpp
theme.hpp
aurore
core
frame_context.hpp
Generated by
1.9.8