5#include <wayland-client.h>
11 class EHS_LIB_IO Window :
public BaseWindow
22 zxdg_toplevel_decoration_v1 *
dec;
27 static void SurfaceConfigEvent(
void *data, xdg_surface *xdg_surface,
UInt_32 serial);
29 static void ShellPing(
void *data, xdg_wm_base *shell,
UInt_32 serial);
31 static void RegistryHandler(
void *data, wl_registry *registry,
UInt_32 id,
const char *interface,
UInt_32 version);
33 static void RegistryRemoved(
void *data, wl_registry *registry,
UInt_32 id);
35 static void ResizeEvent(
void *data, xdg_toplevel *xdg_toplevel,
Int_32 width,
Int_32 height, wl_array *states);
37 static void CloseEvent(
void *data, xdg_toplevel *xdg_toplevel);
39 static void SeatCapabilitiesEvent(
void *data, wl_seat *seat,
UInt_32 capabilities);
41 static void PointerMotionEvent(
void *data, wl_pointer *pointer,
UInt_32 time, wl_fixed_t sx, wl_fixed_t sy);
62 void OnCreated()
override;
Definition: Window_W32.h:18
Str_16 GetTitle_16() const override
wl_registry * registry
Definition: Window_Way.h:15
zxdg_decoration_manager_v1 * decManager
Definition: Window_Way.h:21
void SetTitle_16(const Str_16 &newTitle) override
void SetTitle_32(const Str_32 &newTitle) override
xdg_surface * xdgSurface
Definition: Window_Way.h:19
wl_surface * wlSurface
Definition: Window_Way.h:17
wl_seat * seat
Definition: Window_Way.h:23
void Create_8(const Str_8 &title, const Vec2_s32 &pos, Vec2_u32 scale) override
void Create_32(const Str_32 &title, const Vec2_s32 &pos, Vec2_u32 scale) override
wl_display * display
Definition: Window_Way.h:14
void SetTitle_8(const Str_8 &newTitle) override
xdg_toplevel * xdgToplevel
Definition: Window_Way.h:20
void SetPos(const Vec2_s32 &newPos) override
Vec2_s32 GetPos() const override
Vec2_u32 GetScale() const override
Str_32 GetTitle_32() const override
void SetCursorImg(const CursorImg img) override
xdg_wm_base * xdgShell
Definition: Window_Way.h:18
Serializer< UInt_64 > GetClipboard() override
void ShowCursor(bool toggle) override
void Create_16(const Str_16 &title, const Vec2_s32 &pos, Vec2_u32 scale) override
Window(const Window &win)
Window & operator=(const Window &win)
Str_8 GetTitle_8() const override
wl_compositor * compositor
Definition: Window_Way.h:16
Vec2_u32 scale
Definition: Window_Way.h:25
void SetScale(const Vec2_u32 &newScale) override
zxdg_toplevel_decoration_v1 * dec
Definition: Window_Way.h:22
void SetClipboard(Serializer< UInt_64 > data) override
void ConstrainCursor(const bool constrain) override
wl_pointer * pointer
Definition: Window_Way.h:24
unsigned int UInt_32
Definition: Types.h:49
int Int_32
Definition: Types.h:51
CursorImg
Definition: BaseWindow.h:16