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

pub struct Offscreen { /* fields omitted */ }
Expand description

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, src_x: i32, src_y: 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]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Drop for Offscreen[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.