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

Method GetLeftBorderRect

System/LemonWM/window.cpp:123–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}};
125}
126
127rect_t WMWindow::GetRightBorderRect(){ // Windows with no titlebar also have no borders so don't worry about checking for the no decoration flag
128 return {{pos.x + size.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