src/window_func.h
branchnoai
changeset 9724 b39bc69bb2f2
parent 9723 eee46cb39750
child 10142 56ee7da4ad56
equal deleted inserted replaced
9723:eee46cb39750 9724:b39bc69bb2f2
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 /** @file window.h Window functions not directly related to making/drawing windows. */
     3 /** @file window_func.h Window functions not directly related to making/drawing windows. */
     4 
     4 
     5 #ifndef WINDOW_FUNC_H
     5 #ifndef WINDOW_FUNC_H
     6 #define WINDOW_FUNC_H
     6 #define WINDOW_FUNC_H
     7 
     7 
     8 #include "window_type.h"
     8 #include "window_type.h"
       
     9 #include "player_type.h"
     9 
    10 
    10 /**
    11 /**
    11  * Marks the window as dirty for repaint.
    12  * Marks the window as dirty for repaint.
    12  *
    13  *
    13  * @ingroup dirty
    14  * @ingroup dirty
    16 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
    17 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
    17 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
    18 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
    18 
    19 
    19 Window *FindWindowById(WindowClass cls, WindowNumber number);
    20 Window *FindWindowById(WindowClass cls, WindowNumber number);
    20 void DeleteWindow(Window *w);
    21 void DeleteWindow(Window *w);
    21 void DeletePlayerWindows(PlayerID pi);
       
    22 void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
    22 void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
    23 
    23 
    24 void ResizeWindow(Window *w, int x, int y);
    24 void ResizeWindow(Window *w, int x, int y);
    25 int PositionMainToolbar(Window *w);
    25 int PositionMainToolbar(Window *w);
    26 
    26