home *** CD-ROM | disk | FTP | other *** search
/ ring.yamanashi.ac.jp/pub/pc/freem/action/ / action.zip / a7xpg0_11.zip / a7xpg / import / SDL_syswm.d < prev    next >
Text File  |  2003-09-20  |  2KB  |  65 lines

  1. /*
  2.     SDL - Simple DirectMedia Layer
  3.     Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
  4.  
  5.     This library is free software; you can redistribute it and/or
  6.     modify it under the terms of the GNU Library General Public
  7.     License as published by the Free Software Foundation; either
  8.     version 2 of the License, or (at your option) any later version.
  9.  
  10.     This library is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.     Library General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU Library General Public
  16.     License along with this library; if not, write to the Free
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  
  19.     Sam Lantinga
  20.     slouken@devolution.com
  21. */
  22.  
  23. /* Include file for SDL custom system window manager hooks */
  24.  
  25. import SDL_version;
  26.  
  27. extern(C):
  28.  
  29. /* Your application has access to a special type of event 'SDL_SYSWMEVENT',
  30.    which contains window-manager specific information and arrives whenever
  31.    an unhandled window event occurs.  This event is ignored by default, but
  32.    you can enable it with SDL_EventState()
  33. */
  34.  
  35. //!!!import windows;!!!
  36.  
  37. alias void* HWND;
  38. alias uint UINT;
  39. alias uint WPARAM;
  40. alias uint LPARAM;
  41.  
  42. /* The windows custom event structure */
  43. struct SDL_SysWMmsg {
  44.     SDL_version _version;    // !!! "version" is a D keyword
  45.     HWND hwnd;                /* The window for the message */
  46.     UINT msg;                /* The type of message */
  47.     WPARAM wParam;            /* WORD message parameter */
  48.     LPARAM lParam;            /* LONG message parameter */
  49. }
  50.  
  51. /* The windows custom window manager information structure */
  52. struct SDL_SysWMinfo {
  53.     SDL_version _version;    // !!! "version" is a D keyword
  54.     HWND window;            /* The Win32 display window */
  55. }
  56.  
  57. /* Function prototypes */
  58. /*
  59.  * This function gives you custom hooks into the window manager information.
  60.  * It fills the structure pointed to by 'info' with custom information and
  61.  * returns 1 if the function is implemented.  If it's not implemented, or
  62.  * the version member of the 'info' structure is invalid, it returns 0. 
  63.  */
  64. int SDL_GetWMInfo(SDL_SysWMinfo *info);
  65.