SDL  2.0
SDL_os2video.h
Go to the documentation of this file.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
4 
5  This software is provided 'as-is', without any express or implied
6  warranty. In no event will the authors be held liable for any damages
7  arising from the use of this software.
8 
9  Permission is granted to anyone to use this software for any purpose,
10  including commercial applications, and to alter it and redistribute it
11  freely, subject to the following restrictions:
12 
13  1. The origin of this software must not be misrepresented; you must not
14  claim that you wrote the original software. If you use this software
15  in a product, an acknowledgment in the product documentation would be
16  appreciated but is not required.
17  2. Altered source versions must be plainly marked as such, and must not be
18  misrepresented as being the original software.
19  3. This notice may not be removed or altered from any source distribution.
20 */
21 #include "../../SDL_internal.h"
22 
23 #ifndef SDL_os2video_h_
24 #define SDL_os2video_h_
25 
26 #include "../SDL_sysvideo.h"
27 #include "../../core/os2/SDL_os2.h"
28 
29 #define INCL_DOS
30 #define INCL_DOSERRORS
31 #define INCL_DOSPROCESS
32 #define INCL_WIN
33 #define INCL_GPI
34 #define INCL_OS2MM
35 #define INCL_DOSMEMMGR
36 #include <os2.h>
37 
38 #include "SDL_os2mouse.h"
39 #include "SDL_os2output.h"
40 
41 typedef struct SDL_VideoData {
42  HAB hab;
43  HMQ hmq;
44  OS2VIDEOOUTPUT *pOutput; /* Video output routines */
46 
47 typedef struct _WINDATA {
49  OS2VIDEOOUTPUT *pOutput; /* Video output routines */
50  HWND hwndFrame;
51  HWND hwnd;
54 
55  PVODATA pVOData; /* Video output data */
56 
57  HRGN hrgnShape;
58  HPOINTER hptrIcon;
60 
66 } WINDATA;
67 
68 typedef struct _DISPLAYDATA {
69  ULONG ulDPIHor;
70  ULONG ulDPIVer;
71  ULONG ulDPIDiag;
72 } DISPLAYDATA;
73 
74 typedef struct _MODEDATA {
75  ULONG ulDepth;
78 } MODEDATA;
79 
80 #endif /* SDL_os2video_h_ */
81 
82 /* vi: set ts=4 sw=4 expandtab: */
struct _VODATA * PVODATA
Definition: SDL_os2output.h:26
ULONG ulDPIDiag
Definition: SDL_os2video.h:71
ULONG ulDPIVer
Definition: SDL_os2video.h:70
ULONG ulDPIHor
Definition: SDL_os2video.h:69
ULONG ulDepth
Definition: SDL_os2video.h:75
ULONG ulScanLineBytes
Definition: SDL_os2video.h:77
ULONG fccColorEncoding
Definition: SDL_os2video.h:76
OS2VIDEOOUTPUT * pOutput
Definition: SDL_os2video.h:44
The type used to identify a window.
Definition: SDL_sysvideo.h:75
LONG lSkipWMMove
Definition: SDL_os2video.h:62
HWND hwndFrame
Definition: SDL_os2video.h:50
LONG lSkipWMSize
Definition: SDL_os2video.h:61
OS2VIDEOOUTPUT * pOutput
Definition: SDL_os2video.h:49
LONG lSkipWMVRNEnabled
Definition: SDL_os2video.h:64
LONG lSkipWMMouseMove
Definition: SDL_os2video.h:63
LONG lSkipWMAdjustFramePos
Definition: SDL_os2video.h:65
HWND hwnd
Definition: SDL_os2video.h:51
SDL_Window * window
Definition: SDL_os2video.h:48
PVODATA pVOData
Definition: SDL_os2video.h:55
RECTL rectlBeforeFS
Definition: SDL_os2video.h:59
HPOINTER hptrIcon
Definition: SDL_os2video.h:58
PFNWP fnUserWndProc
Definition: SDL_os2video.h:52
HRGN hrgnShape
Definition: SDL_os2video.h:57
PFNWP fnWndFrameProc
Definition: SDL_os2video.h:53