Function x11rb::protocol::dbe::allocate_back_buffer

source ·
pub fn allocate_back_buffer<Conn>(
    conn: &Conn,
    window: Window,
    buffer: BackBuffer,
    swap_action: u8
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Allocates a back buffer.

Associates buffer with the back buffer of window. Multiple ids may be associated with the back buffer, which is created by the first allocate call and destroyed by the last deallocate.

§Fields

  • window - The window to which to add the back buffer.
  • buffer - The buffer id to associate with the back buffer.
  • swap_action - The swap action most likely to be used to present this back buffer. This is only a hint, and does not preclude the use of other swap actions.