Luna/wind/Mouse.h
apio 646ccb2854
wind: Add a simple display server skeleton using libui
No client functionality yet, but it's a start.
2023-08-08 12:51:01 +02:00

19 lines
290 B
C++

#pragma once
#include "Screen.h"
#include <moon/Mouse.h>
#include <ui/Canvas.h>
class Mouse
{
public:
Mouse(ui::Canvas& screen);
void move(const moon::MousePacket& packet);
void draw(ui::Canvas& screen);
private:
ui::Point m_position;
ui::Rect m_screen_rect;
};