Trait gdk::prelude::ContextExt [−][src]
pub trait ContextExt { fn create_from_window(window: &Window) -> Context; fn cairo_surface_create_from_pixbuf<'a, P: Into<Option<&'a Window>>>(
pixbuf: &Pixbuf,
scale: i32,
for_window: P
) -> Option<Surface>; fn get_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(&self, window: &Window, x: f64, y: f64); fn rectangle(&self, rectangle: &Rectangle); fn add_region(&self, region: &Region); }
Required Methods
fn create_from_window(window: &Window) -> Context
fn cairo_surface_create_from_pixbuf<'a, P: Into<Option<&'a Window>>>(
pixbuf: &Pixbuf,
scale: i32,
for_window: P
) -> Option<Surface>
pixbuf: &Pixbuf,
scale: i32,
for_window: P
) -> Option<Surface>
fn get_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(&self, window: &Window, x: f64, y: f64)
fn rectangle(&self, rectangle: &Rectangle)
fn add_region(&self, region: &Region)
Implementations on Foreign Types
impl ContextExt for Context
[src]
impl ContextExt for Context
fn create_from_window(window: &Window) -> Context
[src]
fn create_from_window(window: &Window) -> Context
fn cairo_surface_create_from_pixbuf<'a, P: Into<Option<&'a Window>>>(
pixbuf: &Pixbuf,
scale: i32,
for_window: P
) -> Option<Surface>
[src]
fn cairo_surface_create_from_pixbuf<'a, P: Into<Option<&'a Window>>>(
pixbuf: &Pixbuf,
scale: i32,
for_window: P
) -> Option<Surface>
fn get_clip_rectangle(&self) -> Option<Rectangle>
[src]
fn get_clip_rectangle(&self) -> Option<Rectangle>
fn set_source_rgba(&self, rgba: &RGBA)
[src]
fn set_source_rgba(&self, rgba: &RGBA)
fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64)
[src]
fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64)
fn set_source_window(&self, window: &Window, x: f64, y: f64)
[src]
fn set_source_window(&self, window: &Window, x: f64, y: f64)
fn rectangle(&self, rectangle: &Rectangle)
[src]
fn rectangle(&self, rectangle: &Rectangle)
fn add_region(&self, region: &Region)
[src]
fn add_region(&self, region: &Region)