8#ifndef W_COLOR_COMPONENT_HPP
9#define W_COLOR_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
63 [[nodiscard]] sf::Color
getColor( )
const;
void setColor(sf::Color newColor)
Sets a new color.
Definition wColorComponent.cpp:34
ColorComponent(sf::Color color=sf::Color::Black)
Constructor with optional color.
Definition wColorComponent.cpp:17
virtual ~ColorComponent()=default
void debugPrint() const
Outputs the RGBA values of the color to standard output.
Definition wColorComponent.cpp:45
sf::Color getColor() const
Gets the current color.
Definition wColorComponent.cpp:29
Component()
Protected constructor to restrict instantiation to derived classes.
Definition wComponent.cpp:17
Definition wColorComponent.cpp:9