x.x11 #
X11 type definitions - shared across all V modules Import this module instead of defining X11 types yourself
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 Time
}
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 Time
}
X11 event types
- README
- type Atom
- type Colormap
- type Time
- type VisualID
- type Window
- struct C.Display
- struct C.XButtonEvent
- struct C.XClientMessageData
- struct C.XClientMessageEvent
- struct C.XCrossingEvent
- struct C.XDestroyWindowEvent
- struct C.XFocusChangeEvent
- struct C.XGenericEventCookie
- struct C.XKeyEvent
- struct C.XMotionEvent
- struct C.XPropertyEvent
- struct C.XSelectionClearEvent
- struct C.XSelectionEvent
- struct C.XSelectionRequestEvent