Enum wayland_server::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 region

Destroy the region. This will invalidate the object ID.

This is a destructor, once received this object cannot be used any longer.

add rectangle to region

Add the specified rectangle to the region.

Fields of Add

subtract rectangle from region

Subtract the specified rectangle from the region.

Fields of Subtract

Trait Implementations

impl MessageGroup for Request
[src]

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

The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more

Whether this message is a destructor Read more

Retrieve the child Object associated with this message if any

Construct a message from its raw representation

Turn this message into its raw representation

Auto Trait Implementations

impl Send for Request

impl Sync for Request