OpenTTD Source  20241108-master-g80f628063a
graph_widget.h File Reference

Types related to the graph widgets. More...

#include "../economy_type.h"
#include "../company_type.h"

Go to the source code of this file.

Enumerations

enum  GraphLegendWidgets : WidgetID { WID_GL_BACKGROUND , WID_GL_FIRST_COMPANY , WID_GL_LAST_COMPANY = WID_GL_FIRST_COMPANY + MAX_COMPANIES - 1 }
 Widgets of the GraphLegendWindow class. More...
 
enum  GraphWidgets : WidgetID {
  WID_GRAPH_KEY_BUTTON , WID_GRAPH_BACKGROUND , WID_GRAPH_CAPTION , WID_GRAPH_GRAPH ,
  WID_GRAPH_RESIZE , WID_GRAPH_HEADER , WID_GRAPH_FOOTER , WID_GRAPH_ENABLE_CARGOES ,
  WID_GRAPH_DISABLE_CARGOES , WID_GRAPH_MATRIX , WID_GRAPH_MATRIX_SCROLLBAR , WID_PHG_DETAILED_PERFORMANCE
}
 Widgets of the BaseGraphWindow class and derived classes. More...
 
enum  PerformanceRatingDetailsWidgets : WidgetID { WID_PRD_SCORE_FIRST , WID_PRD_SCORE_LAST = WID_PRD_SCORE_FIRST + (SCORE_END - SCORE_BEGIN) - 1 , WID_PRD_COMPANY_FIRST , WID_PRD_COMPANY_LAST = WID_PRD_COMPANY_FIRST + MAX_COMPANIES - 1 }
 Widget of the PerformanceRatingDetailWindow class. More...
 

Detailed Description

Types related to the graph widgets.

Definition in file graph_widget.h.

Enumeration Type Documentation

◆ GraphLegendWidgets

Widgets of the GraphLegendWindow class.

Enumerator
WID_GL_BACKGROUND 

Background of the window.

WID_GL_FIRST_COMPANY 

First company in the legend.

WID_GL_LAST_COMPANY 

Last company in the legend.

Definition at line 17 of file graph_widget.h.

◆ GraphWidgets

Widgets of the BaseGraphWindow class and derived classes.

Enumerator
WID_GRAPH_KEY_BUTTON 

Key button.

WID_GRAPH_BACKGROUND 

Background of the window.

WID_GRAPH_CAPTION 

Caption.

WID_GRAPH_GRAPH 

Graph itself.

WID_GRAPH_RESIZE 

Resize button.

WID_GRAPH_HEADER 

Header.

WID_GRAPH_FOOTER 

Footer.

WID_GRAPH_ENABLE_CARGOES 

Enable cargoes button.

WID_GRAPH_DISABLE_CARGOES 

Disable cargoes button.

WID_GRAPH_MATRIX 

Cargo list.

WID_GRAPH_MATRIX_SCROLLBAR 

Cargo list scrollbar.

WID_PHG_DETAILED_PERFORMANCE 

Detailed performance.

Definition at line 25 of file graph_widget.h.

◆ PerformanceRatingDetailsWidgets

Widget of the PerformanceRatingDetailWindow class.

Enumerator
WID_PRD_SCORE_FIRST 

First entry in the score list.

WID_PRD_SCORE_LAST 

Last entry in the score list.

WID_PRD_COMPANY_FIRST 

First company.

WID_PRD_COMPANY_LAST 

Last company.

Definition at line 43 of file graph_widget.h.