BuildRoadDepotWindow Struct Reference

Inheritance diagram for BuildRoadDepotWindow:

PickerWindowBase Window ZeroedMemoryAllocator

Public Member Functions

 BuildRoadDepotWindow (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  BuildRoadDepotWidgets {
  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 road depot window.

Detailed Description

Definition at line 719 of file road_gui.cpp.


Member Function Documentation

virtual void BuildRoadDepotWindow::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 753 of file road_gui.cpp.

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