![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
The traditional box-based city bar. More...
#include <citybar.h>
Inheritance diagram for traditional_citybar_painter:
Collaboration diagram for traditional_citybar_painter:Public Member Functions | |
| QRect | paint (QPainter &painter, const QPointF &position, const city *pcity) const override |
| Draws the traditional city bar with a dark background, two lines of text and colored borders. More... | |
Public Member Functions inherited from citybar_painter | |
| virtual | ~citybar_painter ()=default |
| virtual bool | has_flag () const |
| Returns whether the flag is shown in the bar. More... | |
| virtual bool | has_units () const |
| Returns whether the units inside are shown in the bar. More... | |
| virtual bool | has_size () const |
| Returns whether the city size is shown in the bar. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from citybar_painter | |
| static QStringList | available () |
| Returns the list of all available city bar styles. More... | |
| static const QVector< QString > * | available_vector (const option *) |
| Returns the list of all available city bar styles. More... | |
| static void | option_changed (option *opt) |
| Called by the option code when the option has changed. More... | |
| static citybar_painter * | current () |
| Returns the current painter (never null). More... | |
|
overridevirtual |
Draws the traditional city bar with a dark background, two lines of text and colored borders.
Implements citybar_painter.
Definition at line 434 of file citybar.cpp.