pub struct NativeWaylandShmTransport { /* private fields */ }Expand description
Native libwayland-client.so.0 transport invoking wl_shm_pool, wl_buffer, wl_surface, and wl_display_flush.
Implementations§
Source§impl NativeWaylandShmTransport
impl NativeWaylandShmTransport
pub fn get_display(&self) -> usize
pub fn get_mut_display(&mut self) -> &mut usize
pub fn set_display(&mut self, val: usize) -> &mut Self
pub fn get_surface(&self) -> usize
pub fn get_mut_surface(&mut self) -> &mut usize
pub fn set_surface(&mut self, val: usize) -> &mut Self
pub fn get_wl_shm(&self) -> usize
pub fn get_mut_wl_shm(&mut self) -> &mut usize
pub fn set_wl_shm(&mut self, val: usize) -> &mut Self
pub fn get_surface_version(&self) -> u32
pub fn get_mut_surface_version(&mut self) -> &mut u32
pub fn set_surface_version(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for NativeWaylandShmTransport
impl Clone for NativeWaylandShmTransport
impl Copy for NativeWaylandShmTransport
Source§impl Debug for NativeWaylandShmTransport
impl Debug for NativeWaylandShmTransport
Source§impl Default for NativeWaylandShmTransport
impl Default for NativeWaylandShmTransport
impl Eq for NativeWaylandShmTransport
impl StructuralPartialEq for NativeWaylandShmTransport
Source§impl WaylandShmCommitOps for NativeWaylandShmTransport
Native libwayland-client.so.0 protocol marshaling for WaylandShmCommitOps.
impl WaylandShmCommitOps for NativeWaylandShmTransport
Native libwayland-client.so.0 protocol marshaling for WaylandShmCommitOps.
Source§fn create_pool_and_buffer(
&mut self,
desc: WaylandShmBufferDescriptor,
) -> Result<(usize, usize), PlatformError>
fn create_pool_and_buffer( &mut self, desc: WaylandShmBufferDescriptor, ) -> Result<(usize, usize), PlatformError>
Allocates a wl_shm_pool and wl_buffer over libwayland-client.so.0 and binds WL_BUFFER_LISTENER.
§Arguments
&Self- Mutable native Wayland transport.WaylandShmBufferDescriptor- Shared-memory FD, geometry, format, and release flag pointer.
§Returns
Result<(usize, usize), PlatformError>-(wl_shm_pool*, wl_buffer*)handles on success.
Source§fn attach_damage_commit_flush(
&mut self,
buffer: usize,
damage_rects: &[(i32, i32, i32, i32)],
) -> Result<(), PlatformError>
fn attach_damage_commit_flush( &mut self, buffer: usize, damage_rects: &[(i32, i32, i32, i32)], ) -> Result<(), PlatformError>
Calls wl_surface_attach, wl_surface_damage_buffer per dirty rect, wl_surface_commit, and wl_display_flush.
§Arguments
&Self- Mutable native Wayland transport.usize- Livewl_buffer*handle.&[(i32, i32, i32, i32)]- Buffer-space damage rectangles.
§Returns
Result<(), PlatformError>-Erron missing handles, flush failure, orwl_display_get_error != 0.
Source§fn dispatch_pending(&mut self) -> Result<(), PlatformError>
fn dispatch_pending(&mut self) -> Result<(), PlatformError>
Auto Trait Implementations§
impl Forget for NativeWaylandShmTransport
impl Freeze for NativeWaylandShmTransport
impl Move for NativeWaylandShmTransport
impl RefUnwindSafe for NativeWaylandShmTransport
impl Send for NativeWaylandShmTransport
impl Sync for NativeWaylandShmTransport
impl Unpin for NativeWaylandShmTransport
impl UnsafeUnpin for NativeWaylandShmTransport
impl UnwindSafe for NativeWaylandShmTransport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more