* Return the top of the main view available for general use. * @return Uppermost vertical coordinate available. * @note Above the upper y coordinate is often the main toolbar. */
| 2137 | * @note Above the upper y coordinate is often the main toolbar. |
| 2138 | */ |
| 2139 | int GetMainViewTop() |
| 2140 | { |
| 2141 | Window *w = FindWindowById(WC_MAIN_TOOLBAR, 0); |
| 2142 | return (w == nullptr) ? 0 : w->top + w->height; |
| 2143 | } |
| 2144 | |
| 2145 | /** |
| 2146 | * Return the bottom of the main view available for general use. |
no test coverage detected