Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaxVerevkin/wayrs
/ functions
Functions
258 in github.com/MaxVerevkin/wayrs
⨍
Functions
258
◇
Types & classes
99
↓ 42 callers
Method
iter
Get an iterator of currently available `wl_seat`s.
wayrs-utils/src/seats.rs:123
↓ 28 callers
Method
as_ref
(&self)
wayrs-egl/src/drm.rs:43
↓ 13 callers
Method
contains
(&self, ext: &str)
wayrs-egl/src/egl.rs:436
↓ 10 callers
Function
make_pascal_case_ident
(name: impl AsRef<str>)
wayrs-scanner/src/lib.rs:102
↓ 8 callers
Function
byte
(s: &str, idx: usize)
wayrs-scanner/src/mini_syn.rs:134
↓ 8 callers
Method
version
(mut self, major: u32, minor: u32)
wayrs-egl/src/egl.rs:285
↓ 8 callers
Method
write_uint
(&mut self, val: u32)
wayrs-core/src/ring_buffer.rs:130
↓ 7 callers
Function
make_ident
(name: impl AsRef<str>)
wayrs-scanner/src/lib.rs:98
↓ 6 callers
Method
as_u32
(self)
wayrs-core/src/lib.rs:45
↓ 6 callers
Method
destroy
Release all Wayland resources.
wayrs-utils/src/shm_alloc.rs:118
↓ 6 callers
Method
parse
(input: TokenStream)
wayrs-scanner/src/lib.rs:25
↓ 6 callers
Method
parse_description
( &mut self, tag: BytesStart<'a>, non_empty_tag: bool, )
wayrs-proto-parser/src/parser.rs:234
↓ 6 callers
Method
read_uint
(&mut self)
wayrs-core/src/ring_buffer.rs:140
↓ 5 callers
Method
flush
Send the queue of pending request to the server.
wayrs-client/src/connection.rs:569
↓ 5 callers
Function
gen_doc
( desc: Option<&Description>, since: Option<u32>, deprecated_since: Option<u32>, )
wayrs-scanner/src/lib.rs:725
↓ 5 callers
Function
gen_pub_fn
( attrs: &TokenStream, name: &str, generics: &[TokenStream], args: &[TokenStream], ret_ty:
wayrs-scanner/src/lib.rs:503
↓ 5 callers
Method
get_object_mut
(&mut self, id: ObjectId)
wayrs-client/src/object.rs:229
↓ 5 callers
Method
move_tail
(&mut self, n: usize)
wayrs-core/src/ring_buffer.rs:25
↓ 5 callers
Method
release
Releases the current API context. If this context is not current on this thread, `Err(Error::NotCurrentContext)` is returned.
wayrs-egl/src/egl.rs:388
↓ 4 callers
Method
as_raw_fd
(&self)
wayrs-core/src/transport.rs:52
↓ 4 callers
Method
bind_singleton
Bind a singleton global. Use this function to only bind singleton globals. If more than one global of the requeseted interface is available, the beha
wayrs-client/src/connection.rs:219
↓ 4 callers
Method
bind_with_cb
Same as [`bind`](Self::bind) but also sets the callback
wayrs-client/src/global.rs:125
↓ 4 callers
Method
blocking_roundtrip
Perform a blocking roundtrip. This function flushes the buffer of pending requests. All received events during the roundtrip are queued.
wayrs-client/src/connection.rs:349
↓ 4 callers
Method
is_empty
(&self)
wayrs-core/src/ring_buffer.rs:38
↓ 4 callers
Function
make_proxy_path
(iface: impl AsRef<str>)
wayrs-scanner/src/lib.rs:111
↓ 4 callers
Method
read_bytes
(&mut self, buf: &mut [u8])
wayrs-core/src/ring_buffer.rs:79
↓ 4 callers
Method
read_id
(&mut self)
wayrs-core/src/ring_buffer.rs:146
↓ 4 callers
Method
recv_event
(&mut self, mode: IoMode)
wayrs-client/src/connection.rs:409
↓ 4 callers
Method
require
Returns `Err(Error::ExtensionUnsupported(_))` if a given extension is not supported
wayrs-egl/src/egl.rs:441
↓ 4 callers
Method
write_bytes
(&mut self, data: &[u8])
wayrs-core/src/ring_buffer.rs:50
↓ 3 callers
Function
cmsg_space
(len: usize)
wayrs-core/src/transport/unix.rs:133
↓ 3 callers
Method
destroy
Destroy this buffer. Not calling this function and just dropping the buffer will leak some resources.
wayrs-egl/src/buffer.rs:208
↓ 3 callers
Method
dispatch_events
Empty the queue of pending events, calling a callback (if set) for each event. # Panics This method panics if called from the context of a callback.
wayrs-client/src/connection.rs:617
↓ 3 callers
Method
head
(&self)
wayrs-core/src/ring_buffer.rs:46
↓ 3 callers
Method
recv_events
Receive events from Wayland socket. If `mode` is [`Blocking`](IoMode::Blocking), this function will block the current thread until at least one event
wayrs-client/src/connection.rs:536
↓ 3 callers
Method
send_array
(&mut self, array: &[u8])
wayrs-core/src/transport.rs:311
↓ 3 callers
Method
set_callback_for
Set a callback for a given object. # Panics This method panics if current set of objects does not contain an object with id identical to `proxy.id()
wayrs-client/src/connection.rs:301
↓ 2 callers
Method
add_registry_cb
Register a registry event callback. In this library, `wl_registry` is the only object which can have any number of callbacks, which are triggered in
wayrs-client/src/connection.rs:277
↓ 2 callers
Method
alloc_buffer
( &self, width: u32, height: u32, fourcc: Fourcc, modifiers: &[u64],
wayrs-egl/src/gbm.rs:32
↓ 2 callers
Method
alloc_client_object
( &mut self, interface: &'static Interface, version: u32, )
wayrs-client/src/object.rs:187
↓ 2 callers
Method
as_event_ty
(&self, wayrs_client_path: &Ident)
wayrs-scanner/src/lib.rs:817
↓ 2 callers
Method
as_raw_fd
(&self)
wayrs-client/src/connection.rs:95
↓ 2 callers
Function
assert_shader_ok
(shader: u32)
wayrs-egl/examples/triangle.rs:424
↓ 2 callers
Method
async_recv_event
(&mut self)
wayrs-client/src/connection.rs:508
↓ 2 callers
Method
fill_incoming_buf
(&mut self, mode: IoMode)
wayrs-core/src/transport.rs:297
↓ 2 callers
Method
flush
Flush all pending messages.
wayrs-core/src/transport.rs:269
↓ 2 callers
Method
get_args
(&mut self)
wayrs-core/src/lib.rs:249
↓ 2 callers
Method
globals
(&self)
wayrs-client/src/connection.rs:203
↓ 2 callers
Method
is_available
(&self)
wayrs-egl/src/buffer.rs:161
↓ 2 callers
Method
keyboard_removed
Keyboard capability or seat was removed
wayrs-utils/src/seats.rs:83
↓ 2 callers
Function
map_arg_to_argval
(arg: &Argument, is_event: bool)
wayrs-scanner/src/lib.rs:701
↓ 2 callers
Method
move_head
(&mut self, n: usize)
wayrs-core/src/ring_buffer.rs:21
↓ 2 callers
Method
parse_enum_item
( &mut self, arg: BytesStart<'a>, non_empty_tag: bool, )
wayrs-proto-parser/src/parser.rs:302
↓ 2 callers
Method
parse_message
(&mut self, tag: BytesStart<'a>)
wayrs-proto-parser/src/parser.rs:147
↓ 2 callers
Method
peek_bytes
(&mut self, buf: &mut [u8])
wayrs-core/src/ring_buffer.rs:66
↓ 2 callers
Method
pointer_removed
Pointer capability or seat was removed
wayrs-utils/src/seats.rs:77
↓ 2 callers
Method
read_int
(&mut self)
wayrs-core/src/ring_buffer.rs:134
↓ 2 callers
Method
readable_len
(&self)
wayrs-core/src/ring_buffer.rs:30
↓ 2 callers
Method
recv_string
(&mut self)
wayrs-core/src/transport.rs:343
↓ 2 callers
Method
recv_string_with_len
(&mut self, len: u32)
wayrs-core/src/transport.rs:333
↓ 2 callers
Method
registry
(&self)
wayrs-client/src/connection.rs:192
↓ 2 callers
Method
resize
Resize the memmap, at least doubling the size.
wayrs-utils/src/shm_alloc.rs:271
↓ 2 callers
Method
size
(&self)
wayrs-utils/src/shm_alloc.rs:54
↓ 2 callers
Function
snake_to_pascal
(s: &str)
wayrs-scanner/src/utils.rs:1
↓ 2 callers
Method
touch_removed
Touch capability or seat was removed
wayrs-utils/src/seats.rs:89
↓ 2 callers
Method
try_alloc_in_place
Returns segment index, does not resize
wayrs-utils/src/shm_alloc.rs:282
↓ 1 callers
Method
alloc_buffer
Allocate a new buffer. The underlying memory pool will be resized if needed. Previously released buffers are reused whenever possible. See [`WlShmPo
wayrs-utils/src/shm_alloc.rs:90
↓ 1 callers
Method
alloc_segment
Returns segment index
wayrs-utils/src/shm_alloc.rs:341
↓ 1 callers
Method
as_f64
(self)
wayrs-core/src/lib.rs:173
↓ 1 callers
Method
as_raw
(&self)
wayrs-egl/src/gbm.rs:28
↓ 1 callers
Method
as_raw
(&self)
wayrs-egl/src/egl.rs:121
↓ 1 callers
Method
as_request_fn_arg
(&self, wayrs_client_path: &Ident)
wayrs-scanner/src/lib.rs:770
↓ 1 callers
Function
assert_shader_program_ok
(shader_program: u32)
wayrs-egl/examples/triangle.rs:441
↓ 1 callers
Method
async_flush
(&mut self)
wayrs-client/src/connection.rs:588
↓ 1 callers
Method
async_roundtrip
(&mut self)
wayrs-client/src/connection.rs:366
↓ 1 callers
Function
backslash_u
(mut s: &str)
wayrs-scanner/src/mini_syn.rs:94
↓ 1 callers
Function
backslash_x
(s: &str)
wayrs-scanner/src/mini_syn.rs:70
↓ 1 callers
Method
bind
Bind the first instance of a global. Works great for singletons. The version argmuent can be a: - Number - require a specific version - Range to incl
wayrs-client/src/global.rs:97
↓ 1 callers
Method
bind_singleton_with_cb
Same as [`bind_singleton`](Self::bind_singleton) but also sets the callback
wayrs-client/src/connection.rs:244
↓ 1 callers
Method
break_dispatch_loop
Call this function from a callback to break the dispatch loop. This will cause [`dispatch_events`](Self::dispatch_events) to return. Events that go a
wayrs-client/src/connection.rs:678
↓ 1 callers
Method
build
Create a new graphics API context Call [`EglContext::make_current`] to activate the context.
wayrs-egl/src/egl.rs:303
↓ 1 callers
Method
cmp
(&self, other: &Self)
wayrs-client/src/object.rs:61
↓ 1 callers
Method
created_by_client
(self)
wayrs-core/src/lib.rs:57
↓ 1 callers
Method
defragment
(&mut self, conn: &mut Connection<D>)
wayrs-utils/src/shm_alloc.rs:245
↓ 1 callers
Method
delete_client_object
Call it only on client-created objects in response to `wl_display.delete_id`.
wayrs-client/src/object.rs:242
↓ 1 callers
Method
enter_surface
(&mut self, _: &mut Connection<Self>, _: WlKeyboard, _: EnterArgs)
wayrs-utils/src/keyboard.rs:27
↓ 1 callers
Method
export
(&self)
wayrs-egl/src/gbm.rs:93
↓ 1 callers
Method
feedback_done
(&mut self, _: &mut Connection<Self>, wl: ZwpLinuxDmabufFeedbackV1)
wayrs-egl/examples/triangle.rs:347
↓ 1 callers
Method
format_table
(&self)
wayrs-utils/src/dmabuf_feedback.rs:93
↓ 1 callers
Method
gbm_device
(&self)
wayrs-egl/src/egl.rs:126
↓ 1 callers
Function
gen_interface
(iface: &Interface, wayrs_client_path: &Ident)
wayrs-scanner/src/lib.rs:116
↓ 1 callers
Function
gen_request_fn
(opcode: u16, request: &Message, wayrs_client_path: &Ident)
wayrs-scanner/src/lib.rs:522
↓ 1 callers
Method
get_buffer
Get a buffer, reusing free buffers if possible. Returns `Ok(None)` if all buffers are currently in use.
wayrs-egl/src/buffer.rs:248
↓ 1 callers
Method
get_dmabuf_feedback
(&mut self, wl: ZwpLinuxDmabufFeedbackV1)
wayrs-egl/examples/triangle.rs:342
↓ 1 callers
Method
get_grotocol
(mut self)
wayrs-proto-parser/src/parser.rs:63
↓ 1 callers
Method
get_node
(&self, node: c_int)
wayrs-egl/src/drm.rs:35
↓ 1 callers
Method
get_readable_iov
( &'a self, iov_buf: &'b mut [IoSlice<'a>; 2], )
wayrs-core/src/ring_buffer.rs:107
↓ 1 callers
Function
get_supported_formats
( dpy: egl_ffi::EGLDisplay, gbm_device: &gbm::Device, qf: egl_ffi::EglQueryDmabufFormatsExtProc,
wayrs-egl/src/egl.rs:201
↓ 1 callers
Method
get_writeable_iov
( &'a mut self, iov_buf: &'b mut [IoSliceMut<'a>; 2], )
wayrs-core/src/ring_buffer.rs:84
↓ 1 callers
Method
height
(&self)
wayrs-egl/src/buffer.rs:155
next →
1–100 of 258, ranked by callers