Public Member Functions | |
| BuildRoadDepotWindow (const WindowDesc *desc, Window *parent) | |
| virtual void | DrawWidget (const Rect &r, int widget) const |
| Draw the contents of a nested widget. | |
| virtual void | OnClick (Point pt, int widget, int click_count) |
| A click with the left mouse button has been made on the window. | |
Definition at line 841 of file road_gui.cpp.
| virtual void BuildRoadDepotWindow::DrawWidget | ( | const Rect & | r, | |
| int | widget | |||
| ) | const [inline, virtual] |
Draw the contents of a nested widget.
| r | Rectangle occupied by the widget. | |
| widget | Number of the widget to draw. |
Reimplemented from Window.
Definition at line 855 of file road_gui.cpp.
References DIAGDIR_NE, DrawRoadDepotSprite(), IsInsideMM(), WID_BROD_DEPOT_NE, and WID_BROD_DEPOT_NW.
| virtual void BuildRoadDepotWindow::OnClick | ( | Point | pt, | |
| int | widget, | |||
| int | click_count | |||
| ) | [inline, virtual] |
A click with the left mouse button has been made on the window.
| pt | the point inside the window that has been clicked. | |
| widget | the clicked widget. | |
| click_count | Number of fast consecutive clicks at same position |
Reimplemented from Window.
Definition at line 862 of file road_gui.cpp.
References Window::LowerWidget(), Window::RaiseWidget(), Window::SetDirty(), WID_BROD_DEPOT_NE, WID_BROD_DEPOT_NW, WID_BROD_DEPOT_SE, and WID_BROD_DEPOT_SW.
1.7.1