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
26namespace aurore
27{
28
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
Definition frame_context.hpp:30
NVGcontext * vg
Definition frame_context.hpp:32
Theme theme
Definition frame_context.hpp:35
FontStash * fontStash
Definition frame_context.hpp:34
float pixelRatio
Definition frame_context.hpp:33
Definition theme.hpp:298
Definition actions.hpp:25
std::unordered_map< std::string, int > FontStash
Definition font.hpp:38