Trait x11rb::protocol::dri2::ConnectionExt

source ·
pub trait ConnectionExt: RequestConnection {
Show 14 methods // Provided methods fn dri2_query_version( &self, major_version: u32, minor_version: u32 ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError> { ... } fn dri2_connect( &self, window: Window, driver_type: DriverType ) -> Result<Cookie<'_, Self, ConnectReply>, ConnectionError> { ... } fn dri2_authenticate( &self, window: Window, magic: u32 ) -> Result<Cookie<'_, Self, AuthenticateReply>, ConnectionError> { ... } fn dri2_create_drawable( &self, drawable: Drawable ) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... } fn dri2_destroy_drawable( &self, drawable: Drawable ) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... } fn dri2_get_buffers<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [u32] ) -> Result<Cookie<'c, Self, GetBuffersReply>, ConnectionError> { ... } fn dri2_copy_region( &self, drawable: Drawable, region: u32, dest: u32, src: u32 ) -> Result<Cookie<'_, Self, CopyRegionReply>, ConnectionError> { ... } fn dri2_get_buffers_with_format<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [AttachFormat] ) -> Result<Cookie<'c, Self, GetBuffersWithFormatReply>, ConnectionError> { ... } fn dri2_swap_buffers( &self, drawable: Drawable, target_msc_hi: u32, target_msc_lo: u32, divisor_hi: u32, divisor_lo: u32, remainder_hi: u32, remainder_lo: u32 ) -> Result<Cookie<'_, Self, SwapBuffersReply>, ConnectionError> { ... } fn dri2_get_msc( &self, drawable: Drawable ) -> Result<Cookie<'_, Self, GetMSCReply>, ConnectionError> { ... } fn dri2_wait_msc( &self, drawable: Drawable, target_msc_hi: u32, target_msc_lo: u32, divisor_hi: u32, divisor_lo: u32, remainder_hi: u32, remainder_lo: u32 ) -> Result<Cookie<'_, Self, WaitMSCReply>, ConnectionError> { ... } fn dri2_wait_sbc( &self, drawable: Drawable, target_sbc_hi: u32, target_sbc_lo: u32 ) -> Result<Cookie<'_, Self, WaitSBCReply>, ConnectionError> { ... } fn dri2_swap_interval( &self, drawable: Drawable, interval: u32 ) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... } fn dri2_get_param( &self, drawable: Drawable, param: u32 ) -> Result<Cookie<'_, Self, GetParamReply>, ConnectionError> { ... }
}
Expand description

Extension trait defining the requests of this extension.

Provided Methods§

source

fn dri2_query_version( &self, major_version: u32, minor_version: u32 ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>

source

fn dri2_connect( &self, window: Window, driver_type: DriverType ) -> Result<Cookie<'_, Self, ConnectReply>, ConnectionError>

source

fn dri2_authenticate( &self, window: Window, magic: u32 ) -> Result<Cookie<'_, Self, AuthenticateReply>, ConnectionError>

source

fn dri2_create_drawable( &self, drawable: Drawable ) -> Result<VoidCookie<'_, Self>, ConnectionError>

source

fn dri2_destroy_drawable( &self, drawable: Drawable ) -> Result<VoidCookie<'_, Self>, ConnectionError>

source

fn dri2_get_buffers<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [u32] ) -> Result<Cookie<'c, Self, GetBuffersReply>, ConnectionError>

source

fn dri2_copy_region( &self, drawable: Drawable, region: u32, dest: u32, src: u32 ) -> Result<Cookie<'_, Self, CopyRegionReply>, ConnectionError>

source

fn dri2_get_buffers_with_format<'c, 'input>( &'c self, drawable: Drawable, count: u32, attachments: &'input [AttachFormat] ) -> Result<Cookie<'c, Self, GetBuffersWithFormatReply>, ConnectionError>

source

fn dri2_swap_buffers( &self, drawable: Drawable, target_msc_hi: u32, target_msc_lo: u32, divisor_hi: u32, divisor_lo: u32, remainder_hi: u32, remainder_lo: u32 ) -> Result<Cookie<'_, Self, SwapBuffersReply>, ConnectionError>

source

fn dri2_get_msc( &self, drawable: Drawable ) -> Result<Cookie<'_, Self, GetMSCReply>, ConnectionError>

source

fn dri2_wait_msc( &self, drawable: Drawable, target_msc_hi: u32, target_msc_lo: u32, divisor_hi: u32, divisor_lo: u32, remainder_hi: u32, remainder_lo: u32 ) -> Result<Cookie<'_, Self, WaitMSCReply>, ConnectionError>

source

fn dri2_wait_sbc( &self, drawable: Drawable, target_sbc_hi: u32, target_sbc_lo: u32 ) -> Result<Cookie<'_, Self, WaitSBCReply>, ConnectionError>

source

fn dri2_swap_interval( &self, drawable: Drawable, interval: u32 ) -> Result<VoidCookie<'_, Self>, ConnectionError>

source

fn dri2_get_param( &self, drawable: Drawable, param: u32 ) -> Result<Cookie<'_, Self, GetParamReply>, ConnectionError>

Object Safety§

This trait is not object safe.

Implementors§