Enum wayland_client::protocol::wl_region::Request [−][src]
pub enum Request { Destroy, Add { x: i32, y: i32, width: i32, height: i32, }, Subtract { x: i32, y: i32, width: i32, height: i32, }, }
Variants
Destroy
destroy region
Destroy the region. This will invalidate the object ID.
This is a destructor, once sent this object cannot be used any longer.
Add
add rectangle to region
Add the specified rectangle to the region.
Fields of Add
x: i32 | |
y: i32 | |
width: i32 | |
height: i32 |
Subtract
subtract rectangle from region
Subtract the specified rectangle from the region.
Fields of Subtract
x: i32 | |
y: i32 | |
width: i32 | |
height: i32 |
Trait Implementations
impl MessageGroup for Request
[src]
impl MessageGroup for Request
const MESSAGES: &'static [MessageDesc]
MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "destroy", since: 1, signature: &[],}, super::MessageDesc{name: "add", since: 1, signature: &[super::ArgumentType::Int, super::ArgumentType::Int, super::ArgumentType::Int, super::ArgumentType::Int],}, super::MessageDesc{name: "subtract", since: 1, signature: &[super::ArgumentType::Int, super::ArgumentType::Int, super::ArgumentType::Int, super::ArgumentType::Int],}]
Wire representation of this MessageGroup
type Map = ProxyMap
fn is_destructor(&self) -> bool
[src]
fn is_destructor(&self) -> bool
Whether this message is a destructor Read more
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) -> Message
Turn this message into its raw representation