mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-08-31 05:25:54 +08:00
23 lines
552 B
C++
23 lines
552 B
C++
#ifndef CROSSDESK_COMMON_SHARED_CURSOR_STATE_H_
|
|
#define CROSSDESK_COMMON_SHARED_CURSOR_STATE_H_
|
|
|
|
#include <cstdint>
|
|
|
|
#include "remote_cursor_shape.h"
|
|
|
|
namespace crossdesk {
|
|
|
|
struct SharedCursorState {
|
|
uint64_t generation = 0;
|
|
bool visible = false;
|
|
RemoteCursorShape shape = RemoteCursorShape::default_cursor;
|
|
};
|
|
|
|
void PublishSharedCursorState(bool visible, RemoteCursorShape shape);
|
|
bool GetSharedCursorState(SharedCursorState* state);
|
|
void ClearSharedCursorState();
|
|
|
|
} // namespace crossdesk
|
|
|
|
#endif // CROSSDESK_COMMON_SHARED_CURSOR_STATE_H_
|