1
0
Fork 0
forked from wry/wry

autocommit 2022-02-06 16:33:54 CET

This commit is contained in:
Julian Orth 2022-02-06 16:33:54 +01:00
parent c92346324b
commit dc2cb71012
104 changed files with 2563 additions and 4617 deletions

View file

@ -2,9 +2,9 @@
msg bind = 0 {
name: u32,
id: id(object),
interface: str,
version: u32,
id: id(object),
}
# events

13
wire/wl_shm.txt Normal file
View file

@ -0,0 +1,13 @@
# requests
msg create_pool = 0 {
id: id(wl_shm_pool),
fd: fd,
size: i32,
}
# events
msg format = 0 {
format: u32,
}

18
wire/wl_shm_pool.txt Normal file
View file

@ -0,0 +1,18 @@
# requests
msg create_buffer = 0 {
id: id(wl_buffer),
offset: i32,
width: i32,
height: i32,
stride: i32,
format: u32,
}
msg destroy = 1 {
}
msg resize = 2 {
size: i32,
}

11
wire/wl_subcompositor.txt Normal file
View file

@ -0,0 +1,11 @@
# requests
msg destroy = 0 {
}
msg get_subsurface = 1 {
id: id(wl_subsurface),
surface: id(wl_surface),
parent: id(wl_surface),
}

20
wire/wl_subsurface.txt Normal file
View file

@ -0,0 +1,20 @@
# requests
msg destroy = 0 { }
msg set_position = 1 {
x: i32,
y: i32,
}
msg place_above = 2 {
sibling: id(wl_surface),
}
msg place_below = 3 {
sibling: id(wl_surface),
}
msg set_sync = 4 { }
msg set_desync = 5 { }

62
wire/wl_surface.txt Normal file
View file

@ -0,0 +1,62 @@
# requests
msg destroy = 0 {
}
msg attach = 1 {
buffer: id(wl_buffer),
x: i32,
y: i32,
}
msg damage = 2 {
x: i32,
y: i32,
width: i32,
height: i32,
}
msg frame = 3 {
callback: id(wl_callback),
}
msg set_opaque_region = 4 {
region: id(wl_region),
}
msg set_input_region = 5 {
region: id(wl_region),
}
msg commit = 6 {
}
msg set_buffer_transform = 7 {
transform: i32,
}
msg set_buffer_scale = 8 {
scale: i32,
}
msg damage_buffer = 9 {
x: i32,
y: i32,
width: i32,
height: i32,
}
msg offset = 10 {
x: i32,
y: i32,
}
# events
msg enter = 0 {
output: id(wl_output),
}
msg leave = 1 {
output: id(wl_output),
}

48
wire/wl_touch.txt Normal file
View file

@ -0,0 +1,48 @@
# requests
msg release = 0 {
}
# events
msg down = 0 {
serial: u32,
time: u32,
surface: id(wl_surface),
id: i32,
x: fixed,
y: fixed,
}
msg up = 1 {
serial: u32,
time: u32,
id: i32,
}
msg motion = 2 {
time: u32,
id: u32,
x: fixed,
y: fixed,
}
msg frame = 3 {
}
msg cancel = 4 {
}
msg shape = 5 {
id: i32,
major: fixed,
minor: fixed,
}
msg orientation = 6 {
id: i32,
orientation: fixed,
}

30
wire/xdg_popup.txt Normal file
View file

@ -0,0 +1,30 @@
# requests
msg destroy = 0 { }
msg grab = 1 {
seat: id(wl_seat),
serial: u32,
}
msg reposition = 2 {
positioner: id(xdg_positioner),
token: u32,
}
# events
msg configure = 0 {
x: i32,
y: i32,
width: i32,
height: i32,
}
msg popup_done = 1 {
}
msg repositioned = 2 {
token: u32,
}

45
wire/xdg_positioner.txt Normal file
View file

@ -0,0 +1,45 @@
# requests
msg destroy = 0 { }
msg set_size = 1 {
width: i32,
height: i32,
}
msg set_anchor_rect = 2 {
x: i32,
y: i32,
width: i32,
height: i32,
}
msg set_anchor = 3 {
anchor: u32,
}
msg set_gravity = 4 {
gravity: u32,
}
msg set_constraint_adjustment = 5 {
constraint_adjustment: u32,
}
msg set_offset = 6 {
x: i32,
y: i32,
}
msg set_reactive = 7 {
}
msg set_parent_size = 8 {
parent_width: i32,
parent_height: i32,
}
msg set_parent_configure = 9 {
serial: u32,
}

30
wire/xdg_surface.txt Normal file
View file

@ -0,0 +1,30 @@
# requests
msg destroy = 0 { }
msg get_toplevel = 1 {
id: id(xdg_toplevel),
}
msg get_popup = 2 {
id: id(xdg_popup),
parent: id(xdg_surface),
positioner: id(xdg_positioner),
}
msg set_window_geometry = 3 {
x: i32,
y: i32,
width: i32,
height: i32,
}
msg ack_configure = 4 {
serial: u32,
}
# events
msg configure = 0 {
serial: u32,
}

