#pragma once

#include "ITrackpadGesture.hpp"

#include "../../../../desktop/DesktopTypes.hpp"

class CCursorZoomTrackpadGesture : public ITrackpadGesture {
  public:
    CCursorZoomTrackpadGesture(const std::string& zoomLevel, const std::string& mode);
    virtual ~CCursorZoomTrackpadGesture() = default;

    virtual void begin(const ITrackpadGesture::STrackpadGestureBegin& e);
    virtual void update(const ITrackpadGesture::STrackpadGestureUpdate& e);
    virtual void end(const ITrackpadGesture::STrackpadGestureEnd& e);

  private:
    float         m_zoomValue = 1.0;
    bool          m_zoomed    = false;
    PHLMONITORREF m_monitor;
    float         m_zoomBegin = 1.0;

    enum eMode : uint8_t {
        MODE_TOGGLE = 0,
        MODE_MULT,
        MODE_LIVE,
    };

    eMode m_mode = MODE_TOGGLE;
};
