demotool/ui-mousectrl.hh

27 lines
512 B
C++
Raw Normal View History

#pragma once
#include "ui-input.hh"
/*= MOUSE CONTROLS INTERFACE ===================================================*/
class A_MouseCtrl
{
public:
virtual ~A_MouseCtrl( ) = 0;
virtual void handleDragAndDrop(
ImVec2 const& move ,
T_KbdMods modifiers ,
T_MouseButtons buttons
) noexcept = 0;
virtual void handleWheel(
float wheel ,
T_KbdMods modifiers ,
T_MouseButtons buttons
) noexcept = 0;
};
using P_MouseCtrl = T_OwnPtr< A_MouseCtrl >;
inline A_MouseCtrl::~A_MouseCtrl() {}