* Return the bottom of the main view available for general use. * @return The vertical coordinate of the first unusable row, so 'top + height <= bottom' gives the correct result. * @note At and below the bottom y coordinate is often the status bar. */
| 2148 | * @note At and below the bottom y coordinate is often the status bar. |
| 2149 | */ |
| 2150 | int GetMainViewBottom() |
| 2151 | { |
| 2152 | Window *w = FindWindowById(WC_STATUS_BAR, 0); |
| 2153 | return (w == nullptr) ? _screen.height : w->top; |
| 2154 | } |
| 2155 | |
| 2156 | static bool _dragging_window; ///< A window is being dragged or resized. |
| 2157 |
no test coverage detected