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

Method GetTopBorderRect

System/LemonWM/window.cpp:119–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119rect_t WMWindow::GetTopBorderRect(){ // Windows with no titlebar also have no borders so don't worry about checking for the no decoration flag
120 return {{pos.x - WINDOW_BORDER_THICKNESS, pos.y - WINDOW_BORDER_THICKNESS /*Extend the border rect out a bit*/}, {size.x + WINDOW_BORDER_THICKNESS * 3, WINDOW_BORDER_THICKNESS * 2}};
121}
122
123rect_t WMWindow::GetLeftBorderRect(){ // Windows with no titlebar also have no borders so don't worry about checking for the no decoration flag
124 return {{pos.x - WINDOW_BORDER_THICKNESS, pos.y - WINDOW_BORDER_THICKNESS}, {WINDOW_BORDER_THICKNESS * 2, size.y + WINDOW_TITLEBAR_HEIGHT + WINDOW_BORDER_THICKNESS * 3}};

Callers 1

MouseDownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected