Struct fltk::draw::Offscreen[][src]

pub struct Offscreen { /* fields omitted */ }

Opaque type around Fl_Offscreen

Implementations

impl Offscreen[src]

pub fn new(w: i32, h: i32) -> Option<Offscreen>[src]

Creates a new offscreen type

pub unsafe fn uninit() -> Offscreen[src]

Creates an uninitialized offscreen type

Safety

Leaves the offscreen in an uninitialized state

pub fn begin(&self)[src]

Begins drawing in the offscreen

pub fn end(&self)[src]

Ends drawing in the offscreen

pub fn copy(&self, x: i32, y: i32, w: i32, h: i32, srcx: i32, srcy: i32)[src]

Copies the offscreen

pub fn rescale(&mut self)[src]

Rescales the offscreen

pub fn is_valid(&self) -> bool[src]

Checks the validity of the offscreen

pub unsafe fn shallow_copy(&self) -> Offscreen[src]

Performs a shallow copy of the offscreen

Safety

This can lead to multiple mutable references to the same offscreen

Trait Implementations

impl Debug for Offscreen[src]

impl Drop for Offscreen[src]

impl Send for Offscreen[src]

impl Sync for Offscreen[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.