Buckets:
| /* | |
| Simple DirectMedia Layer | |
| Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org> | |
| This software is provided 'as-is', without any express or implied | |
| warranty. In no event will the authors be held liable for any damages | |
| arising from the use of this software. | |
| Permission is granted to anyone to use this software for any purpose, | |
| including commercial applications, and to alter it and redistribute it | |
| freely, subject to the following restrictions: | |
| 1. The origin of this software must not be misrepresented; you must not | |
| claim that you wrote the original software. If you use this software | |
| in a product, an acknowledgment in the product documentation would be | |
| appreciated but is not required. | |
| 2. Altered source versions must be plainly marked as such, and must not be | |
| misrepresented as being the original software. | |
| 3. This notice may not be removed or altered from any source distribution. | |
| */ | |
| /** | |
| * \file SDL_syswm.h | |
| * | |
| * Include file for SDL custom system window manager hooks. | |
| */ | |
| /* Set up for C function definitions, even when using C++ */ | |
| /* *INDENT-OFF* */ | |
| extern "C" { | |
| /* *INDENT-ON* */ | |
| /** | |
| * \file SDL_syswm.h | |
| * | |
| * Your application has access to a special type of event ::SDL_SYSWMEVENT, | |
| * which contains window-manager specific information and arrives whenever | |
| * an unhandled window event occurs. This event is ignored by default, but | |
| * you can enable it with SDL_EventState(). | |
| */ | |
| struct SDL_SysWMinfo; | |
| /* This is the structure for custom window manager events */ | |
| /* conflicts with Quickdraw.h */ | |
| /* matches the re-define above */ | |
| typedef struct _NSWindow NSWindow; | |
| typedef struct _UIWindow UIWindow; | |
| /** | |
| * These are the various supported windowing subsystems | |
| */ | |
| typedef enum | |
| { | |
| SDL_SYSWM_UNKNOWN, | |
| SDL_SYSWM_WINDOWS, | |
| SDL_SYSWM_X11, | |
| SDL_SYSWM_DIRECTFB, | |
| SDL_SYSWM_COCOA, | |
| SDL_SYSWM_UIKIT, | |
| } SDL_SYSWM_TYPE; | |
| /** | |
| * The custom event structure. | |
| */ | |
| struct SDL_SysWMmsg | |
| { | |
| SDL_version version; | |
| SDL_SYSWM_TYPE subsystem; | |
| union | |
| { | |
| struct { | |
| HWND hwnd; /**< The window for the message */ | |
| UINT msg; /**< The type of message */ | |
| WPARAM wParam; /**< WORD message parameter */ | |
| LPARAM lParam; /**< LONG message parameter */ | |
| } win; | |
| struct { | |
| XEvent event; | |
| } x11; | |
| struct { | |
| DFBEvent event; | |
| } dfb; | |
| struct | |
| { | |
| /* No Cocoa window events yet */ | |
| } cocoa; | |
| struct | |
| { | |
| /* No UIKit window events yet */ | |
| } uikit; | |
| /* Can't have an empty union */ | |
| int dummy; | |
| } msg; | |
| }; | |
| /** | |
| * The custom window manager information structure. | |
| * | |
| * When this structure is returned, it holds information about which | |
| * low level system it is using, and will be one of SDL_SYSWM_TYPE. | |
| */ | |
| struct SDL_SysWMinfo | |
| { | |
| SDL_version version; | |
| SDL_SYSWM_TYPE subsystem; | |
| union | |
| { | |
| struct | |
| { | |
| HWND window; /**< The window handle */ | |
| } win; | |
| struct | |
| { | |
| Display *display; /**< The X11 display */ | |
| Window window; /**< The X11 window */ | |
| } x11; | |
| struct | |
| { | |
| IDirectFB *dfb; /**< The directfb main interface */ | |
| IDirectFBWindow *window; /**< The directfb window handle */ | |
| IDirectFBSurface *surface; /**< The directfb client surface */ | |
| } dfb; | |
| struct | |
| { | |
| NSWindow *window; /* The Cocoa window */ | |
| } cocoa; | |
| struct | |
| { | |
| UIWindow *window; /* The UIKit window */ | |
| } uikit; | |
| /* Can't have an empty union */ | |
| int dummy; | |
| } info; | |
| }; | |
| typedef struct SDL_SysWMinfo SDL_SysWMinfo; | |
| /* Function prototypes */ | |
| /** | |
| * \brief This function allows access to driver-dependent window information. | |
| * | |
| * \param window The window about which information is being requested | |
| * \param info This structure must be initialized with the SDL version, and is | |
| * then filled in with information about the given window. | |
| * | |
| * \return SDL_TRUE if the function is implemented and the version member of | |
| * the \c info struct is valid, SDL_FALSE otherwise. | |
| * | |
| * You typically use this function like this: | |
| * \code | |
| * SDL_SysWMinfo info; | |
| * SDL_VERSION(&info.version); | |
| * if ( SDL_GetWindowWMInfo(&info) ) { ... } | |
| * \endcode | |
| */ | |
| extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowWMInfo(SDL_Window * window, | |
| SDL_SysWMinfo * info); | |
| /* Ends C function definitions when using C++ */ | |
| /* *INDENT-OFF* */ | |
| } | |
| /* *INDENT-ON* */ | |
| /* vi: set ts=4 sw=4 expandtab: */ | |
Xet Storage Details
- Size:
- 6.23 kB
- Xet hash:
- 15e66ec2d2e17efb4b6d15bef0fabe18f1de6365aedfba455f56fd538675cc8d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.