[][src]Struct fltk::image::Image

pub struct Image { /* fields omitted */ }

Wrapper around Fl_Image, used to wrap other image types

Implementations

impl Image[src]

A conversion function for internal use

pub unsafe fn as_ptr(&self) -> *mut Fl_Image[src]

Returns the internal pointer of Image

Safety

Can lead to multiple mutable pointers of the same image

pub unsafe fn from_raw(ptr: *mut Fl_Image) -> Self[src]

Initialize an Image base from a raw pointer

Safety

Can be unsafe if given an invalid pointer

pub unsafe fn into<I: ImageExt>(self) -> I[src]

Transforms an Image base into another Image

Safety

Can be unsafe if used to downcast to an image of different format

pub unsafe fn delete<I: ImageExt>(img: I)[src]

Deletes an image

Safety

An image shouldn't be deleted while it's being used by a widget

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

impl ImageExt for Image[src]

impl Send for Image[src]

impl Sync for Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Unpin for Image

impl UnwindSafe for Image

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.