24 #ifndef SDL_MIR_MODULE
25 #define SDL_MIR_MODULE(modname)
29 #define SDL_MIR_SYM(rc,fn,params)
32 #ifndef SDL_MIR_SYM_CONST
33 #define SDL_MIR_SYM_CONST(type, name)
38 SDL_MIR_SYM(MirEGLNativeWindowType,mir_buffer_stream_get_egl_native_window,(MirBufferStream *
surface))
39 SDL_MIR_SYM(
bool,mir_buffer_stream_get_graphics_region,(MirBufferStream *
stream, MirGraphicsRegion *graphics_region))
40 SDL_MIR_SYM(
void,mir_buffer_stream_swap_buffers_sync,(MirBufferStream *stream))
42 SDL_MIR_SYM(MirWindowSpec*,mir_create_normal_window_spec,(MirConnection *connection,
int width,
int height))
43 SDL_MIR_SYM(MirWindowSpec*,mir_create_window_spec,(MirConnection *connection))
45 SDL_MIR_SYM(
void,mir_window_spec_set_name,(MirWindowSpec *spec,
char const *
name))
46 SDL_MIR_SYM(
void,mir_window_spec_release,(MirWindowSpec *spec))
47 SDL_MIR_SYM(
void,mir_window_spec_set_width,(MirWindowSpec *spec,
unsigned width))
48 SDL_MIR_SYM(
void,mir_window_spec_set_height,(MirWindowSpec *spec,
unsigned height))
49 SDL_MIR_SYM(
void,mir_window_spec_set_min_width,(MirWindowSpec *spec,
unsigned min_width))
50 SDL_MIR_SYM(
void,mir_window_spec_set_min_height,(MirWindowSpec *spec,
unsigned min_height))
51 SDL_MIR_SYM(
void,mir_window_spec_set_max_width,(MirWindowSpec *spec,
unsigned max_width))
52 SDL_MIR_SYM(
void,mir_window_spec_set_max_height,(MirWindowSpec *spec,
unsigned max_height))
53 SDL_MIR_SYM(
void,mir_window_spec_set_type,(MirWindowSpec *spec, MirWindowType
type))
54 SDL_MIR_SYM(
void,mir_window_spec_set_state,(MirWindowSpec *spec, MirWindowState
state))
55 SDL_MIR_SYM(
void,mir_window_spec_set_pointer_confinement,(MirWindowSpec *spec, MirPointerConfinementState
state))
57 SDL_MIR_SYM(
void,mir_window_spec_set_cursor_name,(MirWindowSpec *spec,
char const* cursor_name))
58 SDL_MIR_SYM(
void,mir_window_apply_spec,(MirWindow* window, MirWindowSpec* spec))
59 SDL_MIR_SYM(
void,mir_window_get_parameters,(MirWindow *window, MirWindowParameters *
params))
60 SDL_MIR_SYM(MirBufferStream*,mir_window_get_buffer_stream,(MirWindow* window))
61 SDL_MIR_SYM(MirCursorConfiguration*,mir_cursor_configuration_from_buffer_stream,(MirBufferStream const* stream,
int hot_x,
int hot_y))
62 SDL_MIR_SYM(MirBufferStream*,mir_connection_create_buffer_stream_sync,(MirConnection *connection,
int w,
int h, MirPixelFormat
format, MirBufferUsage
usage))
63 SDL_MIR_SYM(MirKeyboardAction,mir_keyboard_event_action,(MirKeyboardEvent const *
event))
64 SDL_MIR_SYM(xkb_keysym_t,mir_keyboard_event_key_code,(MirKeyboardEvent const *
event))
65 SDL_MIR_SYM(
int,mir_keyboard_event_scan_code,(MirKeyboardEvent const *
event))
67 SDL_MIR_SYM(MirPointerButtons,mir_pointer_event_buttons,(MirPointerEvent const *event))
68 SDL_MIR_SYM(MirInputDeviceId,mir_input_event_get_device_id,(MirInputEvent const* ev))
69 SDL_MIR_SYM(MirTouchId,mir_touch_event_id,(MirTouchEvent const *event,
size_t touch_index))
70 SDL_MIR_SYM(
float,mir_touch_event_axis_value,(MirTouchEvent const *event,
size_t touch_index, MirTouchAxis
axis))
71 SDL_MIR_SYM(MirTouchAction,mir_touch_event_action,(MirTouchEvent const *event,
size_t touch_index))
72 SDL_MIR_SYM(MirPointerAction,mir_pointer_event_action,(MirPointerEvent const *event))
73 SDL_MIR_SYM(
float,mir_pointer_event_axis_value,(MirPointerEvent const *event, MirPointerAxis))
74 SDL_MIR_SYM(MirEventType,mir_event_get_type,(MirEvent const *event))
75 SDL_MIR_SYM(MirInputEventType,mir_input_event_get_type,(MirInputEvent const *event))
76 SDL_MIR_SYM(MirInputEvent const*,mir_event_get_input_event,(MirEvent const *event))
77 SDL_MIR_SYM(MirResizeEvent const*,mir_event_get_resize_event,(MirEvent const *event))
78 SDL_MIR_SYM(MirKeyboardEvent const*,mir_input_event_get_keyboard_event,(MirInputEvent const *event))
79 SDL_MIR_SYM(MirPointerEvent const*,mir_input_event_get_pointer_event,(MirInputEvent const *event))
80 SDL_MIR_SYM(MirTouchEvent const*,mir_input_event_get_touch_event,(MirInputEvent const *event))
81 SDL_MIR_SYM(MirWindowEvent const*,mir_event_get_window_event,(MirEvent const *event))
82 SDL_MIR_SYM(
unsigned int,mir_touch_event_point_count,(MirTouchEvent const *event))
83 SDL_MIR_SYM(
void,mir_connection_get_available_surface_formats,(MirConnection* connection, MirPixelFormat*
formats,
unsigned const
int format_size,
unsigned int *num_valid_formats))
84 SDL_MIR_SYM(MirEGLNativeDisplayType,mir_connection_get_egl_native_display,(MirConnection *connection))
85 SDL_MIR_SYM(
bool,mir_connection_is_valid,(MirConnection *connection))
86 SDL_MIR_SYM(
void,mir_connection_release,(MirConnection *connection))
87 SDL_MIR_SYM(MirPixelFormat,mir_connection_get_egl_pixel_format,(MirConnection* connection,
void* egldisplay,
void* eglconfig))
88 SDL_MIR_SYM(MirConnection *,mir_connect_sync,(
char const *server,
char const *app_name))
89 SDL_MIR_SYM(
char const *,mir_window_get_error_message,(MirWindow *window))
90 SDL_MIR_SYM(
bool,mir_window_is_valid,(MirWindow *window))
91 SDL_MIR_SYM(
void,mir_window_release_sync,(MirWindow* window))
92 SDL_MIR_SYM(
void,mir_buffer_stream_release_sync,(MirBufferStream *stream))
93 SDL_MIR_SYM(
void,mir_window_configure_cursor,(MirWindow* window, MirCursorConfiguration const* conf))
94 SDL_MIR_SYM(
void,mir_cursor_configuration_destroy,(MirCursorConfiguration* conf))
95 SDL_MIR_SYM(
int,mir_resize_event_get_width,(MirResizeEvent const* resize_event))
96 SDL_MIR_SYM(
int,mir_resize_event_get_height,(MirResizeEvent const* resize_event))
97 SDL_MIR_SYM(
char const*,mir_connection_get_error_message,(MirConnection* connection))
98 SDL_MIR_SYM(MirWindowAttrib,mir_window_event_get_attribute,(MirWindowEvent const* event))
99 SDL_MIR_SYM(
int,mir_window_event_get_attribute_value,(MirWindowEvent const* window_event))
100 SDL_MIR_SYM(MirDisplayConfig*,mir_connection_create_display_configuration,(MirConnection* connection))
102 SDL_MIR_SYM(
int,mir_display_config_get_num_outputs,(MirDisplayConfig const*
config))
105 SDL_MIR_SYM(MirOutputMode const*,mir_output_get_current_mode,(MirOutput const*
output))
106 SDL_MIR_SYM(MirPixelFormat,mir_output_get_current_pixel_format,(MirOutput const*
output))
110 SDL_MIR_SYM(MirOutputConnectionState,mir_output_get_connection_state,(MirOutput const*
output))
111 SDL_MIR_SYM(
size_t,mir_output_get_preferred_mode_index,(MirOutput const*
output))
115 SDL_MIR_SYM(MirOutputMode const*,mir_output_get_mode,(MirOutput const* output,
size_t index))
117 SDL_MIR_SYM(
int,mir_output_mode_get_height,(MirOutputMode const*
mode))
118 SDL_MIR_SYM(
double,mir_output_mode_get_refresh_rate,(MirOutputMode const*
mode))
119 SDL_MIR_SYM(
bool,mir_output_is_gamma_supported,(MirOutput const* output))
137 #undef SDL_MIR_MODULE
139 #undef SDL_MIR_SYM_CONST
GLfloat GLfloat GLfloat GLfloat h
#define SDL_MIR_SYM_CONST(type, name)
static screen_context_t context
GLuint const GLchar * name
GLint GLint GLsizei width
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLsizeiptr const void GLenum usage
GLubyte GLubyte GLubyte GLubyte w
static Uint32 callback(Uint32 interval, void *param)
GLint GLint GLsizei GLsizei height
EGLSurface EGLNativeWindowType * window
#define SDL_MIR_MODULE(modname)
GLuint GLuint GLsizei GLenum type
#define SDL_MIR_SYM(rc, fn, params)
int uint32_t uint32_t uint32_t uint32_t uint32_t int drmModeModeInfoPtr mode int uint32_t uint32_t uint32_t uint32_t int32_t hot_x