-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwayland_compositor.puml
68 lines (55 loc) · 3.64 KB
/
wayland_compositor.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@startuml
package wayland_server_protocol {
struct wl_surface_interface {
+ destroy(<color:LightSlateGray>wl_client, wl_resource</color>): void
+ attach(<color:LightSlateGray>wl_client, wl_resource, wl_resource, int32_t, int32_t</color>): void
+ damage(<color:LightSlateGray>wl_client, wl_resource, int32_t, int32_t, int32_t, int32_t</color>): void
+ frame(<color:LightSlateGray>wl_client, wl_resource, uint32_t</color>): void
+ set_opaque_region(<color:LightSlateGray>wl_client, wl_resource, wl_resource</color>): void
+ set_input_region(<color:LightSlateGray>wl_client, wl_resource, wl_resource</color>): void
+ commit(<color:LightSlateGray>wl_client, wl_resource</color>): void
+ set_buffer_transform(<color:LightSlateGray>wl_client, wl_resource, int32_t</color>): void
+ set_buffer_scale(<color:LightSlateGray>wl_client, wl_resource, int32_t</color>): void
+ damage_buffer(<color:LightSlateGray>wl_client, wl_resource, int32_t, int32_t, int32_t, int32_t</color>): void
}
struct wl_region_interface {
+ destroy(<color:LightSlateGray>wl_client, wl_resource</color>): void
+ add(<color:LightSlateGray>wl_client, wl_resource, int32_t, int32_t, int32_t, int32_t</color>): void
+ subtract(<color:LightSlateGray>wl_client, wl_resource, int32_t, int32_t, int32_t, int32_t</color>): void
}
struct wl_compositor_interface {
+ create_surface(<color:LightSlateGray>wl_client, wl_resource, uint32_t</color>): void
+ create_region(<color:LightSlateGray>wl_client, wl_resource, uint32_t</color>): void
}
}
object wayland_compositor {
<b><color:Green>// wl_region_interface mapping
+region_destroy(<color:LightSlateGray>wl_resource*</color>)
+region_add(<color:LightSlateGray>wl_resource*, int32_t, int32_t, int32_t, int32_t</color>)
+region_subtract(<color:LightSlateGray>wl_resource*, int32_t, int32_t, int32_t, int32_t</color>)
\n<b><color:Green>// wl_surface_interface mapping
+surface_destroy(<color:LightSlateGray>wl_resource*</color>)
+surface_attach(<color:LightSlateGray>wl_resource*, wl_resource*, int32_t, int32_t</color>)
+surface_damage(<color:LightSlateGray>wl_resource*, int32_t, int32_t, int32_t, int32_t</color>)
+surface_frame(<color:LightSlateGray>wl_resource*, uint32_t</color>)
+surface_set_opaque_region(<color:LightSlateGray>wl_resource*, wl_resource*</color>)
+surface_set_input_region(<color:LightSlateGray>wl_resource*, wl_resource*</color>)
+surface_commit(<color:LightSlateGray>wl_resource*</color>)
+surface_set_buffer_transform(<color:LightSlateGray>wl_resource*, int32_t</color>)
+surface_set_buffer_scale(<color:LightSlateGray>wl_resource*, int32_t</color>)
+surface_damage_buffer(<color:LightSlateGray>wl_resource*, int32_t, int32_t, int32_t, int32_t</color>)
+surface_destroy_resource_callback(<color:LightSlateGray>wl_resource*</color>)
\n<b><color:Green>// wl_compositor_interface mapping
+compositor_create_surface(<color:LightSlateGray>wl_client*, wl_resource*, uint32_t</color>)
+compositor_create_region(<color:LightSlateGray>wl_client*, wl_resource*, uint32_t</color>)
+compositor_destroy_resource_callback(<color:LightSlateGray>wl_resource*</color>)
\n<b><color:Green>// wayland_compositor.h
+bind_compositor(<color:LightSlateGray>wl_client*, void*, uint32_t, uint32_t</color>)
+BindCompositorInterface(<color:LightSlateGray>wl_display*, Surfaces*</color>)
}
wl_compositor_interface --|> wayland_compositor
wl_surface_interface --|> wayland_compositor
wl_region_interface --|> wayland_compositor
wayland_compositor *-- Surface : calls as wl_surface_interface >
wayland_compositor *-- Region: calls as wl_region_interface >
@enduml