pub struct LinuxPlatform { /* private fields */ }Expand description
Direct Linux X11 / Wayland (dlopen-loaded) + Vulkan platform backend.
Implementations§
Source§impl LinuxPlatform
impl LinuxPlatform
pub fn get_windows(&self) -> &HashMap<WindowId, LinuxWindowRecord>
pub fn get_mut_windows(&mut self) -> &mut HashMap<WindowId, LinuxWindowRecord>
pub fn set_windows( &mut self, val: HashMap<WindowId, LinuxWindowRecord>, ) -> &mut Self
pub fn get_pending_events(&self) -> &Vec<WindowEvent>
pub fn get_mut_pending_events(&mut self) -> &mut Vec<WindowEvent>
pub fn set_pending_events(&mut self, val: Vec<WindowEvent>) -> &mut Self
pub fn get_mut_clipboard_cache(&mut self) -> &mut Option<String>
pub fn set_clipboard_cache(&mut self, val: Option<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for LinuxPlatform
impl Clone for LinuxPlatform
Source§impl Debug for LinuxPlatform
impl Debug for LinuxPlatform
Source§impl Default for LinuxPlatform
Default initialization for LinuxPlatform.
impl Default for LinuxPlatform
Default initialization for LinuxPlatform.
Source§impl PlatformBackend for LinuxPlatform
PlatformBackend implementation for native Linux.
impl PlatformBackend for LinuxPlatform
PlatformBackend implementation for native Linux.
Source§fn kind(&self) -> PlatformKind
fn kind(&self) -> PlatformKind
Source§fn capabilities(&self) -> PlatformCapabilities
fn capabilities(&self) -> PlatformCapabilities
Source§fn create_window(
&mut self,
config: &WindowConfig,
) -> Result<WindowState, PlatformError>
fn create_window( &mut self, config: &WindowConfig, ) -> Result<WindowState, PlatformError>
Source§fn window_state(&self, id: WindowId) -> Option<WindowState>
fn window_state(&self, id: WindowId) -> Option<WindowState>
Source§fn raw_window_handle(&self, id: WindowId) -> RawWindowHandle
fn raw_window_handle(&self, id: WindowId) -> RawWindowHandle
Source§fn poll_events(&mut self) -> Vec<WindowEvent>
fn poll_events(&mut self) -> Vec<WindowEvent>
Source§fn present_framebuffer(
&mut self,
id: WindowId,
framebuffer: &Framebuffer,
) -> Result<(), PlatformError>
fn present_framebuffer( &mut self, id: WindowId, framebuffer: &Framebuffer, ) -> Result<(), PlatformError>
Source§fn read_clipboard(&self) -> Option<String>
fn read_clipboard(&self) -> Option<String>
Source§fn write_clipboard(&mut self, text: &str) -> Result<(), PlatformError>
fn write_clipboard(&mut self, text: &str) -> Result<(), PlatformError>
Source§fn system_theme(&self) -> ThemeMode
fn system_theme(&self) -> ThemeMode
Source§fn present_framebuffer_region(
&mut self,
id: WindowId,
framebuffer: &Framebuffer,
_damage: DamageRegion,
) -> Result<(), PlatformError>
fn present_framebuffer_region( &mut self, id: WindowId, framebuffer: &Framebuffer, _damage: DamageRegion, ) -> Result<(), PlatformError>
Presents a damaged sub-region of a CPU-rendered RGBA8
Framebuffer when supported by the backend. Read moreSource§impl WindowController for LinuxPlatform
WindowController implementation for Linux X11 / Wayland.
impl WindowController for LinuxPlatform
WindowController implementation for Linux X11 / Wayland.
Source§fn apply_command(&mut self, command: WindowCommand) -> Result<(), PlatformError>
fn apply_command(&mut self, command: WindowCommand) -> Result<(), PlatformError>
Auto Trait Implementations§
impl Forget for LinuxPlatform
impl Freeze for LinuxPlatform
impl Move for LinuxPlatform
impl RefUnwindSafe for LinuxPlatform
impl Send for LinuxPlatform
impl Sync for LinuxPlatform
impl Unpin for LinuxPlatform
impl UnsafeUnpin for LinuxPlatform
impl UnwindSafe for LinuxPlatform
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