Enum wayland_server::protocol::wl_shell_surface::Event [−][src]
pub enum Event {
Ping {
serial: u32,
},
Configure {
edges: Resize,
width: i32,
height: i32,
},
PopupDone,
}Variants
Pingping client
Ping a client to check if it is receiving events and sending requests. A client is expected to reply with a pong request.
Fields of Ping
serial: u32 |
Configuresuggest resize
The configure event asks the client to resize its surface.
The size is a hint, in the sense that the client is free to ignore it if it doesn't resize, pick a smaller size (to satisfy aspect ratio or resize in steps of NxM pixels).
The edges parameter provides a hint about how the surface was resized. The client may use this information to decide how to adjust its content to the new size (e.g. a scrolling area might adjust its content position to leave the viewable content unmoved).
The client is free to dismiss all but the last configure event it received.
The width and height arguments specify the size of the window in surface-local coordinates.
Fields of Configure
edges: Resize | |
width: i32 | |
height: i32 |
PopupDonepopup interaction is done
The popup_done event is sent out when a popup grab is broken, that is, when the user clicks a surface that doesn't belong to the client owning the popup surface.
Trait Implementations
impl MessageGroup for Event[src]
impl MessageGroup for Eventconst MESSAGES: &'static [MessageDesc]
MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "ping", since: 1, signature: &[super::ArgumentType::Uint],}, super::MessageDesc{name: "configure", since: 1, signature: &[super::ArgumentType::Uint, super::ArgumentType::Int, super::ArgumentType::Int],}, super::MessageDesc{name: "popup_done", since: 1, signature: &[],}]
Wire representation of this MessageGroup
type Map = ResourceMap
The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more
fn is_destructor(&self) -> bool[src]
fn is_destructor(&self) -> boolWhether this message is a destructor Read more
fn opcode(&self) -> u16[src]
fn opcode(&self) -> u16The opcode of this message
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>[src]
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>Retrieve the child Object associated with this message if any
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>[src]
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>Construct a message from its raw representation
fn into_raw(self, sender_id: u32) -> Message[src]
fn into_raw(self, sender_id: u32) -> MessageTurn this message into its raw representation