src/video/mir/SDL_mirwindow.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 01 Jan 2017 18:33:28 -0800
changeset 10737 3406a0f8b041
parent 10364 4bbf64fdd9d9
child 10921 f426dbef4aa0
permissions -rw-r--r--
Updated copyright for 2017
icculus@8153
     1
/*
icculus@8153
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
icculus@8153
     4
icculus@8153
     5
  This software is provided 'as-is', without any express or implied
icculus@8153
     6
  warranty.  In no event will the authors be held liable for any damages
icculus@8153
     7
  arising from the use of this software.
icculus@8153
     8
icculus@8153
     9
  Permission is granted to anyone to use this software for any purpose,
icculus@8153
    10
  including commercial applications, and to alter it and redistribute it
icculus@8153
    11
  freely, subject to the following restrictions:
icculus@8153
    12
icculus@8153
    13
  1. The origin of this software must not be misrepresented; you must not
icculus@8153
    14
     claim that you wrote the original software. If you use this software
icculus@8153
    15
     in a product, an acknowledgment in the product documentation would be
icculus@8153
    16
     appreciated but is not required.
icculus@8153
    17
  2. Altered source versions must be plainly marked as such, and must not be
icculus@8153
    18
     misrepresented as being the original software.
icculus@8153
    19
  3. This notice may not be removed or altered from any source distribution.
icculus@8153
    20
*/
icculus@8153
    21
icculus@8153
    22
/*
icculus@8153
    23
  Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
icculus@8153
    24
*/
icculus@8153
    25
icculus@8153
    26
#ifndef _SDL_mirwindow_h
icculus@8153
    27
#define _SDL_mirwindow_h
icculus@8153
    28
icculus@8153
    29
#include "../SDL_sysvideo.h"
icculus@8153
    30
#include "SDL_syswm.h"
icculus@8153
    31
icculus@8153
    32
#include "SDL_mirvideo.h"
icculus@8153
    33
bschaefer@10089
    34
struct MIR_Window {
icculus@8153
    35
    SDL_Window* sdl_window;
bschaefer@10089
    36
    MIR_Data*   mir_data;
icculus@8153
    37
icculus@8153
    38
    MirSurface* surface;
bschaefer@10089
    39
    EGLSurface  egl_surface;
bschaefer@10089
    40
};
icculus@8153
    41
icculus@8153
    42
icculus@8153
    43
extern int
icculus@8153
    44
MIR_CreateWindow(_THIS, SDL_Window* window);
icculus@8153
    45
icculus@8153
    46
extern void
icculus@8153
    47
MIR_DestroyWindow(_THIS, SDL_Window* window);
icculus@8153
    48
icculus@8153
    49
extern void
icculus@8153
    50
MIR_SetWindowFullscreen(_THIS, SDL_Window* window,
icculus@8153
    51
                        SDL_VideoDisplay* display,
icculus@8153
    52
                        SDL_bool fullscreen);
icculus@8153
    53
icculus@8153
    54
extern void
icculus@8153
    55
MIR_MaximizeWindow(_THIS, SDL_Window* window);
icculus@8153
    56
icculus@8153
    57
extern void
icculus@8153
    58
MIR_MinimizeWindow(_THIS, SDL_Window* window);
icculus@8153
    59
icculus@8153
    60
extern void
icculus@8153
    61
MIR_RestoreWindow(_THIS, SDL_Window* window);
icculus@8153
    62
bschaefer@10089
    63
extern void
bschaefer@10089
    64
MIR_HideWindow(_THIS, SDL_Window* window);
bschaefer@10089
    65
icculus@8153
    66
extern SDL_bool
icculus@8153
    67
MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info);
icculus@8153
    68
bschaefer@10089
    69
extern void
bschaefer@10089
    70
MIR_SetWindowSize(_THIS, SDL_Window* window);
bschaefer@10089
    71
bschaefer@10089
    72
extern void
bschaefer@10089
    73
MIR_SetWindowMinimumSize(_THIS, SDL_Window* window);
bschaefer@10089
    74
bschaefer@10089
    75
extern void
bschaefer@10089
    76
MIR_SetWindowMaximumSize(_THIS, SDL_Window* window);
bschaefer@10089
    77
bschaefer@10089
    78
extern void
bschaefer@10089
    79
MIR_SetWindowTitle(_THIS, SDL_Window* window);
bschaefer@10089
    80
brandon@10299
    81
extern void
brandon@10299
    82
MIR_SetWindowGrab(_THIS, SDL_Window* window, SDL_bool grabbed);
brandon@10299
    83
brandon@10364
    84
extern int
brandon@10364
    85
MIR_SetWindowGammaRamp(_THIS, SDL_Window* window, Uint16 const* ramp);
brandon@10364
    86
brandon@10364
    87
extern int
brandon@10364
    88
MIR_GetWindowGammaRamp(_THIS, SDL_Window* window, Uint16* ramp);
brandon@10299
    89
philipp@10093
    90
#endif /* _SDL_mirwindow_h */
icculus@8154
    91
icculus@8154
    92
/* vi: set ts=4 sw=4 expandtab: */
icculus@8154
    93