MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / rect

Method rect

TranslucentTB/windows/window.hpp:239–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected