src/video/mir/SDL_mirwindow.h
changeset 10089 25fda20d0173
parent 9998 f67cf37e9cd4
child 10093 7eb2075bdc0b
equal deleted inserted replaced
10088:33bee97dbcbb 10089:25fda20d0173
    29 #include "../SDL_sysvideo.h"
    29 #include "../SDL_sysvideo.h"
    30 #include "SDL_syswm.h"
    30 #include "SDL_syswm.h"
    31 
    31 
    32 #include "SDL_mirvideo.h"
    32 #include "SDL_mirvideo.h"
    33 
    33 
    34 typedef struct {
    34 struct MIR_Window {
    35     SDL_Window* sdl_window;
    35     SDL_Window* sdl_window;
    36     MIR_Data* mir_data;
    36     MIR_Data*   mir_data;
    37 
    37 
    38     MirSurface* surface;
    38     MirSurface* surface;
    39     EGLSurface egl_surface;
    39     EGLSurface  egl_surface;
    40 } MIR_Window;
    40 };
    41 
    41 
    42 
    42 
    43 extern int
    43 extern int
    44 MIR_CreateWindow(_THIS, SDL_Window* window);
    44 MIR_CreateWindow(_THIS, SDL_Window* window);
    45 
    45 
    58 MIR_MinimizeWindow(_THIS, SDL_Window* window);
    58 MIR_MinimizeWindow(_THIS, SDL_Window* window);
    59 
    59 
    60 extern void
    60 extern void
    61 MIR_RestoreWindow(_THIS, SDL_Window* window);
    61 MIR_RestoreWindow(_THIS, SDL_Window* window);
    62 
    62 
       
    63 extern void
       
    64 MIR_HideWindow(_THIS, SDL_Window* window);
       
    65 
    63 extern SDL_bool
    66 extern SDL_bool
    64 MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info);
    67 MIR_GetWindowWMInfo(_THIS, SDL_Window* window, SDL_SysWMinfo* info);
    65 
    68 
    66 #endif /* _SDL_mirwindow_h */
    69 extern void
       
    70 MIR_SetWindowSize(_THIS, SDL_Window* window);
       
    71 
       
    72 extern void
       
    73 MIR_SetWindowMinimumSize(_THIS, SDL_Window* window);
       
    74 
       
    75 extern void
       
    76 MIR_SetWindowMaximumSize(_THIS, SDL_Window* window);
       
    77 
       
    78 extern void
       
    79 MIR_SetWindowTitle(_THIS, SDL_Window* window);
       
    80 
       
    81 #endif /* _SDL_mirwindow */
    67 
    82 
    68 /* vi: set ts=4 sw=4 expandtab: */
    83 /* vi: set ts=4 sw=4 expandtab: */
    69 
    84