24 #include "../TypeCase.h" 26 #if defined(_WIN32) && defined(HR_ENGINE_SHARED) 28 # define MR_DllDeclare __declspec( dllexport ) 30 # define MR_DllDeclare __declspec( dllimport ) 33 # define MR_DllDeclare 40 class SdlDynamicTexture;
55 public std::enable_shared_from_this<SdlTypeCase>
76 void Prepare(
const std::string &s,
TypeLine *rects =
nullptr)
override;
77 void Render(
const TypeLine &s,
const Color color,
int x,
int y,
78 boost::optional<size_t> caret = {})
override;
80 double scale = 1.0)
override;
94 std::array<std::unique_ptr<glyphPage_t>, 256>
glyphs;
95 std::vector<std::unique_ptr<SdlDynamicTexture>>
maps;
#define MR_DllDeclare
Definition: SdlTypeCase.h:33
Definition: SdlTypeCase.h:85
Describes a font used for the UI.
Definition: UiFont.h:44
Character-by-character text renderer.
Definition: TypeCase.h:69
MR_UInt32 curMap
Definition: SdlTypeCase.h:96
SDL implementation of TypeCase.
Definition: SdlTypeCase.h:53
int spaceWidth
The width of a space character.
Definition: SdlTypeCase.h:91
std::array< GlyphEntry, 256 > glyphPage_t
Definition: SdlTypeCase.h:93
int fontHeight
The maximum height of a glyph.
Definition: SdlTypeCase.h:89
SdlDisplay & display
Definition: SdlTypeCase.h:83
int lineHeight
Total height of a line (including line spacing).
Definition: SdlTypeCase.h:90
std::array< std::unique_ptr< glyphPage_t >, 256 > glyphs
Definition: SdlTypeCase.h:94
int curY
Definition: SdlTypeCase.h:97
A line of text, prepared by a TypeCase.
Definition: TypeCase.h:156
int idx
Definition: SdlDisplay.cpp:254
Definition: Announcement.h:24
uint32_t MR_UInt32
Definition: MR_Types.h:44
SDL-based software rendering.
Definition: SdlDisplay.h:60
A single glyph in the backing texture.
Definition: TypeCase.h:50
std::vector< std::unique_ptr< SdlDynamicTexture > > maps
Definition: SdlTypeCase.h:95