BuildRailDepotWindow Struct Reference

Inheritance diagram for BuildRailDepotWindow:

PickerWindowBase Window ZeroedMemoryAllocator

Public Member Functions

 BuildRailDepotWindow (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

 BRDW_CLOSEBOX = 0
 BRDW_CAPTION
 BRDW_BACKGROUND
 BRDW_DEPOT_NE
 BRDW_DEPOT_SE
 BRDW_DEPOT_SW
 BRDW_DEPOT_NW
enum  BuildRailDepotWidgets {
  BRDW_CLOSEBOX = 0, BRDW_CAPTION, BRDW_BACKGROUND, BRDW_DEPOT_NE,
  BRDW_DEPOT_SE, BRDW_DEPOT_SW, BRDW_DEPOT_NW
}
 Enum referring to the widgets of the build rail depot window.

Detailed Description

Definition at line 1516 of file rail_gui.cpp.


Member Function Documentation

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

References _build_depot_direction, 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