view dynamin/c/cairo_xlib.d @ 55:c138461bf845

Add focusing and other changes that are related like descendantAdded/Removed events, Window.activated event, and updating List. Window.state was also added, even though focusing does not depend on it.
author Jordan Miner <jminer7@gmail.com>
date Sat, 08 Aug 2009 15:42:27 -0500
parents aa4efef0f0b1
children
line wrap: on
line source

module dynamin.c.cairo_xlib;

/*
 * A complete binding to the xlib backend of
 * the cairo graphics library version 1.3.16.
 */

import dynamin.c.cairo;
import dynamin.c.xlib;
import dynamin.c.x_types;

extern(C):

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);

void cairo_xlib_surface_set_drawable(
	cairo_surface_t* surface,
	Drawable drawable,
	int width, int height);

Display* cairo_xlib_surface_get_display(cairo_surface_t* surface);

Drawable cairo_xlib_surface_get_drawable(cairo_surface_t* surface);

Screen* cairo_xlib_surface_get_screen(cairo_surface_t* surface);

Visual* cairo_xlib_surface_get_visual(cairo_surface_t* surface);

int cairo_xlib_surface_get_depth(cairo_surface_t* surface);

int cairo_xlib_surface_get_width(cairo_surface_t* surface);

int cairo_xlib_surface_get_height(cairo_surface_t* surface);