Public Member Functions | |
GraphLegendWindow (WindowDesc *desc, WindowNumber window_number) | |
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 | OnInvalidateData (int data=0, bool gui_scope=true) |
Some data on this window has become invalid. |
Definition at line 45 of file graph_gui.cpp.
virtual void GraphLegendWindow::DrawWidget | ( | const Rect & | r, | |
int | widget | |||
) | const [inline, virtual] |
Draw the contents of a nested widget.
r | Rectangle occupied by the widget. | |
widget | Number of the widget to draw. |
Reimplemented from Window.
Definition at line 57 of file graph_gui.cpp.
References _current_text_dir, DrawCompanyIcon(), DrawString(), FONT_HEIGHT_NORMAL, GetSpriteSize(), HasBit(), IsInsideMM(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), MAX_COMPANIES, SetDParam(), WD_FRAMERECT_LEFT, WD_FRAMERECT_RIGHT, and WID_GL_FIRST_COMPANY.
virtual void GraphLegendWindow::OnClick | ( | Point | pt, | |
int | widget, | |||
int | click_count | |||
) | [inline, virtual] |
A click with the left mouse button has been made on the window.
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 75 of file graph_gui.cpp.
References InvalidateWindowData(), IsInsideMM(), MAX_COMPANIES, Window::SetDirty(), ToggleBit(), Window::ToggleWidgetLoweredState(), WC_COMPANY_VALUE, WC_DELIVERED_CARGO, WC_INCOME_GRAPH, WC_OPERATING_PROFIT, WC_PERFORMANCE_HISTORY, and WID_GL_FIRST_COMPANY.
virtual void GraphLegendWindow::OnInvalidateData | ( | int | data = 0 , |
|
bool | gui_scope = true | |||
) | [inline, virtual] |
Some data on this window has become invalid.
data | Information about the changed data. | |
gui_scope | Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See InvalidateWindowData() for details. |
Reimplemented from Window.
Definition at line 94 of file graph_gui.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), Window::RaiseWidget(), SetBit(), and WID_GL_FIRST_COMPANY.