Struct x11rb_protocol::protocol::xproto::CreatePixmapRequest
source · [−]pub struct CreatePixmapRequest {
pub depth: u8,
pub pid: Pixmap,
pub drawable: Drawable,
pub width: u16,
pub height: u16,
}
Expand description
Creates a pixmap.
Creates a pixmap. The pixmap can only be used on the same screen as drawable
is on and only with drawables of the same depth
.
Fields
depth
- TODOpid
- The ID with which you will refer to the new pixmap, created byxcb_generate_id
.drawable
- Drawable to get the screen from.width
- The width of the new pixmap.height
- The height of the new pixmap.
Errors
Value
- TODO: reasons?Drawable
- The specifieddrawable
(Window or Pixmap) does not exist.Alloc
- The X server could not allocate the requested resources (no memory?).
See
xcb_generate_id
: function
Fields
depth: u8
pid: Pixmap
drawable: Drawable
width: u16
height: u16
Implementations
sourceimpl CreatePixmapRequest
impl CreatePixmapRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations
sourceimpl Clone for CreatePixmapRequest
impl Clone for CreatePixmapRequest
sourcefn clone(&self) -> CreatePixmapRequest
fn clone(&self) -> CreatePixmapRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreatePixmapRequest
impl Debug for CreatePixmapRequest
sourceimpl Default for CreatePixmapRequest
impl Default for CreatePixmapRequest
sourcefn default() -> CreatePixmapRequest
fn default() -> CreatePixmapRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for CreatePixmapRequest
impl Hash for CreatePixmapRequest
sourceimpl Ord for CreatePixmapRequest
impl Ord for CreatePixmapRequest
sourceimpl PartialEq<CreatePixmapRequest> for CreatePixmapRequest
impl PartialEq<CreatePixmapRequest> for CreatePixmapRequest
sourcefn eq(&self, other: &CreatePixmapRequest) -> bool
fn eq(&self, other: &CreatePixmapRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreatePixmapRequest) -> bool
fn ne(&self, other: &CreatePixmapRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CreatePixmapRequest> for CreatePixmapRequest
impl PartialOrd<CreatePixmapRequest> for CreatePixmapRequest
sourcefn partial_cmp(&self, other: &CreatePixmapRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &CreatePixmapRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Request for CreatePixmapRequest
impl Request for CreatePixmapRequest
impl Copy for CreatePixmapRequest
impl Eq for CreatePixmapRequest
impl StructuralEq for CreatePixmapRequest
impl StructuralPartialEq for CreatePixmapRequest
impl VoidRequest for CreatePixmapRequest
Auto Trait Implementations
impl RefUnwindSafe for CreatePixmapRequest
impl Send for CreatePixmapRequest
impl Sync for CreatePixmapRequest
impl Unpin for CreatePixmapRequest
impl UnwindSafe for CreatePixmapRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more