hypr-dynamic-cursors/src/mode/Mode.hpp

17 lines
480 B
C++
Raw Normal View History

#pragma once
#include <hyprutils/math/Vector2D.hpp>
2024-07-02 15:35:37 +02:00
#include "utils.hpp"
using namespace Hyprutils::Math;
class IMode {
public:
/* returns the desired updating strategy for the given mode */
virtual EModeUpdate strategy() = 0;
/* updates the calculations and returns the new angle */
2024-07-02 15:35:37 +02:00
virtual SModeResult update(Vector2D pos) = 0;
2024-08-25 22:58:55 +02:00
/* called on warp, an update will be sent afterwards (probably) */
virtual void warp(Vector2D old, Vector2D pos) = 0;
};