8#ifndef W_THICKNESS_COMPONENT_HPP
9#define W_THICKNESS_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
83 void validatePositive(
float value )
const;
Component()
Protected constructor to restrict instantiation to derived classes.
Definition wComponent.cpp:17
virtual ~ThicknessComponent()=default
void setThickness(float newThickness)
Sets a new thickness value.
Definition wThicknessComponent.cpp:37
void debugPrint() const
Outputs the current thickness value to the console for debugging.
Definition wThicknessComponent.cpp:49
ThicknessComponent(float thickness=2.0f)
Constructs the component with an initial positive thickness.
Definition wThicknessComponent.cpp:20
float getThickness() const
Returns the current thickness.
Definition wThicknessComponent.cpp:32
Definition wColorComponent.cpp:9