malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Graphics
Text
Typer.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2
// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4
#ifndef MALENA_TYPER_H
5
#define MALENA_TYPER_H
6
7
#pragma once
8
9
#include <
Malena/Core/malena_export.h
>
10
#include <
Malena/Resources/FontManager.h
>
11
#include <
Malena/Graphics/Base/Graphic.h
>
12
13
namespace
ml
14
{
38
class
MALENA_API
Typer
:
public
virtual
Graphic
<sf::Text>
39
{
40
void
registerEvents();
41
42
public
:
43
using
Graphic::Graphic
;
44
54
Typer
(
const
sf::Font
& font =
FontManager<>::getDefault
());
55
};
56
57
}
// namespace ml
58
59
#endif
// MALENA_TYPER_H
FontManager.h
Graphic.h
ml::FontManager::getDefault
static const sf::Font & getDefault()
Return the built-in Arial font.
ml::Graphic::Graphic
Graphic()
ml::Typer::Typer
Typer(const sf::Font &font=FontManager<>::getDefault())
Construct a Typer with a given font.
ml::Typer::Graphic
Graphic()
sf::Font
malena_export.h
MALENA_API
#define MALENA_API
Definition
malena_export.h:18
ml
Definition
Component.h:22