74
wire/xdg_toplevel.txt Normal file
View file

@ -0,0 +1,74 @@
# requests
msg destroy = 0 {
}
msg set_parent = 1 {
parent: id(xdg_toplevel),
}
msg set_title = 2 {
title: str,
}
msg set_app_id = 3 {
app_id: str,
}
msg show_window_menu = 4 {
seat: id(wl_seat),
serial: u32,
x: i32,
y: i32,
}
msg move = 5 {
seat: id(wl_seat),
serial: u32,
}
msg resize = 6 {
seat: id(wl_seat),
serial: u32,
edges: u32,
}
msg set_max_size = 7 {
width: i32,
height: i32,
}
msg set_min_size = 8 {
width: i32,
height: i32,
}
msg set_maximized = 9 { }
msg unset_maximized = 10 { }
msg set_fullscreen = 11 {
output: id(wl_output),
}
msg unset_fullscreen = 12 {
}
msg set_minimized = 13 { }
# events
msg configure = 0 {
width: i32,
height: i32,
states: array(u32),
}
msg close = 1 { }
msg configure_bounds = 2 {
width: i32,
height: i32,
}

22
wire/xdg_wm_base.txt Normal file
View file

@ -0,0 +1,22 @@
# requests
msg destroy = 0 { }
msg create_positioner = 1 {
id: id(xdg_positioner),
}
msg get_xdg_surface = 2 {
id: id(xdg_surface),
surface: id(wl_surface),
}
msg pong = 3 {
serial: u32,
}
# events
msg ping = 0 {
serial: u32,
}

View file

@ -0,0 +1,37 @@
# requests
msg destroy = 0 { }
msg add = 1 {
fd: fd,
plane_idx: u32,
offset: u32,
stride: u32,
modifier_hi: u32,
modifier_lo: u32,
}
msg create = 2 {
width: i32,
height: i32,
format: u32,
flags: u32,
}
msg create_immed = 3 {
buffer_id: id(wl_buffer),
width: i32,
height: i32,
format: u32,
flags: u32,
}
# events
msg created = 0 {
buffer: id(wl_buffer),
}
msg failed = 1 {
}

View file

@ -0,0 +1,32 @@
# requests
msg destroy = 0 { }
# events
msg done = 0 { }
msg format_table = 1 {
fd: fd,
size: u32,
}
msg main_device = 2 {
device: pod(uapi::c::dev_t),
}
msg tranche_done = 3 {
}
msg tranche_target_device = 4 {
device: pod(uapi::c::dev_t),
}
msg tranche_formats = 5 {
indices: array(pod(u16)),
}
msg tranche_flags = 6 {
flags: u32,
}

View file

@ -0,0 +1,28 @@
# requests
msg destroy = 0 { }
msg create_params = 1 {
params_id: id(zwp_linux_buffer_params_v1),
}
msg get_default_feedback = 2 {
id: id(zwp_linux_dmabuf_feedback_v1),
}
msg get_surface_feedback = 3 {
id: id(zwp_linux_dmabuf_feedback_v1),
surface: id(wl_surface),
}
# events
msg format = 0 {
format: u32,
}
msg modifier = 1 {
format: u32,
modifier_hi: u32,
modifier_lo: u32,
}

View file

@ -0,0 +1,12 @@
# requests
msg create_source = 0 {
id: id(zwp_primary_selection_source_v1),
}
msg get_device = 1 {
id: id(zwp_primary_selection_device_v1),
seat: id(wl_seat),
}
msg destroy = 2 { }

View file

@ -0,0 +1,18 @@
# requests
msg set_selection = 0 {
source: id(zwp_primary_selection_source_v1),
serial: u32,
}
msg destroy = 1 { }
# events
msg data_offer = 0 {
offer: id(zwp_primary_selection_offer_v1),
}
msg selection = 1 {
id: id(zwp_primary_selection_offer_v1),
}

View file

@ -0,0 +1,14 @@
# requests
msg receive = 0 {
mime_type: str,
fd: fd,
}
msg destroy = 1 { }
# events
msg offer = 0 {
mime_type: str,
}

View file

@ -0,0 +1,18 @@
# requests
msg offer = 0 {
mime_type: str,
}
msg destroy = 1 { }
# events
msg send = 0 {
mime_type: str,
fd: fd,
}
msg cancelled = 1 {
}

View file

@ -0,0 +1,8 @@
# requests
msg destroy = 0 { }
msg get_toplevel_decoration = 1 {
id: id(zxdg_toplevel_decoration_v1),
toplevel: id(xdg_toplevel),
}

View file

@ -0,0 +1,18 @@
# requests
msg destroy = 0 {
}
msg set_mode = 1 {
mode: u32,
}
msg unset_mode = 2 {
}
# events
msg configure = 0 {
mode: u32,
}