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

Method GetBottomBorderRect

System/LemonWM/window.cpp:115–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115rect_t WMWindow::GetBottomBorderRect(){ // Windows with no titlebar also have no borders so don't worry about checking for the no decoration flag
116 return {{pos.x - WINDOW_BORDER_THICKNESS, pos.y + size.y + WINDOW_TITLEBAR_HEIGHT + WINDOW_BORDER_THICKNESS}, {size.x + WINDOW_BORDER_THICKNESS * 3, WINDOW_BORDER_THICKNESS * 2}};
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}};

Callers 1

MouseDownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected