Mir
mir_render_surface.h
Go to the documentation of this file.
1 /*
2  * Copyright © 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  * Authored by:
17  * Cemil Azizoglu <cemil.azizoglu@canonical.com>
18  */
19 
20 #ifndef MIR_TOOLKIT_MIR_RENDER_SURFACE_H_
21 #define MIR_TOOLKIT_MIR_RENDER_SURFACE_H_
22 
24 
25 #ifdef __cplusplus
26 
30 extern "C" {
31 #endif
32 
33 #pragma GCC diagnostic push
34 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35 
48  MirConnection* connection,
49  int width, int height,
50  MirRenderSurfaceCallback callback,
51  void* context)
52 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
53 
65  MirConnection* connection,
66  int width, int height)
67 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
68 
77  MirRenderSurface* render_surface,
78  int* width, int* height)
79 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
80 
89  MirRenderSurface* render_surface,
90  int width, int height)
91 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
92 
102  MirRenderSurface* render_surface)
103 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
104 
115  MirRenderSurface* render_surface)
116 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
117 
124  MirRenderSurface* render_surface)
125 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
126 
142  MirRenderSurface* render_surface,
143  int width, int height,
144  MirPixelFormat format)
145 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
146 
157  MirRenderSurface* render_surface)
158 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
159 
167  MirConnection* connection, MirPresentMode mode);
168 
178  MirPresentationChain* chain, MirPresentMode mode);
179 
189  MirWindowSpec* spec,
190  MirRenderSurface* render_surface,
191  int hotspot_x, int hotspot_y)
192 __attribute__((deprecated("This function is slated for rename due to MirRenderSurface-->MirSurface transition")));
193 
194 #pragma GCC diagnostic pop
195 
196 #ifdef __cplusplus
197 }
199 #endif
200 
201 #endif // MIR_TOOLKIT_MIR_RENDER_SURFACE_H_
void mir_connection_create_render_surface(MirConnection *connection, int width, int height, MirRenderSurfaceCallback callback, void *context) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Create a render surface.
struct MirBufferStream MirBufferStream
Definition: client_types.h:48
MirPresentMode
Definition: client_types.h:257
void(* MirRenderSurfaceCallback)(MirRenderSurface *, void *context) __attribute__((deprecated("This type is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Definition: client_types.h:558
void mir_render_surface_set_size(MirRenderSurface *render_surface, int width, int height) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Set the size of the MirRenderSurface.
unsigned int height
Definition: mir_image.h:27
void mir_presentation_chain_set_mode(MirPresentationChain *chain, MirPresentMode mode)
Respecify the submission mode that the MirPresentationChain is operating with.
unsigned int width
Definition: mir_image.h:26
MirRenderSurface * mir_connection_create_render_surface_sync(MirConnection *connection, int width, int height) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Create a render surface and wait for the result.
struct MirConnection MirConnection
Definition: client_types.h:40
bool mir_render_surface_is_valid(MirRenderSurface *render_surface) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Test for a valid render surface.
MirBufferStream * mir_render_surface_get_buffer_stream(MirRenderSurface *render_surface, int width, int height, MirPixelFormat format) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Obtain the buffer stream backing a given render surface.
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_render_surface_get_size(MirRenderSurface *render_surface, int *width, int *height) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Get the size of the MirRenderSurface.
struct MirPresentationChain MirPresentationChain
Definition: client_types.h:54
struct MirSurfaceSpec MirWindowSpec
Definition: client_types.h:44
void mir_render_surface_release(MirRenderSurface *render_surface) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Release the specified render surface.
MirConnectedCallback mir_connected_callback __attribute__((deprecated("Use MirConnectedCallback instead")))
Release a platform message.
Definition: client_types.h:85
void mir_window_spec_set_cursor_render_surface(MirWindowSpec *spec, MirRenderSurface *render_surface, int hotspot_x, int hotspot_y) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Set the MirWindowSpec to contain a specific cursor.
bool mir_connection_present_mode_supported(MirConnection *connection, MirPresentMode mode)
Query whether the server supports a given presentation mode.
char const * mir_render_surface_get_error_message(MirRenderSurface *render_surface) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Retrieve a text description of the error.
MirPresentationChain * mir_render_surface_get_presentation_chain(MirRenderSurface *render_surface) __attribute__((deprecated("This function is slated for rename due to MirRenderSurface- -> MirSurface transition")))
Obtain the presentation chain backing a given render surface.

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