#[repr(u32)]pub enum DesktopMessageType {
Show 35 variants
CreateWindow = 100,
DestroyWindow = 101,
MoveWindow = 102,
ResizeWindow = 103,
FocusWindow = 104,
UpdateWindowContent = 105,
MinimizeWindow = 106,
MaximizeWindow = 107,
SetWindowTitle = 108,
GetWindowGeometry = 109,
KeyPress = 200,
KeyRelease = 201,
MouseMove = 202,
MouseButton = 203,
ScrollEvent = 204,
TouchDown = 205,
TouchUp = 206,
TouchMotion = 207,
TerminalInput = 300,
TerminalOutput = 301,
TerminalResize = 302,
SurfaceCommit = 400,
SurfaceAttach = 401,
SurfaceDamage = 402,
FrameCallback = 403,
NotificationShow = 500,
NotificationDismiss = 501,
NotificationAction = 502,
ClipboardSet = 600,
ClipboardGet = 601,
ClipboardChanged = 602,
LaunchApp = 700,
ListApps = 701,
Success = 900,
Error = 901,
}Expand description
Desktop IPC message types.
Grouped by subsystem with non-overlapping discriminant ranges so that a
single match on the wire u32 unambiguously identifies the message.
Variants§
CreateWindow = 100
Request: create a new window
DestroyWindow = 101
Request: destroy an existing window
MoveWindow = 102
Request: move a window to (x, y)
ResizeWindow = 103
Request: resize a window to (w, h)
FocusWindow = 104
Request: give keyboard focus to a window
UpdateWindowContent = 105
Request: update a region of the window’s framebuffer
MinimizeWindow = 106
Request: minimize a window
MaximizeWindow = 107
Request: maximize/restore a window
SetWindowTitle = 108
Request: set a window’s title
GetWindowGeometry = 109
Request: query window geometry
KeyPress = 200
Event: key pressed
KeyRelease = 201
Event: key released
MouseMove = 202
Event: pointer motion
MouseButton = 203
Event: pointer button press/release
ScrollEvent = 204
Event: scroll wheel or touchpad scroll
TouchDown = 205
Event: touch down
TouchUp = 206
Event: touch up
TouchMotion = 207
Event: touch motion
TerminalInput = 300
Data: terminal stdin bytes
TerminalOutput = 301
Data: terminal stdout bytes
TerminalResize = 302
Request: resize terminal (cols, rows)
SurfaceCommit = 400
Request: commit surface
SurfaceAttach = 401
Request: attach buffer to surface
SurfaceDamage = 402
Request: mark damage region
FrameCallback = 403
Event: frame callback
NotificationShow = 500
Request: show a notification
NotificationDismiss = 501
Request: dismiss a notification
NotificationAction = 502
Event: notification was clicked
ClipboardSet = 600
Request: set clipboard content
ClipboardGet = 601
Request: get clipboard content
ClipboardChanged = 602
Event: clipboard content changed
LaunchApp = 700
Request: launch an application by name
ListApps = 701
Request: list available applications
Success = 900
Generic success response
Error = 901
Generic error response with reason code
Implementations§
Trait Implementations§
Source§impl Clone for DesktopMessageType
impl Clone for DesktopMessageType
Source§fn clone(&self) -> DesktopMessageType
fn clone(&self) -> DesktopMessageType
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DesktopMessageType
impl Debug for DesktopMessageType
Source§impl PartialEq for DesktopMessageType
impl PartialEq for DesktopMessageType
impl Copy for DesktopMessageType
impl Eq for DesktopMessageType
impl StructuralPartialEq for DesktopMessageType
Auto Trait Implementations§
impl Freeze for DesktopMessageType
impl RefUnwindSafe for DesktopMessageType
impl Send for DesktopMessageType
impl Sync for DesktopMessageType
impl Unpin for DesktopMessageType
impl UnwindSafe for DesktopMessageType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)