|
| ItemImages (const std::string &image_path, int max_image_width=0, int max_image_height=0, int id=-1) |
|
| ItemImages (const std::vector< std::string > &image_paths, int max_image_width=0, int max_image_height=0, int id=-1) |
|
virtual void | draw (DrawingContext &drawing_context, const Vector &pos, int menu_width, bool active) override |
| Draws the menu item. More...
|
|
virtual int | get_width () const override |
| Returns the minimum width of the menu item. More...
|
|
virtual int | get_height () const override |
| Returns height of menu item. More...
|
|
virtual void | process_action (const MenuAction &action) override |
| Processes the menu action. More...
|
|
◆ draw()
void ItemImages::draw |
( |
DrawingContext & |
context, |
|
|
const Vector & |
pos, |
|
|
int |
menu_width, |
|
|
bool |
active |
|
) |
| |
|
overridevirtual |
Draws the menu item.
Reimplemented from MenuItem.
◆ get_height()
virtual int ItemImages::get_height |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns height of menu item.
Reimplemented from MenuItem.
◆ get_width()
virtual int ItemImages::get_width |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the minimum width of the menu item.
Reimplemented from MenuItem.
◆ process_action()
void ItemImages::process_action |
( |
const MenuAction & |
action | ) |
|
|
overridevirtual |
Processes the menu action.
Reimplemented from MenuItem.
The documentation for this class was generated from the following files: