Qt 4.8
Classes | Macros | Functions | Variables
wayland-xcomposite-client-protocol.h File Reference
#include <stdint.h>
#include <stddef.h>
#include "wayland-util.h"

Go to the source code of this file.

Classes

struct  wl_xcomposite_listener
 

Macros

#define WL_XCOMPOSITE_CREATE_BUFFER   0
 

Functions

static int wl_xcomposite_add_listener (struct wl_xcomposite *wl_xcomposite, const struct wl_xcomposite_listener *listener, void *data)
 
static struct wl_xcomposite * wl_xcomposite_create (struct wl_display *display, uint32_t id, uint32_t version)
 
static struct wl_buffer * wl_xcomposite_create_buffer (struct wl_xcomposite *wl_xcomposite, uint32_t x_window, int width, int height, struct wl_visual *visual)
 
static void wl_xcomposite_destroy (struct wl_xcomposite *wl_xcomposite)
 
static void * wl_xcomposite_get_user_data (struct wl_xcomposite *wl_xcomposite)
 
static void wl_xcomposite_set_user_data (struct wl_xcomposite *wl_xcomposite, void *user_data)
 

Variables

const struct wl_interface wl_xcomposite_interface
 

Macro Definition Documentation

◆ WL_XCOMPOSITE_CREATE_BUFFER

#define WL_XCOMPOSITE_CREATE_BUFFER   0

Definition at line 74 of file wayland-xcomposite-client-protocol.h.

Referenced by wl_xcomposite_create_buffer().

Function Documentation

◆ wl_xcomposite_add_listener()

static int wl_xcomposite_add_listener ( struct wl_xcomposite *  wl_xcomposite,
const struct wl_xcomposite_listener listener,
void *  data 
)
inlinestatic

Definition at line 67 of file wayland-xcomposite-client-protocol.h.

Referenced by QWaylandXCompositeGLXIntegration::wlDisplayHandleGlobal(), and QWaylandXCompositeEGLIntegration::wlDisplayHandleGlobal().

69 {
70  return wl_proxy_add_listener((struct wl_proxy *) wl_xcomposite,
71  (void (**)(void)) listener, data);
72 }
static const char * data(const QByteArray &arr)

◆ wl_xcomposite_create()

static struct wl_xcomposite* wl_xcomposite_create ( struct wl_display *  display,
uint32_t  id,
uint32_t  version 
)
static

Definition at line 77 of file wayland-xcomposite-client-protocol.h.

Referenced by QWaylandXCompositeGLXIntegration::wlDisplayHandleGlobal(), and QWaylandXCompositeEGLIntegration::wlDisplayHandleGlobal().

78 {
79  wl_display_bind(display, id, "wl_xcomposite", version);
80 
81  return (struct wl_xcomposite *)
82  wl_proxy_create_for_id(display, &wl_xcomposite_interface, id);
83 }
Q_GUI_EXPORT EGLDisplay display()
Definition: qegl.cpp:589
const struct wl_interface wl_xcomposite_interface

◆ wl_xcomposite_create_buffer()

static struct wl_buffer* wl_xcomposite_create_buffer ( struct wl_xcomposite *  wl_xcomposite,
uint32_t  x_window,
int  width,
int  height,
struct wl_visual *  visual 
)
static

Definition at line 104 of file wayland-xcomposite-client-protocol.h.

Referenced by QWaylandXCompositeBuffer::QWaylandXCompositeBuffer().

105 {
106  struct wl_proxy *id;
107 
108  id = wl_proxy_create((struct wl_proxy *) wl_xcomposite,
109  &wl_buffer_interface);
110  if (!id)
111  return NULL;
112 
113  wl_proxy_marshal((struct wl_proxy *) wl_xcomposite,
114  WL_XCOMPOSITE_CREATE_BUFFER, id, x_window, width, height, visual);
115 
116  return (struct wl_buffer *) id;
117 }
#define WL_XCOMPOSITE_CREATE_BUFFER

◆ wl_xcomposite_destroy()

static void wl_xcomposite_destroy ( struct wl_xcomposite *  wl_xcomposite)
inlinestatic

Definition at line 98 of file wayland-xcomposite-client-protocol.h.

99 {
100  wl_proxy_destroy((struct wl_proxy *) wl_xcomposite);
101 }

◆ wl_xcomposite_get_user_data()

static void* wl_xcomposite_get_user_data ( struct wl_xcomposite *  wl_xcomposite)
inlinestatic

Definition at line 92 of file wayland-xcomposite-client-protocol.h.

93 {
94  return wl_proxy_get_user_data((struct wl_proxy *) wl_xcomposite);
95 }

◆ wl_xcomposite_set_user_data()

static void wl_xcomposite_set_user_data ( struct wl_xcomposite *  wl_xcomposite,
void *  user_data 
)
inlinestatic

Definition at line 86 of file wayland-xcomposite-client-protocol.h.

87 {
88  wl_proxy_set_user_data((struct wl_proxy *) wl_xcomposite, user_data);
89 }

Variable Documentation

◆ wl_xcomposite_interface

const struct wl_interface wl_xcomposite_interface

Definition at line 54 of file wayland-xcomposite-protocol.c.

Referenced by wl_xcomposite_create().