MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / WMWindow

Method WMWindow

System/LemonWM/window.cpp:8–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <stdlib.h>
7
8WMWindow::WMWindow(WMInstance* wm, handle_t endp, handle_t id, int64_t key, WindowBuffer* bufferInfo, vector2i_t pos, vector2i_t size, unsigned int flags, const std::string& title) : Endpoint(endp){
9 this->wm = wm;
10
11 clientID = id;
12
13 bufferKey = key;
14 windowBufferInfo = bufferInfo;
15
16 buffer1 = ((uint8_t*)windowBufferInfo) + windowBufferInfo->buffer1Offset;
17 buffer2 = ((uint8_t*)windowBufferInfo) + windowBufferInfo->buffer2Offset;
18
19 this->pos = pos;
20 this->size = size;
21 this->flags = flags;
22 this->title = title;
23
24 Queue(Lemon::Message(Lemon::GUI::WindowBufferReturn, bufferKey));
25}
26
27WMWindow::~WMWindow(){
28 Lemon::UnmapSharedMemory(windowBufferInfo, bufferKey);

Callers

nothing calls this directly

Calls 1

MessageClass · 0.50

Tested by

no test coverage detected