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 
98  MirPresentationChain* presentation_chain, MirBuffer* buffer);
99 
123  MirSurfaceSpec* spec,
124  int width, int height,
125  int displacement_x, int displacement_y,
126  MirPresentationChain* chain);
127 
145  MirSurfaceSpec* spec,
146  int displacement_x, int displacement_y,
147  MirBufferStream* stream);
148 
149 #ifdef __cplusplus
150 }
152 #endif
153 
154 #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:109
bool mir_presentation_chain_is_valid(MirPresentationChain *presentation_chain)
Test for a valid presentation chain.
Definition: mir_presentation_chain_api.cpp:73
struct MirBufferStream MirBufferStream
Definition: client_types.h:46
struct MirBuffer MirBuffer
Definition: client_types_nbs.h:33
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:97
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:85
unsigned int width
Definition: touchspot_image.c:4
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:118
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 Thu Sep 8 14:50:19 UTC 2016