Mir
mir_surface.h
Go to the documentation of this file.
1/*
2 * Copyright © 2012-2016 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 2 or 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 */
17
18#ifndef MIR_TOOLKIT_MIR_SURFACE_H_
19#define MIR_TOOLKIT_MIR_SURFACE_H_
20
23#include <mir_toolkit/common.h>
26
27#include <stdbool.h>
28
29#ifdef __cplusplus
34extern "C" {
35#endif
36
37// Functions in this pragma section are to be deprecated
38#pragma GCC diagnostic push
39#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
40
42 int width, int height,
44MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_normal_window_spec() instead");
45
46MirSurfaceSpec*
48 int width,
49 int height,
51 MirSurface* parent,
52 MirRectangle* rect,
54MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_specify_menu() instead");
55
56MirSurfaceSpec*
58 int width, int height,
60 MirSurface* parent,
61 MirRectangle* zone)
62MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead");
63
64MirSurfaceSpec*
66 int width, int height,
68 MirSurface* parent,
69 MirRectangle* rect,
71MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead");
72
73MirSurfaceSpec*
75 int width, int height,
77 MirSurface* parent)
78MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_modal_dialog_window_spec() instead");
79
80MirSurfaceSpec*
82 int width, int height,
84MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_dialog_window_spec() instead");
85
86MirSurfaceSpec* mir_create_surface_spec(MirConnection* connection)
87MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead");
88
89MirSurfaceSpec*
91MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead");
92
93void mir_surface_spec_set_parent(MirSurfaceSpec* spec, MirSurface* parent)
94MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_parent() instead");
95
106int mir_surface_get_swapinterval(MirSurface* surface)
107MIR_FOR_REMOVAL_IN_VERSION_1("This will soon be a property of the backing content");
108
109void mir_surface_spec_set_type(MirSurfaceSpec* spec, MirSurfaceType type)
110MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_type() instead");
111
112void mir_surface_spec_set_name(MirSurfaceSpec* spec, char const* name)
113MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_name() instead");
114
115void mir_surface_spec_set_width(MirSurfaceSpec* spec, unsigned width)
116MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width() instead");
117
118void mir_surface_spec_set_height(MirSurfaceSpec* spec, unsigned height)
119MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height() instead");
120
121void mir_surface_spec_set_width_increment(MirSurfaceSpec* spec, unsigned width_inc)
122MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width_increment() instead");
123
124void mir_surface_spec_set_height_increment(MirSurfaceSpec* spec, unsigned height_inc)
125MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height_increment() instead");
126
127void mir_surface_spec_set_min_width(MirSurfaceSpec* spec, unsigned min_width)
128MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_width() instead");
129
130void mir_surface_spec_set_min_height(MirSurfaceSpec* spec, unsigned min_height)
131MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_height() instead");
132
133void mir_surface_spec_set_max_width(MirSurfaceSpec* spec, unsigned max_width)
134MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_width() instead");
135
136void mir_surface_spec_set_max_height(MirSurfaceSpec* spec, unsigned max_height)
137MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_height() instead");
138
139void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
140MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_aspect_ratio() instead");
141
142void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
143MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_aspect_ratio() instead");
144
145void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec* spec, uint32_t output_id)
146MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_fullscreen_on_output() instead");
147
149MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_preferred_orientation() instead");
150
152 MirPersistentId* parent,
153 MirRectangle* attachment_rect,
155MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_attach_to_foreign_parent() instead");
156
157void mir_surface_spec_set_state(MirSurfaceSpec* spec, MirSurfaceState state)
158MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_state() instead");
159
160void mir_surface_spec_release(MirSurfaceSpec* spec)
161MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_release() instead");
162
163void mir_surface_spec_set_input_shape(MirSurfaceSpec* spec,
164 MirRectangle const *rectangles,
165 size_t n_rects)
166MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_input_shape() instead");
167
168void mir_surface_spec_set_event_handler(MirSurfaceSpec* spec,
170 void* context)
171MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_event_handler() instead");
172
173void mir_surface_spec_set_shell_chrome(MirSurfaceSpec* spec, MirShellChrome style)
174MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_shell_chrome() instead");
175
177MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pointer_confinement() instead");
178
179void mir_surface_spec_set_placement(MirSurfaceSpec* spec,
180 const MirRectangle* rect,
181 MirPlacementGravity rect_gravity,
182 MirPlacementGravity window_gravity,
183 MirPlacementHints placement_hints,
184 int offset_dx,
185 int offset_dy)
186MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_placement() instead");
187
189 int width, int height,
191MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_input_method_window_spec() instead");
192
194MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pixel_format() instead");
195
196void mir_surface_spec_set_buffer_usage(MirSurfaceSpec* spec, MirBufferUsage usage)
197MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_buffer_usage() instead");
198
199void mir_surface_spec_set_streams(MirSurfaceSpec* spec,
200 MirBufferStreamInfo* streams,
201 unsigned int num_streams)
202MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_streams() instead");
203
204void mir_surface_apply_spec(MirSurface* surface, MirSurfaceSpec* spec)
205MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_apply_spec() instead");
206
207bool mir_surface_is_valid(MirSurface *surface)
208MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_is_valid() instead");
209
210MirWaitHandle* mir_surface_create(MirSurfaceSpec* requested_specification,
211 mir_surface_callback callback, void* context)
212MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window() instead");
213
214MirSurface* mir_surface_create_sync(MirSurfaceSpec* requested_specification)
215MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window_sync() instead");
216
218 MirSurface *surface,
219 mir_surface_callback callback,
220 void *context)
221MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release() instead");
222
223void mir_surface_release_sync(MirSurface *surface)
224MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release_sync() instead");
225
226void mir_surface_set_event_handler(MirSurface *surface,
228 void* context)
229MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_event_handler() instead");
230
232MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_buffer_stream() instead");
233
234char const* mir_surface_get_error_message(MirSurface *surface)
235MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_error_message() instead");
236
237void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters)
238MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_parameters() instead");
239
241MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_type() instead");
242
244 MirSurfaceState state)
245MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_state() instead");
246
248MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_state() instead");
249
263MirWaitHandle* mir_surface_set_swapinterval(MirSurface* surface, int interval)
264MIR_FOR_REMOVAL_IN_VERSION_1("Swap interval should be set on the backing content");
265
266int mir_surface_get_dpi(MirSurface* surface)
267MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_dpi() instead");
268
270MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_focus_state() instead");
271
273MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_visibility() instead");
274
275MirWaitHandle* mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const* parameters)
276MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_configure_cursor() instead");
277
279MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_orientation() instead");
280
282MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_preferred_orientation() instead");
283
285MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_preferred_orientation() instead");
286
287MirWaitHandle* mir_surface_request_persistent_id(MirSurface* surface, mir_surface_id_callback callback, void* context)
288MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id() instead");
289
290MirPersistentId* mir_surface_request_persistent_id_sync(MirSurface *surface)
291MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id_sync() instead");
292
293void mir_surface_raise(MirSurface* surface, MirCookie const* cookie)
294MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_raise() instead");
295
296#pragma GCC diagnostic pop
297
298#ifdef __cplusplus
299}
301#endif
302
303#endif /* MIR_TOOLKIT_MIR_SURFACE_H_ */
int width
Definition: client_types.h:1
uint32_t output_id
The id of the output to place the surface in.
Definition: client_types.h:17
char const * name
Definition: client_types.h:0
int height
Definition: client_types.h:2
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
void mir_surface_spec_release(MirSurfaceSpec *spec) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_release() instead")
void(* mir_surface_callback)(MirSurface *surface, void *client_context) MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowCallback instead")
Definition: client_types.h:570
MirSurfaceSpec * mir_connection_create_spec_for_dialog(MirConnection *connection, int width, int height, MirPixelFormat format) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_dialog_window_spec() instead")
void(* mir_surface_event_callback)(MirSurface *surface, MirEvent const *event, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowEventCallback instead")
Definition: client_types.h:573
int mir_surface_get_swapinterval(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("This will soon be a property of the backing content")
void mir_surface_spec_set_pixel_format(MirSurfaceSpec *spec, MirPixelFormat format) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pixel_format() instead")
void mir_surface_spec_set_parent(MirSurfaceSpec *spec, MirSurface *parent) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_parent() instead")
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:275
MirSurfaceVisibility
Definition: common.h:171
MirSurfaceSpec * mir_connection_create_spec_for_input_method(MirConnection *connection, int width, int height, MirPixelFormat format) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_input_method_window_spec() instead")
MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_focus_state() instead")
bool mir_surface_spec_attach_to_foreign_parent(MirSurfaceSpec *spec, MirPersistentId *parent, MirRectangle *attachment_rect, MirEdgeAttachment edge) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_attach_to_foreign_parent() instead")
MirSurfaceSpec * mir_connection_create_spec_for_tooltip(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent, MirRectangle *zone) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead")
void mir_surface_spec_set_max_height(MirSurfaceSpec *spec, unsigned max_height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_height() instead")
void mir_surface_spec_set_event_handler(MirSurfaceSpec *spec, mir_surface_event_callback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_event_handler() instead")
MirSurfaceSpec * mir_connection_create_spec_for_modal_dialog(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_modal_dialog_window_spec() instead")
MirSurfaceType mir_surface_get_type(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_type() instead")
MirSurfaceSpec * mir_create_surface_spec(MirConnection *connection) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead")
MirPointerConfinementState
Pointer Confinement.
Definition: common.h:470
void mir_surface_spec_set_height(MirSurfaceSpec *spec, unsigned height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height() instead")
MirWaitHandle * mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const *parameters) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_configure_cursor() instead")
MirBufferStream * mir_surface_get_buffer_stream(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_buffer_stream() instead")
void mir_surface_spec_set_streams(MirSurfaceSpec *spec, MirBufferStreamInfo *streams, unsigned int num_streams) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_streams() instead")
struct MirCookie MirCookie
Definition: event.h:82
void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_parameters() instead")
void mir_surface_spec_set_placement(MirSurfaceSpec *spec, const MirRectangle *rect, MirPlacementGravity rect_gravity, MirPlacementGravity window_gravity, MirPlacementHints placement_hints, int offset_dx, int offset_dy) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_placement() instead")
MirPixelFormat the EGL implementation will now set correct pixel format
Definition: mir_connection.h:350
MirShellChrome
Shell chrome.
Definition: common.h:458
void mir_surface_spec_set_name(MirSurfaceSpec *spec, char const *name) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_name() instead")
MirWaitHandle * mir_surface_set_state(MirSurface *surface, MirSurfaceState state) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_state() instead")
void mir_surface_spec_set_preferred_orientation(MirSurfaceSpec *spec, MirOrientationMode mode) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_preferred_orientation() instead")
MirWaitHandle * mir_surface_set_preferred_orientation(MirSurface *surface, MirOrientationMode orientation) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_preferred_orientation() instead")
void mir_surface_spec_set_width_increment(MirSurfaceSpec *spec, unsigned width_inc) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width_increment() instead")
void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec *spec, unsigned width, unsigned height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_aspect_ratio() instead")
char const * mir_surface_get_error_message(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_error_message() instead")
MirSurfaceState
Definition: common.h:125
MirSurfaceState mir_surface_get_state(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_state() instead")
MirSurfaceSpec * mir_connection_create_spec_for_menu(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent, MirRectangle *rect, MirEdgeAttachment edge) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_specify_menu() instead")
void mir_surface_spec_set_type(MirSurfaceSpec *spec, MirSurfaceType type) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_type() instead")
struct MirWaitHandle MirWaitHandle
Returned by asynchronous functions.
Definition: client_types.h:79
MirPlacementGravity
Reference point for aligning a surface relative to a rectangle.
Definition: common.h:318
void mir_surface_spec_set_min_height(MirSurfaceSpec *spec, unsigned min_height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_height() instead")
MirWaitHandle * mir_surface_request_persistent_id(MirSurface *surface, mir_surface_id_callback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id() instead")
void mir_surface_spec_set_height_increment(MirSurfaceSpec *spec, unsigned height_inc) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height_increment() instead")
MirSurfaceType
Definition: common.h:94
int mir_surface_get_dpi(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_dpi() instead")
void mir_surface_spec_set_input_shape(MirSurfaceSpec *spec, MirRectangle const *rectangles, size_t n_rects) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_input_shape() instead")
void mir_surface_spec_set_shell_chrome(MirSurfaceSpec *spec, MirShellChrome style) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_shell_chrome() instead")
MirSurfaceVisibility mir_surface_get_visibility(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_visibility() instead")
MirEdgeAttachment
Definition: common.h:305
MirSurfaceSpec * mir_connection_create_spec_for_tip(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent, MirRectangle *rect, MirEdgeAttachment edge) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead")
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:245
MirPlacementHints
Positioning hints for aligning a window relative to a rectangle.
Definition: common.h:373
void mir_surface_spec_set_width(MirSurfaceSpec *spec, unsigned width) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width() instead")
MirWaitHandle * mir_surface_release(MirSurface *surface, mir_surface_callback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release() instead")
void mir_surface_apply_spec(MirSurface *surface, MirSurfaceSpec *spec) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_apply_spec() instead")
void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec *spec, unsigned width, unsigned height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_aspect_ratio() instead")
MirSurfaceSpec * mir_connection_create_spec_for_changes(MirConnection *connection) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead")
MirBufferUsage
MirBufferUsage specifies how a surface can and will be used.
Definition: client_types.h:186
struct MirBufferStream MirBufferStream
Definition: client_types.h:49
void mir_surface_release_sync(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release_sync() instead")
MirOrientationMode mir_surface_get_preferred_orientation(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_preferred_orientation() instead")
MirSurfaceFocusState
Definition: common.h:159
void mir_surface_raise(MirSurface *surface, MirCookie const *cookie) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_raise() instead")
void mir_surface_set_event_handler(MirSurface *surface, mir_surface_event_callback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_event_handler() instead")
MirPersistentId * mir_surface_request_persistent_id_sync(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id_sync() instead")
void mir_surface_spec_set_state(MirSurfaceSpec *spec, MirSurfaceState state) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_state() instead")
MirSurface * mir_surface_create_sync(MirSurfaceSpec *requested_specification) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window_sync() instead")
struct MirConnection MirConnection
Definition: client_types.h:41
MirWaitHandle * mir_surface_create(MirSurfaceSpec *requested_specification, mir_surface_callback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window() instead")
MirOrientation mir_surface_get_orientation(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_orientation() instead")
void mir_surface_spec_set_pointer_confinement(MirSurfaceSpec *spec, MirPointerConfinementState state) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pointer_confinement() instead")
MirSurfaceSpec * mir_connection_create_spec_for_normal_surface(MirConnection *connection, int width, int height, MirPixelFormat format) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_normal_window_spec() instead")
void mir_surface_spec_set_buffer_usage(MirSurfaceSpec *spec, MirBufferUsage usage) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_buffer_usage() instead")
void mir_surface_spec_set_min_width(MirSurfaceSpec *spec, unsigned min_width) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_width() instead")
void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec *spec, uint32_t output_id) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_fullscreen_on_output() instead")
void mir_surface_spec_set_max_width(MirSurfaceSpec *spec, unsigned max_width) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_width() instead")
void(* mir_surface_id_callback)(MirSurface *surface, MirPersistentId *id, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowIdCallback instead")
Definition: client_types.h:577
MirOrientationMode
Definition: common.h:291
MirWaitHandle * mir_surface_set_swapinterval(MirSurface *surface, int interval) MIR_FOR_REMOVAL_IN_VERSION_1("Swap interval should be set on the backing content")
Set the swapinterval for the default stream.
bool mir_surface_is_valid(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_is_valid() instead")
The displacement from the top-left corner of the surface.
Definition: client_types.h:392
Definition: client_types.h:399
MirWindowParameters is the structure of minimum required information that you must provide to Mir in ...
Definition: client_types.h:196

Copyright © 2012-2022 Canonical Ltd.
Generated on Sun Oct 9 06:13:38 UTC 2022
This documentation is licensed under the GPL version 2 or 3.