Function x11rb::protocol::xproto::create_pixmap [−][src]
pub fn create_pixmap<Conn: ?Sized>(
conn: &Conn,
depth: u8,
pid: Pixmap,
drawable: Drawable,
width: u16,
height: u16
) -> Result<VoidCookie<'_, Conn>, ConnectionError> where
Conn: RequestConnection + ?Sized,
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