Function x11rb::protocol::xproto::free_gc

source ·
pub fn free_gc<Conn>(
    conn: &Conn,
    gc: Gcontext,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Destroys a graphics context.

Destroys the specified gc and all associated storage.

§Fields

  • gc - The graphics context to destroy.

§Errors

  • GContext - The specified graphics context does not exist.