| 211 | } // namespace |
| 212 | |
| 213 | bool GetWindowMetrics(HWND hwnd, Metrics &metrics) { |
| 214 | if (!GetWindowRectInfo(hwnd, metrics.window_rect)) { |
| 215 | return false; |
| 216 | } |
| 217 | if (!GetVisibleWindowRectInfo(hwnd, metrics.visible_rect)) { |
| 218 | return false; |
| 219 | } |
| 220 | if (!GetClientRectInfo(hwnd, metrics.client_rect)) { |
| 221 | return false; |
| 222 | } |
| 223 | return true; |
| 224 | } |
| 225 | |
| 226 | std::vector<Rect> Calculate(const std::vector<HWND> &windows, const Options &options) { |
| 227 | std::vector<LayoutSeed> seeds = BuildLayoutSeeds(windows, options); |
no test coverage detected