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

15 lines
354 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;
};