8#ifndef W_SCALE_COMPONENT_HPP
9#define W_SCALE_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
52 [[nodiscard]] sf::Vector2f
getScale( )
const;
59 void setScale( sf::Vector2f newScale );
73 void validatePositive(
const sf::Vector2f& value )
const;
Component()
Protected constructor to restrict instantiation to derived classes.
Definition wComponent.cpp:17
void debugPrint() const
Outputs the scale to standard output for debugging.
Definition wScaleComponent.cpp:46
ScaleComponent(sf::Vector2f scale={ 1.0f, 1.0f })
Constructs a ScaleComponent with the given scale.
Definition wScaleComponent.cpp:17
void setScale(sf::Vector2f newScale)
Sets a new scale factor.
Definition wScaleComponent.cpp:34
sf::Vector2f getScale() const
Retrieves the current scale factor.
Definition wScaleComponent.cpp:29
virtual ~ScaleComponent()=default
Definition wColorComponent.cpp:9