23#include "guillaume/components/tooltip.hpp"
36 if (_variant != variant) {
64 if (_title != title) {
78 if (_titleEntity != identifier) {
79 _titleEntity = identifier;
92 if (_textEntity != identifier) {
93 _textEntity = identifier;
106 if (_anchor != identifier) {
107 _anchor = identifier;
120 if (seconds < 0.0f) {
121 throw std::invalid_argument(
"Tooltip delay must be >= 0");
123 if (_enterDelay != seconds) {
124 _enterDelay = seconds;
137 if (seconds < 0.0f) {
138 throw std::invalid_argument(
"Tooltip delay must be >= 0");
140 if (_leaveDelay != seconds) {
141 _leaveDelay = seconds;
154 if (_hoverTime != seconds) {
155 _hoverTime = seconds;
168 if (_leaveTime != seconds) {
169 _leaveTime = seconds;
177 return _lastProgress;
182 if (_lastProgress != progress) {
183 _lastProgress = progress;
196 if (_visible != visible) {
203 const std::optional<Tooltip::Viewport> &
211 if (_viewport != viewport) {
212 _viewport = viewport;
void setHasChanged(bool hasChanged)
Raise or lower the changed flag.
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
State. Every class here is plain data attached to an entity.