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
#ifndef TYPER_H
2
#define TYPER_H
3
4
#pragma once
5
6
#include <
Malena/Resources/FontManager.h
>
7
#include <
Malena/Graphics/Base/Graphic.h
>
8
9
namespace
ml
10
{
34
class
Typer
:
public
virtual
Graphic
<sf::Text>
35
{
36
void
registerEvents();
37
38
public
:
39
using
Graphic::Graphic
;
40
50
Typer
(
const
sf::Font
& font =
FontManager<>::getDefault
());
51
};
52
53
}
// namespace ml
54
55
#endif
// 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
ml
Definition
Component.h:18
Generated by
1.16.1