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 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>
25 
26 #include <stdbool.h>
27 
28 #ifdef __cplusplus
29 
33 extern "C" {
34 #endif
35 
36 // Functions in this pragma section are to be deprecated
37 #pragma GCC diagnostic push
38 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
39 
41  int width, int height,
42  MirPixelFormat format)
43 __attribute__((deprecated("Use mir_create_normal_window_spec() instead")));
44 
45 MirSurfaceSpec*
47  int width,
48  int height,
49  MirPixelFormat format,
50  MirSurface* parent,
51  MirRectangle* rect,
52  MirEdgeAttachment edge)
53 __attribute__((deprecated("Use mir_specify_menu() instead")));
54 
55 MirSurfaceSpec*
57  int width, int height,
58  MirPixelFormat format,
59  MirSurface* parent,
60  MirRectangle* zone)
61 __attribute__((deprecated("Use mir_create_tip_window_spec() instead")));
62 
63 MirSurfaceSpec*
65  int width, int height,
66  MirPixelFormat format,
67  MirSurface* parent,
68  MirRectangle* rect,
69  MirEdgeAttachment edge)
70 __attribute__((deprecated("Use mir_create_tip_window_spec() instead")));
71 
72 MirSurfaceSpec*
74  int width, int height,
75  MirPixelFormat format,
76  MirSurface* parent)
77 __attribute__((deprecated("Use mir_create_modal_dialog_window_spec() instead")));
78 
79 MirSurfaceSpec*
81  int width, int height,
82  MirPixelFormat format)
83 __attribute__((deprecated("Use mir_create_dialog_window_spec() instead")));
84 
85 MirSurfaceSpec* mir_create_surface_spec(MirConnection* connection)
86 __attribute__((deprecated("Use mir_create_window_spec() instead")));
87 
88 MirSurfaceSpec*
90 __attribute__((deprecated("Use mir_create_window_spec() instead")));
91 
92 void mir_surface_spec_set_parent(MirSurfaceSpec* spec, MirSurface* parent)
93 __attribute__((deprecated("Use mir_window_spec_set_parent() instead")));
94 
105 int mir_surface_get_swapinterval(MirSurface* surface)
106 __attribute__((deprecated("This will soon be a property of the backing content")));
107 
108 void mir_surface_spec_set_type(MirSurfaceSpec* spec, MirSurfaceType type)
109 __attribute__((deprecated("use mir_window_spec_set_type() instead")));
110 
111 void mir_surface_spec_set_name(MirSurfaceSpec* spec, char const* name)
112 __attribute__((deprecated("use mir_window_spec_set_name() instead")));
113 
114 void mir_surface_spec_set_width(MirSurfaceSpec* spec, unsigned width)
115 __attribute__((deprecated("use mir_window_spec_set_width() instead")));
116 
117 void mir_surface_spec_set_height(MirSurfaceSpec* spec, unsigned height)
118 __attribute__((deprecated("use mir_window_spec_set_height() instead")));
119 
120 void mir_surface_spec_set_width_increment(MirSurfaceSpec* spec, unsigned width_inc)
121 __attribute__((deprecated("use mir_window_spec_set_width_increment() instead")));
122 
123 void mir_surface_spec_set_height_increment(MirSurfaceSpec* spec, unsigned height_inc)
124 __attribute__((deprecated("use mir_window_spec_set_height_increment() instead")));
125 
126 void mir_surface_spec_set_min_width(MirSurfaceSpec* spec, unsigned min_width)
127 __attribute__((deprecated("use mir_window_spec_set_min_width() instead")));
128 
129 void mir_surface_spec_set_min_height(MirSurfaceSpec* spec, unsigned min_height)
130 __attribute__((deprecated("use mir_window_spec_set_min_height() instead")));
131 
132 void mir_surface_spec_set_max_width(MirSurfaceSpec* spec, unsigned max_width)
133 __attribute__((deprecated("use mir_window_spec_set_max_width() instead")));
134 
135 void mir_surface_spec_set_max_height(MirSurfaceSpec* spec, unsigned max_height)
136 __attribute__((deprecated("use mir_window_spec_set_max_height() instead")));
137 
138 void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
139 __attribute__((deprecated("use mir_window_spec_set_min_aspect_ratio() instead")));
140 
141 void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
142 __attribute__((deprecated("use mir_window_spec_set_max_aspect_ratio() instead")));
143 
144 void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec* spec, uint32_t output_id)
145 __attribute__((deprecated("use mir_window_spec_set_fullscreen_on_output() instead")));
146 
147 void mir_surface_spec_set_preferred_orientation(MirSurfaceSpec* spec, MirOrientationMode mode)
148 __attribute__((deprecated("use mir_window_spec_set_preferred_orientation() instead")));
149 
150 bool mir_surface_spec_attach_to_foreign_parent(MirSurfaceSpec* spec,
151  MirPersistentId* parent,
152  MirRectangle* attachment_rect,
153  MirEdgeAttachment edge)
154 __attribute__((deprecated("use mir_window_spec_attach_to_foreign_parent() instead")));
155 
156 void mir_surface_spec_set_state(MirSurfaceSpec* spec, MirSurfaceState state)
157 __attribute__((deprecated("use mir_window_spec_set_state() instead")));
158 
159 void mir_surface_spec_release(MirSurfaceSpec* spec)
160 __attribute__((deprecated("use mir_window_spec_release() instead")));
161 
162 void mir_surface_spec_set_input_shape(MirSurfaceSpec* spec,
163  MirRectangle const *rectangles,
164  size_t n_rects)
165 __attribute__((deprecated("use mir_window_spec_set_input_shape() instead")));
166 
167 void mir_surface_spec_set_event_handler(MirSurfaceSpec* spec,
169  void* context)
170 __attribute__((deprecated("use mir_window_spec_set_event_handler() instead")));
171 
172 void mir_surface_spec_set_shell_chrome(MirSurfaceSpec* spec, MirShellChrome style)
173 __attribute__((deprecated("use mir_window_spec_set_shell_chrome() instead")));
174 
176 __attribute__((deprecated("use mir_window_spec_set_pointer_confinement() instead")));
177 
178 void mir_surface_spec_set_placement(MirSurfaceSpec* spec,
179  const MirRectangle* rect,
180  MirPlacementGravity rect_gravity,
181  MirPlacementGravity window_gravity,
182  MirPlacementHints placement_hints,
183  int offset_dx,
184  int offset_dy)
185 __attribute__((deprecated("use mir_window_spec_set_placement() instead")));
186 
188  int width, int height,
189  MirPixelFormat format)
190 __attribute__((deprecated("use mir_create_input_method_window_spec() instead")));
191 
192 void mir_surface_spec_set_pixel_format(MirSurfaceSpec* spec, MirPixelFormat format)
193 __attribute__((deprecated("use mir_window_spec_set_pixel_format() instead")));
194 
195 void mir_surface_spec_set_buffer_usage(MirSurfaceSpec* spec, MirBufferUsage usage)
196 __attribute__((deprecated("use mir_window_spec_set_buffer_usage() instead")));
197 
198 void mir_surface_spec_set_streams(MirSurfaceSpec* spec,
199  MirBufferStreamInfo* streams,
200  unsigned int num_streams)
201 __attribute__((deprecated("use mir_window_spec_set_streams() instead")));
202 
203 void mir_surface_apply_spec(MirSurface* surface, MirSurfaceSpec* spec)
204 __attribute__((deprecated("use mir_window_apply_spec() instead")));
205 
206 bool mir_surface_is_valid(MirSurface *surface)
207 __attribute__((deprecated("use mir_window_is_valid() instead")));
208 
209 MirWaitHandle* mir_surface_create(MirSurfaceSpec* requested_specification,
210  mir_surface_callback callback, void* context)
211 __attribute__((deprecated("use mir_create_window() instead")));
212 
213 MirSurface* mir_surface_create_sync(MirSurfaceSpec* requested_specification)
214 __attribute__((deprecated("use mir_create_window_sync() instead")));
215 
217  MirSurface *surface,
218  mir_surface_callback callback,
219  void *context)
220 __attribute__((deprecated("use mir_window_release() instead")));
221 
222 void mir_surface_release_sync(MirSurface *surface)
223 __attribute__((deprecated("use mir_window_release_sync() instead")));
224 
225 void mir_surface_set_event_handler(MirSurface *surface,
227  void* context)
228 __attribute__((deprecated("use mir_window_set_event_handler() instead")));
229 
231 __attribute__((deprecated("use mir_window_get_buffer_stream() instead")));
232 
233 char const* mir_surface_get_error_message(MirSurface *surface)
234 __attribute__((deprecated("use mir_window_get_error_message() instead")));
235 
236 void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters)
237 __attribute__((deprecated("use mir_window_get_parameters() instead")));
238 
239 MirSurfaceType mir_surface_get_type(MirSurface* surface)
240 __attribute__((deprecated("use mir_window_get_type() instead")));
241 
242 MirWaitHandle* mir_surface_set_state(MirSurface *surface,
243  MirSurfaceState state)
244 __attribute__((deprecated("use mir_window_set_state() instead")));
245 
246 MirSurfaceState mir_surface_get_state(MirSurface *surface)
247 __attribute__((deprecated("use mir_window_get_state() instead")));
248 
262 MirWaitHandle* mir_surface_set_swapinterval(MirSurface* surface, int interval)
263 __attribute__((deprecated("Swap interval should be set on the backing content")));
264 
265 int mir_surface_get_dpi(MirSurface* surface)
266 __attribute__((deprecated("use mir_window_get_dpi() instead")));
267 
268 MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface)
269 __attribute__((deprecated("use mir_window_get_focus_state() instead")));
270 
272 __attribute__((deprecated("use mir_window_get_visibility() instead")));
273 
274 MirWaitHandle* mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const* parameters)
275 __attribute__((deprecated("use mir_window_configure_cursor() instead")));
276 
277 MirOrientation mir_surface_get_orientation(MirSurface *surface)
278 __attribute__((deprecated("use mir_window_get_orientation() instead")));
279 
281 __attribute__((deprecated("use mir_window_set_preferred_orientation() instead")));
282 
284 __attribute__((deprecated("use mir_window_get_preferred_orientation() instead")));
285 
286 MirWaitHandle* mir_surface_request_persistent_id(MirSurface* surface, mir_surface_id_callback callback, void* context)
287 __attribute__((deprecated("use mir_window_request_persistent_id() instead")));
288 
289 MirPersistentId* mir_surface_request_persistent_id_sync(MirSurface *surface)
290 __attribute__((deprecated("use mir_window_request_persistent_id_sync() instead")));
291 
292 void mir_surface_raise(MirSurface* surface, MirCookie const* cookie)
293 __attribute__((deprecated("use mir_window_raise() instead")));
294 
295 #pragma GCC diagnostic pop
296 
297 #ifdef __cplusplus
298 }
300 #endif
301 
302 #endif /* MIR_TOOLKIT_MIR_SURFACE_H_ */
void mir_surface_spec_set_max_height(MirSurfaceSpec *spec, unsigned max_height) __attribute__((deprecated("use mir_window_spec_set_max_height() instead")))
MirSurfaceSpec * mir_connection_create_spec_for_tip(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent, MirRectangle *rect, MirEdgeAttachment edge) __attribute__((deprecated("Use mir_create_tip_window_spec() instead")))
char const * mir_surface_get_error_message(MirSurface *surface) __attribute__((deprecated("use mir_window_get_error_message() instead")))
void mir_surface_spec_set_max_width(MirSurfaceSpec *spec, unsigned max_width) __attribute__((deprecated("use mir_window_spec_set_max_width() instead")))
MirSurfaceVisibility mir_surface_get_visibility(MirSurface *surface) __attribute__((deprecated("use mir_window_get_visibility() instead")))
void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec *spec, unsigned width, unsigned height) __attribute__((deprecated("use mir_window_spec_set_min_aspect_ratio() instead")))
struct MirBufferStream MirBufferStream
Definition: client_types.h:48
void mir_surface_spec_set_min_width(MirSurfaceSpec *spec, unsigned min_width) __attribute__((deprecated("use mir_window_spec_set_min_width() instead")))
MirWaitHandle * mir_surface_set_preferred_orientation(MirSurface *surface, MirOrientationMode orientation) __attribute__((deprecated("use mir_window_set_preferred_orientation() instead")))
void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters) __attribute__((deprecated("use mir_window_get_parameters() instead")))
struct MirCursorConfiguration MirCursorConfiguration
Opaque structure containing cursor parameterization.
Definition: mir_cursor_configuration.h:28
MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface) __attribute__((deprecated("use mir_window_get_focus_state() instead")))
bool mir_surface_spec_attach_to_foreign_parent(MirSurfaceSpec *spec, MirPersistentId *parent, MirRectangle *attachment_rect, MirEdgeAttachment edge) __attribute__((deprecated("use mir_window_spec_attach_to_foreign_parent() instead")))
MirPlacementHints
Positioning hints for aligning a window relative to a rectangle.
Definition: common.h:367
void mir_surface_spec_set_event_handler(MirSurfaceSpec *spec, mir_surface_event_callback callback, void *context) __attribute__((deprecated("use mir_window_spec_set_event_handler() instead")))
The displacement from the top-left corner of the surface.
Definition: client_types.h:380
MirPointerConfinementState
Pointer Confinement.
Definition: common.h:444
void mir_surface_spec_set_type(MirSurfaceSpec *spec, MirSurfaceType type) __attribute__((deprecated("use mir_window_spec_set_type() instead")))
void mir_surface_set_event_handler(MirSurface *surface, mir_surface_event_callback callback, void *context) __attribute__((deprecated("use mir_window_set_event_handler() instead")))
MirWaitHandle * mir_surface_create(MirSurfaceSpec *requested_specification, mir_surface_callback callback, void *context) __attribute__((deprecated("use mir_create_window() instead")))
unsigned int height
Definition: mir_image.h:27
MirSurfaceSpec * mir_create_surface_spec(MirConnection *connection) __attribute__((deprecated("Use mir_create_window_spec() instead")))
void mir_surface_spec_set_name(MirSurfaceSpec *spec, char const *name) __attribute__((deprecated("use mir_window_spec_set_name() instead")))
void mir_surface_spec_set_input_shape(MirSurfaceSpec *spec, MirRectangle const *rectangles, size_t n_rects) __attribute__((deprecated("use mir_window_spec_set_input_shape() instead")))
void mir_surface_raise(MirSurface *surface, MirCookie const *cookie) __attribute__((deprecated("use mir_window_raise() instead")))
MirSurfaceState mir_surface_get_state(MirSurface *surface) __attribute__((deprecated("use mir_window_get_state() instead")))
void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec *spec, uint32_t output_id) __attribute__((deprecated("use mir_window_spec_set_fullscreen_on_output() instead")))
void mir_surface_spec_set_width(MirSurfaceSpec *spec, unsigned width) __attribute__((deprecated("use mir_window_spec_set_width() instead")))
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:269
int mir_surface_get_dpi(MirSurface *surface) __attribute__((deprecated("use mir_window_get_dpi() instead")))
unsigned int width
Definition: mir_image.h:26
struct MirWaitHandle MirWaitHandle
Returned by asynchronous functions.
Definition: client_types.h:72
MirWaitHandle * mir_surface_set_swapinterval(MirSurface *surface, int interval) __attribute__((deprecated("Swap interval should be set on the backing content")))
Set the swapinterval for the default stream.
MirWaitHandle * mir_surface_release(MirSurface *surface, mir_surface_callback callback, void *context) __attribute__((deprecated("use mir_window_release() instead")))
MirPersistentId * mir_surface_request_persistent_id_sync(MirSurface *surface) __attribute__((deprecated("use mir_window_request_persistent_id_sync() instead")))
MirSurface * mir_surface_create_sync(MirSurfaceSpec *requested_specification) __attribute__((deprecated("use mir_create_window_sync() instead")))
MirSurfaceSpec * mir_connection_create_spec_for_changes(MirConnection *connection) __attribute__((deprecated("Use mir_create_window_spec() instead")))
MirSurfaceState
Definition: common.h:121
MirOrientation mir_surface_get_orientation(MirSurface *surface) __attribute__((deprecated("use mir_window_get_orientation() instead")))
void mir_surface_spec_set_width_increment(MirSurfaceSpec *spec, unsigned width_inc) __attribute__((deprecated("use mir_window_spec_set_width_increment() instead")))
void mir_surface_spec_set_parent(MirSurfaceSpec *spec, MirSurface *parent) __attribute__((deprecated("Use mir_window_spec_set_parent() instead")))
void mir_surface_spec_set_streams(MirSurfaceSpec *spec, MirBufferStreamInfo *streams, unsigned int num_streams) __attribute__((deprecated("use mir_window_spec_set_streams() instead")))
void mir_surface_release_sync(MirSurface *surface) __attribute__((deprecated("use mir_window_release_sync() instead")))
struct MirConnection MirConnection
Definition: client_types.h:40
void(* mir_surface_event_callback)(MirSurface *surface, MirEvent const *event, void *context) __attribute__((deprecated("Use MirWindowEventCallback instead")))
Definition: client_types.h:550
MirSurfaceSpec * mir_connection_create_spec_for_normal_surface(MirConnection *connection, int width, int height, MirPixelFormat format) __attribute__((deprecated("Use mir_create_normal_window_spec() instead")))
struct MirCookie MirCookie
Definition: event.h:81
void mir_surface_spec_set_shell_chrome(MirSurfaceSpec *spec, MirShellChrome style) __attribute__((deprecated("use mir_window_spec_set_shell_chrome() instead")))
MirSurfaceSpec * mir_connection_create_spec_for_input_method(MirConnection *connection, int width, int height, MirPixelFormat format) __attribute__((deprecated("use mir_create_input_method_window_spec() instead")))
MirBufferUsage
MirBufferUsage specifies how a surface can and will be used.
Definition: client_types.h:178
MirSurfaceType
Definition: common.h:91
void mir_surface_spec_set_height(MirSurfaceSpec *spec, unsigned height) __attribute__((deprecated("use mir_window_spec_set_height() instead")))
MirSurfaceType mir_surface_get_type(MirSurface *surface) __attribute__((deprecated("use mir_window_get_type() instead")))
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:239
void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec *spec, unsigned width, unsigned height) __attribute__((deprecated("use mir_window_spec_set_max_aspect_ratio() instead")))
void mir_surface_spec_set_height_increment(MirSurfaceSpec *spec, unsigned height_inc) __attribute__((deprecated("use mir_window_spec_set_height_increment() instead")))
MirSurfaceFocusState
Definition: common.h:153
MirSurfaceVisibility
Definition: common.h:165
MirShellChrome
Shell chrome.
Definition: common.h:432
void(* mir_surface_callback)(MirSurface *surface, void *client_context) __attribute__((deprecated("Use MirWindowCallback instead")))
Definition: client_types.h:547
MirWaitHandle * mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const *parameters) __attribute__((deprecated("use mir_window_configure_cursor() instead")))
void(* mir_surface_id_callback)(MirSurface *surface, MirPersistentId *id, void *context) __attribute__((deprecated("Use MirWindowIdCallback instead")))
Definition: client_types.h:554
MirConnectedCallback mir_connected_callback __attribute__((deprecated("Use MirConnectedCallback instead")))
Release a platform message.
Definition: client_types.h:85
MirSurfaceSpec * mir_connection_create_spec_for_tooltip(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent, MirRectangle *zone) __attribute__((deprecated("Use mir_create_tip_window_spec() instead")))
MirOrientationMode mir_surface_get_preferred_orientation(MirSurface *surface) __attribute__((deprecated("use mir_window_get_preferred_orientation() instead")))
MirSurfaceSpec * mir_connection_create_spec_for_dialog(MirConnection *connection, int width, int height, MirPixelFormat format) __attribute__((deprecated("Use mir_create_dialog_window_spec() instead")))
char const * name
Definition: client_types.h:170
Definition: client_types.h:387
MirWaitHandle * mir_surface_request_persistent_id(MirSurface *surface, mir_surface_id_callback callback, void *context) __attribute__((deprecated("use mir_window_request_persistent_id() instead")))
int mir_surface_get_swapinterval(MirSurface *surface) __attribute__((deprecated("This will soon be a property of the backing content")))
void mir_surface_spec_set_pixel_format(MirSurfaceSpec *spec, MirPixelFormat format) __attribute__((deprecated("use mir_window_spec_set_pixel_format() instead")))
uint32_t output_id
The id of the output to place the surface in.
Definition: client_types.h:183
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) __attribute__((deprecated("use mir_window_spec_set_placement() instead")))
MirOrientationMode
Definition: common.h:285
MirWaitHandle * mir_surface_set_state(MirSurface *surface, MirSurfaceState state) __attribute__((deprecated("use mir_window_set_state() instead")))
void mir_surface_spec_set_pointer_confinement(MirSurfaceSpec *spec, MirPointerConfinementState state) __attribute__((deprecated("use mir_window_spec_set_pointer_confinement() instead")))
void mir_surface_spec_release(MirSurfaceSpec *spec) __attribute__((deprecated("use mir_window_spec_release() instead")))
void mir_surface_spec_set_min_height(MirSurfaceSpec *spec, unsigned min_height) __attribute__((deprecated("use mir_window_spec_set_min_height() instead")))
bool mir_surface_is_valid(MirSurface *surface) __attribute__((deprecated("use mir_window_is_valid() instead")))
MirSurfaceSpec * mir_connection_create_spec_for_modal_dialog(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent) __attribute__((deprecated("Use mir_create_modal_dialog_window_spec() instead")))
MirBufferStream * mir_surface_get_buffer_stream(MirSurface *surface) __attribute__((deprecated("use mir_window_get_buffer_stream() instead")))
void mir_surface_apply_spec(MirSurface *surface, MirSurfaceSpec *spec) __attribute__((deprecated("use mir_window_apply_spec() instead")))
void mir_surface_spec_set_preferred_orientation(MirSurfaceSpec *spec, MirOrientationMode mode) __attribute__((deprecated("use mir_window_spec_set_preferred_orientation() instead")))
void mir_surface_spec_set_state(MirSurfaceSpec *spec, MirSurfaceState state) __attribute__((deprecated("use mir_window_spec_set_state() instead")))
MirWindowParameters is the structure of minimum required information that you must provide to Mir in ...
Definition: client_types.h:188
MirPlacementGravity
Reference point for aligning a surface relative to a rectangle.
Definition: common.h:312
MirEdgeAttachment
Definition: common.h:299
MirSurfaceSpec * mir_connection_create_spec_for_menu(MirConnection *connection, int width, int height, MirPixelFormat format, MirSurface *parent, MirRectangle *rect, MirEdgeAttachment edge) __attribute__((deprecated("Use mir_specify_menu() instead")))
void mir_surface_spec_set_buffer_usage(MirSurfaceSpec *spec, MirBufferUsage usage) __attribute__((deprecated("use mir_window_spec_set_buffer_usage() instead")))

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017