| 89 | } |
| 90 | |
| 91 | void GetInsets(const Metrics &metrics, Insets &insets) { |
| 92 | insets.left = metrics.client_rect.x - metrics.window_rect.x; |
| 93 | insets.top = metrics.client_rect.y - metrics.window_rect.y; |
| 94 | insets.right = metrics.window_rect.width - insets.left - metrics.client_rect.width; |
| 95 | insets.bottom = metrics.window_rect.height - insets.top - metrics.client_rect.height; |
| 96 | } |
| 97 | |
| 98 | bool IsValidUniformSize(const Options &options) { |
| 99 | if (options.size_mode != SizeMode::Uniform) |
no outgoing calls
no test coverage detected