* Compute minimal required width of the legends. * @return Minimally needed width for displaying the smallmap legends in pixels. */
| 695 | * @return Minimally needed width for displaying the smallmap legends in pixels. |
| 696 | */ |
| 697 | inline uint GetMinLegendWidth() const |
| 698 | { |
| 699 | return WidgetDimensions::scaled.framerect.left + this->min_number_of_columns * this->column_width; |
| 700 | } |
| 701 | |
| 702 | /** |
| 703 | * Return number of columns that can be displayed in \a width pixels. |