Atlas - SDL_mirsym.h

Home / ext / SDL2 / src / video / mir Lines: 1 | Size: 9713 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/* 2 Simple DirectMedia Layer 3 Copyright (C) 1997-2018 Sam Lantinga <[email protected]> 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 22/* *INDENT-OFF* */ 23 24#ifndef SDL_MIR_MODULE 25#define SDL_MIR_MODULE(modname) 26#endif 27 28#ifndef SDL_MIR_SYM 29#define SDL_MIR_SYM(rc,fn,params) 30#endif 31 32#ifndef SDL_MIR_SYM_CONST 33#define SDL_MIR_SYM_CONST(type, name) 34#endif 35 36SDL_MIR_MODULE(MIR_CLIENT) 37SDL_MIR_SYM(MirWindow *,mir_create_window_sync,(MirWindowSpec* spec)) 38SDL_MIR_SYM(MirEGLNativeWindowType,mir_buffer_stream_get_egl_native_window,(MirBufferStream *surface)) 39SDL_MIR_SYM(bool,mir_buffer_stream_get_graphics_region,(MirBufferStream *stream, MirGraphicsRegion *graphics_region)) 40SDL_MIR_SYM(void,mir_buffer_stream_swap_buffers_sync,(MirBufferStream *stream)) 41SDL_MIR_SYM(void,mir_window_set_event_handler,(MirWindow* window, MirWindowEventCallback callback, void* context)) 42SDL_MIR_SYM(MirWindowSpec*,mir_create_normal_window_spec,(MirConnection *connection, int width, int height)) 43SDL_MIR_SYM(MirWindowSpec*,mir_create_window_spec,(MirConnection *connection)) 44SDL_MIR_SYM(void,mir_window_spec_set_buffer_usage,(MirWindowSpec *spec, MirBufferUsage usage)) 45SDL_MIR_SYM(void,mir_window_spec_set_name,(MirWindowSpec *spec, char const *name)) 46SDL_MIR_SYM(void,mir_window_spec_release,(MirWindowSpec *spec)) 47SDL_MIR_SYM(void,mir_window_spec_set_width,(MirWindowSpec *spec, unsigned width)) 48SDL_MIR_SYM(void,mir_window_spec_set_height,(MirWindowSpec *spec, unsigned height)) 49SDL_MIR_SYM(void,mir_window_spec_set_min_width,(MirWindowSpec *spec, unsigned min_width)) 50SDL_MIR_SYM(void,mir_window_spec_set_min_height,(MirWindowSpec *spec, unsigned min_height)) 51SDL_MIR_SYM(void,mir_window_spec_set_max_width,(MirWindowSpec *spec, unsigned max_width)) 52SDL_MIR_SYM(void,mir_window_spec_set_max_height,(MirWindowSpec *spec, unsigned max_height)) 53SDL_MIR_SYM(void,mir_window_spec_set_type,(MirWindowSpec *spec, MirWindowType type)) 54SDL_MIR_SYM(void,mir_window_spec_set_state,(MirWindowSpec *spec, MirWindowState state)) 55SDL_MIR_SYM(void,mir_window_spec_set_pointer_confinement,(MirWindowSpec *spec, MirPointerConfinementState state)) 56SDL_MIR_SYM(void,mir_window_spec_set_pixel_format,(MirWindowSpec *spec, MirPixelFormat pixel_format)) 57SDL_MIR_SYM(void,mir_window_spec_set_cursor_name,(MirWindowSpec *spec, char const* cursor_name)) 58SDL_MIR_SYM(void,mir_window_apply_spec,(MirWindow* window, MirWindowSpec* spec)) 59SDL_MIR_SYM(void,mir_window_get_parameters,(MirWindow *window, MirWindowParameters *params)) 60SDL_MIR_SYM(MirBufferStream*,mir_window_get_buffer_stream,(MirWindow* window)) 61SDL_MIR_SYM(MirCursorConfiguration*,mir_cursor_configuration_from_buffer_stream,(MirBufferStream const* stream, int hot_x, int hot_y)) 62SDL_MIR_SYM(MirBufferStream*,mir_connection_create_buffer_stream_sync,(MirConnection *connection, int w, int h, MirPixelFormat format, MirBufferUsage usage)) 63SDL_MIR_SYM(MirKeyboardAction,mir_keyboard_event_action,(MirKeyboardEvent const *event)) 64SDL_MIR_SYM(xkb_keysym_t,mir_keyboard_event_key_code,(MirKeyboardEvent const *event)) 65SDL_MIR_SYM(int,mir_keyboard_event_scan_code,(MirKeyboardEvent const *event)) 66SDL_MIR_SYM(bool,mir_pointer_event_button_state,(MirPointerEvent const *event, MirPointerButton button)) 67SDL_MIR_SYM(MirPointerButtons,mir_pointer_event_buttons,(MirPointerEvent const *event)) 68SDL_MIR_SYM(MirInputDeviceId,mir_input_event_get_device_id,(MirInputEvent const* ev)) 69SDL_MIR_SYM(MirTouchId,mir_touch_event_id,(MirTouchEvent const *event, size_t touch_index)) 70SDL_MIR_SYM(float,mir_touch_event_axis_value,(MirTouchEvent const *event, size_t touch_index, MirTouchAxis axis)) 71SDL_MIR_SYM(MirTouchAction,mir_touch_event_action,(MirTouchEvent const *event, size_t touch_index)) 72SDL_MIR_SYM(MirPointerAction,mir_pointer_event_action,(MirPointerEvent const *event)) 73SDL_MIR_SYM(float,mir_pointer_event_axis_value,(MirPointerEvent const *event, MirPointerAxis)) 74SDL_MIR_SYM(MirEventType,mir_event_get_type,(MirEvent const *event)) 75SDL_MIR_SYM(MirInputEventType,mir_input_event_get_type,(MirInputEvent const *event)) 76SDL_MIR_SYM(MirInputEvent const*,mir_event_get_input_event,(MirEvent const *event)) 77SDL_MIR_SYM(MirResizeEvent const*,mir_event_get_resize_event,(MirEvent const *event)) 78SDL_MIR_SYM(MirKeyboardEvent const*,mir_input_event_get_keyboard_event,(MirInputEvent const *event)) 79SDL_MIR_SYM(MirPointerEvent const*,mir_input_event_get_pointer_event,(MirInputEvent const *event)) 80SDL_MIR_SYM(MirTouchEvent const*,mir_input_event_get_touch_event,(MirInputEvent const *event)) 81SDL_MIR_SYM(MirWindowEvent const*,mir_event_get_window_event,(MirEvent const *event)) 82SDL_MIR_SYM(unsigned int,mir_touch_event_point_count,(MirTouchEvent const *event)) 83SDL_MIR_SYM(void,mir_connection_get_available_surface_formats,(MirConnection* connection, MirPixelFormat* formats, unsigned const int format_size, unsigned int *num_valid_formats)) 84SDL_MIR_SYM(MirEGLNativeDisplayType,mir_connection_get_egl_native_display,(MirConnection *connection)) 85SDL_MIR_SYM(bool,mir_connection_is_valid,(MirConnection *connection)) 86SDL_MIR_SYM(void,mir_connection_release,(MirConnection *connection)) 87SDL_MIR_SYM(MirPixelFormat,mir_connection_get_egl_pixel_format,(MirConnection* connection, void* egldisplay, void* eglconfig)) 88SDL_MIR_SYM(MirConnection *,mir_connect_sync,(char const *server, char const *app_name)) 89SDL_MIR_SYM(char const *,mir_window_get_error_message,(MirWindow *window)) 90SDL_MIR_SYM(bool,mir_window_is_valid,(MirWindow *window)) 91SDL_MIR_SYM(void,mir_window_release_sync,(MirWindow* window)) 92SDL_MIR_SYM(void,mir_buffer_stream_release_sync,(MirBufferStream *stream)) 93SDL_MIR_SYM(void,mir_window_configure_cursor,(MirWindow* window, MirCursorConfiguration const* conf)) 94SDL_MIR_SYM(void,mir_cursor_configuration_destroy,(MirCursorConfiguration* conf)) 95SDL_MIR_SYM(int,mir_resize_event_get_width,(MirResizeEvent const* resize_event)) 96SDL_MIR_SYM(int,mir_resize_event_get_height,(MirResizeEvent const* resize_event)) 97SDL_MIR_SYM(char const*,mir_connection_get_error_message,(MirConnection* connection)) 98SDL_MIR_SYM(MirWindowAttrib,mir_window_event_get_attribute,(MirWindowEvent const* event)) 99SDL_MIR_SYM(int,mir_window_event_get_attribute_value,(MirWindowEvent const* window_event)) 100SDL_MIR_SYM(MirDisplayConfig*,mir_connection_create_display_configuration,(MirConnection* connection)) 101SDL_MIR_SYM(void,mir_display_config_release,(MirDisplayConfig* config)) 102SDL_MIR_SYM(int,mir_display_config_get_num_outputs,(MirDisplayConfig const* config)) 103SDL_MIR_SYM(MirOutput*,mir_display_config_get_mutable_output,(MirDisplayConfig* config, size_t index)) 104SDL_MIR_SYM(int,mir_output_get_num_modes,(MirOutput const* output)) 105SDL_MIR_SYM(MirOutputMode const*,mir_output_get_current_mode,(MirOutput const* output)) 106SDL_MIR_SYM(MirPixelFormat,mir_output_get_current_pixel_format,(MirOutput const* output)) 107SDL_MIR_SYM(int,mir_output_get_position_x,(MirOutput const* output)) 108SDL_MIR_SYM(int,mir_output_get_position_y,(MirOutput const* output)) 109SDL_MIR_SYM(bool,mir_output_is_enabled,(MirOutput const* output)) 110SDL_MIR_SYM(MirOutputConnectionState,mir_output_get_connection_state,(MirOutput const* output)) 111SDL_MIR_SYM(size_t,mir_output_get_preferred_mode_index,(MirOutput const* output)) 112SDL_MIR_SYM(MirOutputType,mir_output_get_type,(MirOutput const* output)) 113SDL_MIR_SYM(char const*,mir_output_type_name,(MirOutputType type)) 114SDL_MIR_SYM(void,mir_output_set_current_mode,(MirOutput* output, MirOutputMode const* mode)) 115SDL_MIR_SYM(MirOutputMode const*,mir_output_get_mode,(MirOutput const* output, size_t index)) 116SDL_MIR_SYM(int,mir_output_mode_get_width,(MirOutputMode const* mode)) 117SDL_MIR_SYM(int,mir_output_mode_get_height,(MirOutputMode const* mode)) 118SDL_MIR_SYM(double,mir_output_mode_get_refresh_rate,(MirOutputMode const* mode)) 119SDL_MIR_SYM(bool,mir_output_is_gamma_supported,(MirOutput const* output)) 120SDL_MIR_SYM(uint32_t,mir_output_get_gamma_size,(MirOutput const* output)) 121SDL_MIR_SYM(void,mir_output_get_gamma,(MirOutput const* output, uint16_t* red, uint16_t* green, uint16_t* blue, uint32_t size)) 122SDL_MIR_SYM(void,mir_output_set_gamma,(MirOutput* output, uint16_t const* red, uint16_t const* green, uint16_t const* blue, uint32_t size)) 123 124SDL_MIR_SYM_CONST(char const*,mir_omnidirectional_resize_cursor_name) 125SDL_MIR_SYM_CONST(char const*,mir_busy_cursor_name) 126SDL_MIR_SYM_CONST(char const*,mir_arrow_cursor_name) 127SDL_MIR_SYM_CONST(char const*,mir_caret_cursor_name) 128SDL_MIR_SYM_CONST(char const*,mir_vertical_resize_cursor_name) 129SDL_MIR_SYM_CONST(char const*,mir_horizontal_resize_cursor_name) 130SDL_MIR_SYM_CONST(char const*,mir_open_hand_cursor_name) 131SDL_MIR_SYM_CONST(char const*,mir_closed_hand_cursor_name) 132SDL_MIR_SYM_CONST(char const*,mir_disabled_cursor_name) 133 134SDL_MIR_MODULE(XKBCOMMON) 135SDL_MIR_SYM(int,xkb_keysym_to_utf8,(xkb_keysym_t keysym, char *buffer, size_t size)) 136 137#undef SDL_MIR_MODULE 138#undef SDL_MIR_SYM 139#undef SDL_MIR_SYM_CONST 140 141/* *INDENT-ON* */ 142 143/* vi: set ts=4 sw=4 expandtab: */ 144
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.