按照官方的说法:Cairo is a vector graphics library with cross-device output support.
翻译过来
源代码在线查看: cairo-xlib-surfaces.html
XLib Surfaces Cairo: A Vector Graphics Library Top | Description XLib Surfaces XLib Surfaces — X Window System rendering using XLib Synopsis cairo_surface_t* cairo_xlib_surface_create (Display *dpy, Drawable drawable, Visual *visual, int width, int height); cairo_surface_t* cairo_xlib_surface_create_for_bitmap (Display *dpy, Pixmap bitmap, Screen *screen, int width, int height); void cairo_xlib_surface_set_size (cairo_surface_t *surface, int width, int height); Display* cairo_xlib_surface_get_display (cairo_surface_t *surface); Screen* cairo_xlib_surface_get_screen (cairo_surface_t *surface); void cairo_xlib_surface_set_drawable (cairo_surface_t *surface, Drawable drawable, int width, int height); Drawable cairo_xlib_surface_get_drawable (cairo_surface_t *surface); Visual* cairo_xlib_surface_get_visual (cairo_surface_t *surface); int cairo_xlib_surface_get_width (cairo_surface_t *surface); int cairo_xlib_surface_get_height (cairo_surface_t *surface); int cairo_xlib_surface_get_depth (cairo_surface_t *surface); Description Details cairo_xlib_surface_create () cairo_surface_t* cairo_xlib_surface_create (Display *dpy, Drawable drawable, Visual *visual, int width, int height); cairo_xlib_surface_create_for_bitmap () cairo_surface_t* cairo_xlib_surface_create_for_bitmap (Display *dpy, Pixmap bitmap, Screen *screen, int width, int height); cairo_xlib_surface_set_size () void cairo_xlib_surface_set_size (cairo_surface_t *surface, int width, int height); cairo_xlib_surface_get_display () Display* cairo_xlib_surface_get_display (cairo_surface_t *surface); Since 1.2 cairo_xlib_surface_get_screen () Screen* cairo_xlib_surface_get_screen (cairo_surface_t *surface); Since 1.2 cairo_xlib_surface_set_drawable () void cairo_xlib_surface_set_drawable (cairo_surface_t *surface, Drawable drawable, int width, int height); cairo_xlib_surface_get_drawable () Drawable cairo_xlib_surface_get_drawable (cairo_surface_t *surface); Since 1.2 cairo_xlib_surface_get_visual () Visual* cairo_xlib_surface_get_visual (cairo_surface_t *surface); Since 1.2 cairo_xlib_surface_get_width () int cairo_xlib_surface_get_width (cairo_surface_t *surface); Since 1.2 cairo_xlib_surface_get_height () int cairo_xlib_surface_get_height (cairo_surface_t *surface); Since 1.2 cairo_xlib_surface_get_depth () int cairo_xlib_surface_get_depth (cairo_surface_t *surface); Since 1.2