8#ifndef W_NOTCH_INTERVAL_COMPONENT_HPP
9#define W_NOTCH_INTERVAL_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
76 void validateInterval(
float value )
const;
Component()
Protected constructor to restrict instantiation to derived classes.
Definition wComponent.cpp:17
void setInterval(float newInterval)
Sets a new interval between notches.
Definition wNotchIntervalComponent.cpp:37
float getInterval() const
Returns the current spacing between notches.
Definition wNotchIntervalComponent.cpp:32
NotchIntervalComponent(float interval=1.0f)
Constructs a NotchIntervalComponent with a given interval.
Definition wNotchIntervalComponent.cpp:20
virtual ~NotchIntervalComponent()=default
void debugPrint() const
Outputs the current interval to standard output for debugging.
Definition wNotchIntervalComponent.cpp:49
Definition wColorComponent.cpp:9