Skip to main content

GdkContextExt

Trait GdkContextExt 

Source
pub trait GdkContextExt {
    // Required methods
    fn create_from_window<W: IsA<Window>>(window: &W) -> Context;
    unsafe fn draw_from_gl<W: IsA<Window>>(
        &self,
        window: &W,
        source: i32,
        source_type: i32,
        buffer_scale: i32,
        x: i32,
        y: i32,
        width: i32,
        height: i32,
    );
    fn clip_rectangle(&self) -> Option<Rectangle>;
    fn set_source_rgba(&self, rgba: &RGBA);
    fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64);
    fn set_source_window<W: IsA<Window>>(&self, window: &W, x: f64, y: f64);
    fn rectangle(&self, rectangle: &Rectangle);
    fn add_region(&self, region: &Region);
}

Required Methods§

Source

fn create_from_window<W: IsA<Window>>(window: &W) -> Context

Source

unsafe fn draw_from_gl<W: IsA<Window>>( &self, window: &W, source: i32, source_type: i32, buffer_scale: i32, x: i32, y: i32, width: i32, height: i32, )

Source

fn clip_rectangle(&self) -> Option<Rectangle>

Source

fn set_source_rgba(&self, rgba: &RGBA)

Source

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

Source

fn set_source_window<W: IsA<Window>>(&self, window: &W, x: f64, y: f64)

Source

fn rectangle(&self, rectangle: &Rectangle)

Source

fn add_region(&self, region: &Region)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GdkContextExt for Context

Source§

fn create_from_window<W: IsA<Window>>(window: &W) -> Context

Source§

unsafe fn draw_from_gl<W: IsA<Window>>( &self, window: &W, source: i32, source_type: i32, buffer_scale: i32, x: i32, y: i32, width: i32, height: i32, )

Source§

fn clip_rectangle(&self) -> Option<Rectangle>

Source§

fn set_source_rgba(&self, rgba: &RGBA)

Source§

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

Source§

fn set_source_window<W: IsA<Window>>(&self, window: &W, x: f64, y: f64)

Source§

fn rectangle(&self, rectangle: &Rectangle)

Source§

fn add_region(&self, region: &Region)

Implementors§