BuildRoadStationWindow Struct Reference

Inheritance diagram for BuildRoadStationWindow:

PickerWindowBase Window ZeroedMemoryAllocator

Public Member Functions

 BuildRoadStationWindow (const WindowDesc *desc, Window *parent, RoadStopType rs)
virtual void OnPaint ()
 This window is currently being repainted.
virtual void OnClick (Point pt, int widget)
 A click with the left mouse button has been made on the window.
virtual void OnTick ()
 Called once per (game) tick.

Private Types

 BRSW_CLOSEBOX = 0
 BRSW_CAPTION
 BRSW_BACKGROUND
 BRSW_STATION_NE
 BRSW_STATION_SE
 BRSW_STATION_SW
 BRSW_STATION_NW
 BRSW_STATION_X
 BRSW_STATION_Y
 BRSW_LT_OFF
 BRSW_LT_ON
 BRSW_INFO
enum  BuildRoadStationWidgets {
  BRSW_CLOSEBOX = 0, BRSW_CAPTION, BRSW_BACKGROUND, BRSW_STATION_NE,
  BRSW_STATION_SE, BRSW_STATION_SW, BRSW_STATION_NW, BRSW_STATION_X,
  BRSW_STATION_Y, BRSW_LT_OFF, BRSW_LT_ON, BRSW_INFO
}
 Enum referring to the widgets of the build road station window.

Detailed Description

Definition at line 797 of file road_gui.cpp.


Member Function Documentation

virtual void BuildRoadStationWindow::OnClick ( Point  pt,
int  widget 
) [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.

Reimplemented from Window.

Definition at line 872 of file road_gui.cpp.

References _road_station_picker_orientation, _station_show_coverage, Window::LowerWidget(), Window::RaiseWidget(), Window::SetDirty(), and SndPlayFx().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 6 20:15:59 2008 for openttd by  doxygen 1.4.7