BuildRoadStationWindow Struct Reference

Inheritance diagram for BuildRoadStationWindow:
PickerWindowBase Window ZeroedMemoryAllocator

Public Member Functions

 BuildRoadStationWindow (const WindowDesc *desc, Window *parent, RoadStopType rs)
virtual void OnPaint ()
 The window must be repainted.
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.
virtual void OnTick ()
 Called once per (game) tick.

Detailed Description

Definition at line 867 of file road_gui.cpp.


Member Function Documentation

virtual void BuildRoadStationWindow::DrawWidget ( const Rect r,
int  widget 
) const [inline, virtual]

Draw the contents of a nested widget.

Parameters:
r Rectangle occupied by the widget.
widget Number of the widget to draw.
Note:
This method may not change any state, it may only use drawing functions.

Reimplemented from Window.

Definition at line 924 of file road_gui.cpp.

References INVALID_RAILTYPE, IsInsideMM(), ROADTYPE_ROAD, TILE_PIXELS, and Window::window_class.

virtual void BuildRoadStationWindow::OnClick ( Point  pt,
int  widget,
int  click_count 
) [inline, virtual]

A click with the left mouse button has been made on the window.

Parameters:
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 932 of file road_gui.cpp.

References _settings_client, DeleteWindowById(), ClientSettings::gui, Window::LowerWidget(), Window::RaiseWidget(), Window::SetDirty(), and GUISettings::station_show_coverage.

virtual void BuildRoadStationWindow::OnPaint (  )  [inline, virtual]

The documentation for this struct was generated from the following file:

Generated on Wed Mar 31 22:43:58 2010 for OpenTTD by  doxygen 1.6.1