File indexing completed on 2025-01-18 09:54:03
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 #ifndef CAIRO_XCB_H
0040 #define CAIRO_XCB_H
0041
0042 #include "cairo.h"
0043
0044 #if CAIRO_HAS_XCB_SURFACE
0045
0046 #include <xcb/xcb.h>
0047 #include <xcb/render.h>
0048
0049 CAIRO_BEGIN_DECLS
0050
0051 cairo_public cairo_surface_t *
0052 cairo_xcb_surface_create (xcb_connection_t *connection,
0053 xcb_drawable_t drawable,
0054 xcb_visualtype_t *visual,
0055 int width,
0056 int height);
0057
0058 cairo_public cairo_surface_t *
0059 cairo_xcb_surface_create_for_bitmap (xcb_connection_t *connection,
0060 xcb_screen_t *screen,
0061 xcb_pixmap_t bitmap,
0062 int width,
0063 int height);
0064
0065 cairo_public cairo_surface_t *
0066 cairo_xcb_surface_create_with_xrender_format (xcb_connection_t *connection,
0067 xcb_screen_t *screen,
0068 xcb_drawable_t drawable,
0069 xcb_render_pictforminfo_t *format,
0070 int width,
0071 int height);
0072
0073 cairo_public void
0074 cairo_xcb_surface_set_size (cairo_surface_t *surface,
0075 int width,
0076 int height);
0077
0078 cairo_public void
0079 cairo_xcb_surface_set_drawable (cairo_surface_t *surface,
0080 xcb_drawable_t drawable,
0081 int width,
0082 int height);
0083
0084 cairo_public xcb_connection_t *
0085 cairo_xcb_device_get_connection (cairo_device_t *device);
0086
0087
0088
0089 cairo_public void
0090 cairo_xcb_device_debug_cap_xshm_version (cairo_device_t *device,
0091 int major_version,
0092 int minor_version);
0093
0094 cairo_public void
0095 cairo_xcb_device_debug_cap_xrender_version (cairo_device_t *device,
0096 int major_version,
0097 int minor_version);
0098
0099
0100
0101
0102
0103 cairo_public void
0104 cairo_xcb_device_debug_set_precision (cairo_device_t *device,
0105 int precision);
0106
0107 cairo_public int
0108 cairo_xcb_device_debug_get_precision (cairo_device_t *device);
0109
0110 CAIRO_END_DECLS
0111
0112 #else
0113 # error Cairo was not compiled with support for the xcb backend
0114 #endif
0115
0116 #endif