summaryrefslogtreecommitdiff
path: root/Widgets/GUIEventDevice.h
blob: 061fc96e7103342eb4ec68f2e53d6c580c81484e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <VirtualFileSystem/CharacterDevice.h>

class GUIEventDevice final : public CharacterDevice {
public:
    GUIEventDevice();
    virtual ~GUIEventDevice() override;

private:
    virtual bool has_data_available_for_reading(Process&) const override;
    virtual ssize_t read(byte* buffer, size_t bufferSize) override;
    virtual ssize_t write(const byte* buffer, size_t bufferSize) override;
};