Skip to content

x.x11 #

fn C.XChangeProperty #

unsafe
fn C.XChangeProperty(display &C.Display, window Window, property Atom, type_ Atom, format int, mode int, data &u8, nitems int) int

fn C.XCheckTypedWindowEvent #

unsafe
fn C.XCheckTypedWindowEvent(display &C.Display, window Window, event_type int, event &C.XEvent) int

fn C.XConvertSelection #

unsafe
fn C.XConvertSelection(display &C.Display, selection Atom, target Atom, property Atom, requestor Window, time Time) int

fn C.XDeleteProperty #

unsafe
fn C.XDeleteProperty(display &C.Display, window Window, property Atom) int

fn C.XFilterEvent #

unsafe
fn C.XFilterEvent(event &C.XEvent, window Window) int

fn C.XGetSelectionOwner #

unsafe
fn C.XGetSelectionOwner(display &C.Display, selection Atom) Window

fn C.XGetWindowProperty #

unsafe
fn C.XGetWindowProperty(display &C.Display, window Window, property Atom, offset i64, length i64, delete int, req_type Atom, actual_type &Atom, actual_format &int, nitems &u64, bytes_after &u64, data &&u8) int

fn C.XNextEvent #

unsafe
fn C.XNextEvent(display &C.Display, event &C.XEvent) int

X11 function declarations

fn C.XSendEvent #

unsafe
fn C.XSendEvent(display &C.Display, window Window, propagate int, event_mask i64, event &C.XEvent) int

fn C.XSetSelectionOwner #

unsafe
fn C.XSetSelectionOwner(display &C.Display, selection Atom, window Window, time Time) Window

type Atom #

type Atom = u64

type Colormap #

type Colormap = u64

type Time #

type Time = u64

type VisualID #

type VisualID = usize

type Window #

type Window = u64

Basic X11 types

struct C.Display #

struct C.Display {}

Forward declarations

struct C.XButtonEvent #

@[typedef]
struct C.XButtonEvent {
pub mut:
	button u32
	state  u32
	x      int
	y      int
}

struct C.XClientMessageData #

@[typedef]
union C.XClientMessageData {
pub mut:
	b [20]u8
	s [10]i16
	l [5]i64
}

struct C.XClientMessageEvent #

@[typedef]
struct C.XClientMessageEvent {
pub mut:
	window       Window
	format       int
	message_type Atom
	data         C.XClientMessageData
}

struct C.XCrossingEvent #

@[typedef]
struct C.XCrossingEvent {
pub mut:
	x     int
	y     int
	state u32
}

struct C.XDestroyWindowEvent #

@[typedef]
struct C.XDestroyWindowEvent {
pub mut:
	window Window
}

struct C.XFocusChangeEvent #

@[typedef]
struct C.XFocusChangeEvent {
pub mut:
	mode int
}

struct C.XGenericEventCookie #

@[typedef]
struct C.XGenericEventCookie {
pub mut:
	extension int
	evtype    int
	data      voidptr
}

struct C.XKeyEvent #

@[typedef]
struct C.XKeyEvent {
pub mut:
	keycode u32
	state   u32
}

struct C.XMotionEvent #

@[typedef]
struct C.XMotionEvent {
pub mut:
	x     int
	y     int
	state u32
}

struct C.XPropertyEvent #

@[typedef]
struct C.XPropertyEvent {
pub mut:
	state int
	atom  Atom
}

struct C.XSelectionClearEvent #

@[typedef]
struct C.XSelectionClearEvent {
pub mut:
	window    Window
	selection Atom
}

struct C.XSelectionEvent #

@[typedef]
struct C.XSelectionEvent {
pub mut:
	type      int
	display   &C.Display = unsafe { nil }
	requestor Window
	selection Atom
	target    Atom
	property  Atom
	time      int
}

struct C.XSelectionRequestEvent #

@[typedef]
struct C.XSelectionRequestEvent {
pub mut:
	display   &C.Display = unsafe { nil }
	owner     Window
	requestor Window
	selection Atom
	target    Atom
	property  Atom
	time      int
}

X11 event types