Public Member Functions | |
| GraphLegendWindow (const 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 51 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 63 of file graph_gui.cpp.
References _current_text_dir, DrawCompanyIcon(), DrawString(), FONT_HEIGHT_NORMAL, HasBit(), IsInsideMM(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), MAX_COMPANIES, SetDParam(), WD_FRAMERECT_LEFT, WD_FRAMERECT_RIGHT, and WD_FRAMERECT_TOP.
| 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 80 of file graph_gui.cpp.
References InvalidateWindowData(), IsInsideMM(), MAX_COMPANIES, Window::SetDirty(), ToggleBit(), and Window::ToggleWidgetLoweredState().
| 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 99 of file graph_gui.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), Window::RaiseWidget(), and SetBit().
1.7.1