pub trait GdkCairoContextExt {
    // Required methods
    unsafe fn draw_from_gl(
        &self,
        surface: &Surface,
        source: i32,
        source_type: i32,
        buffer_scale: i32,
        x: i32,
        y: i32,
        width: i32,
        height: i32
    );
    fn set_source_rgba(&self, rgba: &RGBA);
    fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64);
    fn add_rectangle(&self, rectangle: &Rectangle);
    fn add_region(&self, region: &Region);
}
Expand description

Trait containing integration methods with cairo::Context.

Required Methods§

source

unsafe fn draw_from_gl( &self, surface: &Surface, source: i32, source_type: i32, buffer_scale: i32, x: i32, y: i32, width: i32, height: i32 )

Safety

It’s the responsibility of the caller to ensure that source is a valid GL resource.

source

fn set_source_rgba(&self, rgba: &RGBA)

source

fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64)

source

fn add_rectangle(&self, rectangle: &Rectangle)

source

fn add_region(&self, region: &Region)

Implementations on Foreign Types§

source§

impl GdkCairoContextExt for Context

source§

unsafe fn draw_from_gl( &self, surface: &Surface, source: i32, source_type: i32, buffer_scale: i32, x: i32, y: i32, width: i32, height: i32 )

source§

fn set_source_rgba(&self, rgba: &RGBA)

source§

fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64)

source§

fn add_rectangle(&self, rectangle: &Rectangle)

source§

fn add_region(&self, region: &Region)

Implementors§