8#ifndef W_FONT_COMPONENT_HPP
9#define W_FONT_COMPONENT_HPP
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wfloat-equal"
15#pragma GCC diagnostic ignored "-Wswitch-default"
16#include <SFML/Graphics.hpp>
17#pragma GCC diagnostic pop
53 const sf::Font&
getFont( )
const;
60 void setFont(
const sf::Font& font );
68 const sf::Font* mFont;
Component()
Protected constructor to restrict instantiation to derived classes.
Definition wComponent.cpp:17
void debugPrint() const
Prints debug information about the stored font.
Definition wFontComponent.cpp:45
~FontComponent() override=default
Virtual destructor.
void setFont(const sf::Font &font)
Updates the stored font reference.
Definition wFontComponent.cpp:34
FontComponent(const sf::Font &font)
Constructs the FontComponent with a reference to the font.
Definition wFontComponent.cpp:17
const sf::Font & getFont() const
Returns the stored font reference.
Definition wFontComponent.cpp:29
Definition wColorComponent.cpp:9