src/window.h
branchNewGRF_ports
changeset 6870 ca3fd1fbe311
parent 6743 cabfaa4a0295
child 6871 5a9dc001e1ad
equal deleted inserted replaced
6869:76282d3b748d 6870:ca3fd1fbe311
   376 struct order_d {
   376 struct order_d {
   377 	int sel;
   377 	int sel;
   378 };
   378 };
   379 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(order_d));
   379 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(order_d));
   380 
   380 
   381 struct traindetails_d {
   381 struct vehicledetails_d {
   382 	byte tab;
   382 	byte tab;
   383 };
   383 };
   384 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(traindetails_d));
   384 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vehicledetails_d));
   385 
   385 
   386 struct smallmap_d {
   386 struct smallmap_d {
   387 	int32 scroll_x;
   387 	int32 scroll_x;
   388 	int32 scroll_y;
   388 	int32 scroll_y;
   389 	int32 subscroll;
   389 	int32 subscroll;
   563 };
   563 };
   564 
   564 
   565 /* window.cpp */
   565 /* window.cpp */
   566 void CallWindowEventNP(Window *w, int event);
   566 void CallWindowEventNP(Window *w, int event);
   567 void CallWindowTickEvent();
   567 void CallWindowTickEvent();
       
   568 
       
   569 /**
       
   570  * Marks the window as dirty for repaint.
       
   571  *
       
   572  * @ingroup dirty
       
   573  */
   568 void SetWindowDirty(const Window *w);
   574 void SetWindowDirty(const Window *w);
   569 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
   575 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
   570 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
   576 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
   571 
   577 
   572 Window *FindWindowById(WindowClass cls, WindowNumber number);
   578 Window *FindWindowById(WindowClass cls, WindowNumber number);