Mir
mir_presentation_chain.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  */
17 
18 #ifndef MIR_TOOLKIT_MIR_PRESENTATION_CHAIN_H_
19 #define MIR_TOOLKIT_MIR_PRESENTATION_CHAIN_H_
20 
22 
23 #ifdef __cplusplus
24 
28 extern "C" {
29 #endif
30 
39 
50  MirPresentationChain* presentation_chain);
51 
64  MirConnection* connection,
66  void* context);
67 
77  MirConnection* connection);
78 
84 
100  MirPresentationChain* presentation_chain,
101  int width, int height,
102  MirPixelFormat format,
103  MirBufferUsage buffer_usage,
104  mir_buffer_callback available_callback, void* available_context);
105 
119  MirPresentationChain* presentation_chain, MirBuffer* buffer);
120 
144  MirSurfaceSpec* spec,
145  int width, int height,
146  int displacement_x, int displacement_y,
147  MirPresentationChain* chain);
148 
166  MirSurfaceSpec* spec,
167  int displacement_x, int displacement_y,
168  MirBufferStream* stream);
169 
170 #ifdef __cplusplus
171 }
173 #endif
174 
175 #endif // MIR_TOOLKIT_MIR_PRESENTATION_CHAIN_H_
Definition: mir_surface.h:86
MirPresentationChain * mir_connection_create_presentation_chain_sync(MirConnection *connection)
Create a new presentation chain and wait for the result.
Definition: mir_presentation_chain_api.cpp:108
bool mir_presentation_chain_is_valid(MirPresentationChain *presentation_chain)
Test for a valid presentation chain.
Definition: mir_presentation_chain_api.cpp:72
struct MirBufferStream MirBufferStream
Definition: client_types.h:45
struct MirBuffer MirBuffer
Definition: client_types_nbs.h:33
void(* mir_buffer_callback)(MirPresentationChain *, MirBuffer *, void *context)
Definition: client_types_nbs.h:36
void mir_presentation_chain_submit_buffer(MirPresentationChain *presentation_chain, MirBuffer *buffer)
Submit a buffer to the server so the server can display it.
Definition: mir_presentation_chain_api.cpp:61
void mir_connection_create_presentation_chain(MirConnection *connection, mir_presentation_chain_callback callback, void *context)
Create a new presentation chain.
Definition: mir_presentation_chain_api.cpp:96
void mir_surface_spec_add_presentation_chain(MirSurfaceSpec *spec, int width, int height, int displacement_x, int displacement_y, MirPresentationChain *chain)
Set the MirSurfaceContent to display a MirPresentationChain.
Definition: mir_surface_api.cpp:575
Definition: mir_presentation_chain.h:26
char const * mir_presentation_chain_get_error_message(MirPresentationChain *presentation_chain)
Retrieve a text description of the error.
Definition: mir_presentation_chain_api.cpp:84
unsigned int width
Definition: touchspot_image.c:4
MirBufferUsage
MirBufferUsage specifies how a surface can and will be used.
Definition: client_types.h:156
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:134
unsigned int height
Definition: touchspot_image.c:5
Definition: mir_connection.h:96
void mir_presentation_chain_release(MirPresentationChain *presentation_chain)
Release the specified presentation chain.
Definition: mir_presentation_chain_api.cpp:117
void mir_presentation_chain_allocate_buffer(MirPresentationChain *presentation_chain, int width, int height, MirPixelFormat format, MirBufferUsage buffer_usage, mir_buffer_callback available_callback, void *available_context)
Allocate a MirBuffer and do not wait for the server to return it.
Definition: mir_buffer_api.cpp:32
void(* mir_presentation_chain_callback)(MirPresentationChain *, void *context)
Definition: client_types_nbs.h:37
void mir_surface_spec_add_buffer_stream(MirSurfaceSpec *spec, int displacement_x, int displacement_y, MirBufferStream *stream)
Set the MirSurfaceContent to display a MirBufferStream.
Definition: mir_surface_api.cpp:597

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016