BuildRailWaypointWindow Struct Reference

Inheritance diagram for BuildRailWaypointWindow:

PickerWindowBase Window ZeroedMemoryAllocator

Public Member Functions

 BuildRailWaypointWindow (const WindowDesc *desc, Window *parent)
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.

Private Types

 BRWW_CLOSEBOX = 0
 BRWW_CAPTION
 BRWW_BACKGROUND
 BRWW_WAYPOINT_1
 BRWW_WAYPOINT_2
 BRWW_WAYPOINT_3
 BRWW_WAYPOINT_4
 BRWW_WAYPOINT_5
 BRWW_SCROLL
enum  BuildRailWaypointWidgets {
  BRWW_CLOSEBOX = 0, BRWW_CAPTION, BRWW_BACKGROUND, BRWW_WAYPOINT_1,
  BRWW_WAYPOINT_2, BRWW_WAYPOINT_3, BRWW_WAYPOINT_4, BRWW_WAYPOINT_5,
  BRWW_SCROLL
}
 Enum referring to the widgets of the build NewGRF rail waypoint window.

Detailed Description

Definition at line 1587 of file rail_gui.cpp.


Member Function Documentation

virtual void BuildRailWaypointWindow::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 1635 of file rail_gui.cpp.

References _cur_waypoint_type, StationSpec::callbackmask, CBID_STATION_AVAILABILITY, CBM_STATION_AVAIL, GB(), GetCustomStationSpec(), GetStationCallback(), HasBit(), INVALID_TILE, SndPlayFx(), and STAT_CLASS_WAYP.


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