| 237 | } |
| 238 | |
| 239 | inline std::optional<RECT> rect() const |
| 240 | { |
| 241 | RECT result { }; |
| 242 | if (GetWindowRect(m_WindowHandle, &result)) |
| 243 | { |
| 244 | return result; |
| 245 | } |
| 246 | else |
| 247 | { |
| 248 | LastErrorHandle(spdlog::level::info, L"Failed to get window region."); |
| 249 | return std::nullopt; |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | inline std::optional<RECT> client_rect() const |
| 254 | { |
nothing calls this directly
no outgoing calls
no test coverage detected