HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
GlyphCell.hpp
1// Copyright 2020 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Cells/ImageCell.hpp"
7#include "TTauri/Text/FontGlyphIDs.hpp"
8#include "TTauri/Foundation/aarect.hpp"
9
10namespace tt {
11
12class GlyphCell : public ImageCell {
13 FontGlyphIDs glyph;
14 mutable aarect boundingBox;
15
16public:
18
19 GlyphCell(GlyphCell const &) noexcept = delete;
20 GlyphCell(GlyphCell &&) noexcept = delete;
21 GlyphCell &operator=(GlyphCell const &) noexcept = delete;
22 GlyphCell &operator=(GlyphCell &&) noexcept = delete;
23
24 void draw(DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle) const noexcept override;
25};
26
27}
Definition GlyphCell.hpp:12
void draw(DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle) const noexcept override
Draw the cell.
Definition ImageCell.hpp:10
Class which represents an axis-aligned rectangle.
Definition aarect.hpp:13
Draw context for drawing using the TTauri shaders.
Definition DrawContext.hpp:30
Definition FontGlyphIDs.hpp:77