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
30 
34 extern "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,
44 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_normal_window_spec() instead");
45 
46 MirSurfaceSpec*
48  int width,
49  int height,
51  MirSurface* parent,
52  MirRectangle* rect,
53  MirEdgeAttachment edge)
54 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_specify_menu() instead");
55 
56 MirSurfaceSpec*
58  int width, int height,
60  MirSurface* parent,
61  MirRectangle* zone)
62 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead");
63 
64 MirSurfaceSpec*
66  int width, int height,
68  MirSurface* parent,
69  MirRectangle* rect,
70  MirEdgeAttachment edge)
71 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_tip_window_spec() instead");
72 
73 MirSurfaceSpec*
75  int width, int height,
77  MirSurface* parent)
78 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_modal_dialog_window_spec() instead");
79 
80 MirSurfaceSpec*
82  int width, int height,
84 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_dialog_window_spec() instead");
85 
86 MirSurfaceSpec* mir_create_surface_spec(MirConnection* connection)
87 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead");
88 
89 MirSurfaceSpec*
91 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead");
92 
93 void mir_surface_spec_set_parent(MirSurfaceSpec* spec, MirSurface* parent)
94 MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_parent() instead");
95 
106 int mir_surface_get_swapinterval(MirSurface* surface)
107 MIR_FOR_REMOVAL_IN_VERSION_1("This will soon be a property of the backing content");
108 
109 void mir_surface_spec_set_type(MirSurfaceSpec* spec, MirSurfaceType type)
110 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_type() instead");
111 
112 void mir_surface_spec_set_name(MirSurfaceSpec* spec, char const* name)
113 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_name() instead");
114 
115 void mir_surface_spec_set_width(MirSurfaceSpec* spec, unsigned width)
116 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width() instead");
117 
118 void mir_surface_spec_set_height(MirSurfaceSpec* spec, unsigned height)
119 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height() instead");
120 
121 void mir_surface_spec_set_width_increment(MirSurfaceSpec* spec, unsigned width_inc)
122 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width_increment() instead");
123 
124 void mir_surface_spec_set_height_increment(MirSurfaceSpec* spec, unsigned height_inc)
125 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height_increment() instead");
126 
127 void mir_surface_spec_set_min_width(MirSurfaceSpec* spec, unsigned min_width)
128 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_width() instead");
129 
130 void mir_surface_spec_set_min_height(MirSurfaceSpec* spec, unsigned min_height)
131 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_height() instead");
132 
133 void mir_surface_spec_set_max_width(MirSurfaceSpec* spec, unsigned max_width)
134 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_width() instead");
135 
136 void mir_surface_spec_set_max_height(MirSurfaceSpec* spec, unsigned max_height)
137 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_height() instead");
138 
139 void mir_surface_spec_set_min_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
140 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_aspect_ratio() instead");
141 
142 void mir_surface_spec_set_max_aspect_ratio(MirSurfaceSpec* spec, unsigned width, unsigned height)
143 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_max_aspect_ratio() instead");
144 
145 void mir_surface_spec_set_fullscreen_on_output(MirSurfaceSpec* spec, uint32_t output_id)
146 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_fullscreen_on_output() instead");
147 
148 void mir_surface_spec_set_preferred_orientation(MirSurfaceSpec* spec, MirOrientationMode mode)
149 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_preferred_orientation() instead");
150 
151 bool mir_surface_spec_attach_to_foreign_parent(MirSurfaceSpec* spec,
152  MirPersistentId* parent,
153  MirRectangle* attachment_rect,
154  MirEdgeAttachment edge)
155 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_attach_to_foreign_parent() instead");
156 
157 void mir_surface_spec_set_state(MirSurfaceSpec* spec, MirSurfaceState state)
158 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_state() instead");
159 
160 void mir_surface_spec_release(MirSurfaceSpec* spec)
161 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_release() instead");
162 
163 void mir_surface_spec_set_input_shape(MirSurfaceSpec* spec,
164  MirRectangle const *rectangles,
165  size_t n_rects)
166 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_input_shape() instead");
167 
168 void mir_surface_spec_set_event_handler(MirSurfaceSpec* spec,
170  void* context)
171 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_event_handler() instead");
172 
173 void mir_surface_spec_set_shell_chrome(MirSurfaceSpec* spec, MirShellChrome style)
174 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_shell_chrome() instead");
175 
177 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pointer_confinement() instead");
178 
179 void 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)
186 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_placement() instead");
187 
189  int width, int height,
191 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_input_method_window_spec() instead");
192 
193 void mir_surface_spec_set_pixel_format(MirSurfaceSpec* spec, MirPixelFormat format)
194 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_pixel_format() instead");
195 
196 void mir_surface_spec_set_buffer_usage(MirSurfaceSpec* spec, MirBufferUsage usage)
197 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_buffer_usage() instead");
198 
199 void mir_surface_spec_set_streams(MirSurfaceSpec* spec,
200  MirBufferStreamInfo* streams,
201  unsigned int num_streams)
202 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_streams() instead");
203 
204 void mir_surface_apply_spec(MirSurface* surface, MirSurfaceSpec* spec)
205 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_apply_spec() instead");
206 
207 bool mir_surface_is_valid(MirSurface *surface)
208 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_is_valid() instead");
209 
210 MirWaitHandle* mir_surface_create(MirSurfaceSpec* requested_specification,
211  mir_surface_callback callback, void* context)
212 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window() instead");
213 
214 MirSurface* mir_surface_create_sync(MirSurfaceSpec* requested_specification)
215 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window_sync() instead");
216 
218  MirSurface *surface,
219  mir_surface_callback callback,
220  void *context)
221 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release() instead");
222 
223 void mir_surface_release_sync(MirSurface *surface)
224 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_release_sync() instead");
225 
226 void mir_surface_set_event_handler(MirSurface *surface,
228  void* context)
229 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_event_handler() instead");
230 
232 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_buffer_stream() instead");
233 
234 char const* mir_surface_get_error_message(MirSurface *surface)
235 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_error_message() instead");
236 
237 void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters)
238 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_parameters() instead");
239 
240 MirSurfaceType mir_surface_get_type(MirSurface* surface)
241 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_type() instead");
242 
243 MirWaitHandle* mir_surface_set_state(MirSurface *surface,
244  MirSurfaceState state)
245 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_state() instead");
246 
247 MirSurfaceState mir_surface_get_state(MirSurface *surface)
248 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_state() instead");
249 
263 MirWaitHandle* mir_surface_set_swapinterval(MirSurface* surface, int interval)
264 MIR_FOR_REMOVAL_IN_VERSION_1("Swap interval should be set on the backing content");
265 
266 int mir_surface_get_dpi(MirSurface* surface)
267 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_dpi() instead");
268 
269 MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface)
270 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_focus_state() instead");
271 
273 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_visibility() instead");
274 
275 MirWaitHandle* mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const* parameters)
276 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_configure_cursor() instead");
277 
278 MirOrientation mir_surface_get_orientation(MirSurface *surface)
279 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_orientation() instead");
280 
282 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_preferred_orientation() instead");
283 
285 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_preferred_orientation() instead");
286 
287 MirWaitHandle* mir_surface_request_persistent_id(MirSurface* surface, mir_surface_id_callback callback, void* context)
288 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id() instead");
289 
290 MirPersistentId* mir_surface_request_persistent_id_sync(MirSurface *surface)
291 MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_request_persistent_id_sync() instead");
292 
293 void mir_surface_raise(MirSurface* surface, MirCookie const* cookie)
294 MIR_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_ */
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_streams(MirSurfaceSpec *spec, MirBufferStreamInfo *streams, unsigned int num_streams) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_streams() instead")
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_spec_set_shell_chrome(MirSurfaceSpec *spec, MirShellChrome style) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_shell_chrome() instead")
MirSurfaceSpec * mir_create_surface_spec(MirConnection *connection) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() instead")
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")
char const * mir_surface_get_error_message(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_error_message() instead")
void mir_surface_spec_set_type(MirSurfaceSpec *spec, MirSurfaceType type) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_type() instead")
MirPlacementHints
Positioning hints for aligning a window relative to a rectangle.
Definition: common.h:373
MirSurfaceVisibility mir_surface_get_visibility(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_visibility() instead")
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")
MirWaitHandle * mir_surface_set_preferred_orientation(MirSurface *surface, MirOrientationMode orientation) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_preferred_orientation() instead")
MirSurfaceType mir_surface_get_type(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_type() 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")
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
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_spec_release(MirSurfaceSpec *spec) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_release() instead")
The displacement from the top-left corner of the surface.
Definition: client_types.h:391
MirPointerConfinementState
Pointer Confinement.
Definition: common.h:470
void mir_surface_spec_set_name(MirSurfaceSpec *spec, char const *name) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_name() instead")
MirSurfaceFocusState mir_surface_get_focus(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_focus_state() instead")
void mir_surface_spec_set_height(MirSurfaceSpec *spec, unsigned height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_height() 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_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")
MirWaitHandle * mir_surface_set_state(MirSurface *surface, MirSurfaceState state) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_set_state() 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")
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_changes(MirConnection *connection) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_create_window_spec() 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")
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.
int mir_surface_get_dpi(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_dpi() instead")
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")
int height
Definition: client_types.h:179
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_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")
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:275
MirBufferStream * mir_surface_get_buffer_stream(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_buffer_stream() instead")
int mir_surface_get_swapinterval(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("This will soon be a property of the backing content")
struct MirWaitHandle MirWaitHandle
Returned by asynchronous functions.
Definition: client_types.h:79
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_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")
MirSurfaceState
Definition: common.h:124
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_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")
struct MirCookie MirCookie
Definition: event.h:82
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")
MirBufferUsage
MirBufferUsage specifies how a surface can and will be used.
Definition: client_types.h:185
MirSurfaceType
Definition: common.h:93
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:244
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_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_parent(MirSurfaceSpec *spec, MirSurface *parent) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_window_spec_set_parent() instead")
MirWaitHandle * mir_surface_configure_cursor(MirSurface *surface, MirCursorConfiguration const *parameters) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_configure_cursor() 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
MirSurfaceFocusState
Definition: common.h:158
void(* mir_surface_callback)(MirSurface *surface, void *client_context) MIR_FOR_REMOVAL_IN_VERSION_1("Use MirWindowCallback instead")
Definition: client_types.h:570
void mir_surface_spec_set_width(MirSurfaceSpec *spec, unsigned width) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_width() instead")
MirOrientation mir_surface_get_orientation(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_orientation() instead")
MirSurfaceVisibility
Definition: common.h:170
void mir_surface_apply_spec(MirSurface *surface, MirSurfaceSpec *spec) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_apply_spec() instead")
MirShellChrome
Shell chrome.
Definition: common.h:458
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")
bool mir_surface_is_valid(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_is_valid() instead")
MirSurfaceState mir_surface_get_state(MirSurface *surface) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_state() instead")
char const * name
Definition: client_types.h:177
Definition: client_types.h:398
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
void mir_surface_get_parameters(MirSurface *surface, MirSurfaceParameters *parameters) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_get_parameters() instead")
uint32_t output_id
The id of the output to place the surface in.
Definition: client_types.h:194
void mir_surface_spec_set_state(MirSurfaceSpec *spec, MirSurfaceState state) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_state() 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")
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")
MirWaitHandle * mir_surface_create(MirSurfaceSpec *requested_specification, mir_surface_callback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_create_window() instead")
MirOrientationMode
Definition: common.h:291
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_min_aspect_ratio(MirSurfaceSpec *spec, unsigned width, unsigned height) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_spec_set_min_aspect_ratio() 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")
int width
Definition: client_types.h:178
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")
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_raise(MirSurface *surface, MirCookie const *cookie) MIR_FOR_REMOVAL_IN_VERSION_1("use mir_window_raise() instead")
MirWindowParameters is the structure of minimum required information that you must provide to Mir in ...
Definition: client_types.h:195
MirPlacementGravity
Reference point for aligning a surface relative to a rectangle.
Definition: common.h:318
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")
MirEdgeAttachment
Definition: common.h:305
MirPixelFormat the EGL implementation will now set correct pixel format
Definition: mir_connection.h:350

Copyright © 2012-2021 Canonical Ltd.
Generated on Wed Mar 31 14:57:31 UTC 2021
This documentation is licensed under the GPL version 2 or 3.