HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
glyph_stencil.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "image_stencil.hpp"
8#include "../text/font_glyph_ids.hpp"
9#include "../aarect.hpp"
10
11namespace tt {
12
14public:
15 using super = image_stencil;
16
17 glyph_stencil(alignment alignment, font_glyph_ids glyph) noexcept;
18
19 void draw(draw_context context, bool use_context_color=false) noexcept override;
20
21private:
22 font_glyph_ids _glyph;
23 aarect _glyph_bounding_box;
24 matrix2 _glyph_transform;
25};
26
27}
Draw context for drawing using the TTauri shaders.
Definition draw_context.hpp:33
Definition glyph_stencil.hpp:13
void draw(draw_context context, bool use_context_color=false) noexcept override
Draw the cell.
Definition image_stencil.hpp:11
Definition font_glyph_ids.hpp:78