Trait fltk::prelude::ImageExt [−][src]
pub unsafe trait ImageExt {}Show methods
fn copy(&self) -> Self
where
Self: Sized; fn draw(&mut self, x: i32, y: i32, width: i32, height: i32); fn width(&self) -> i32; fn height(&self) -> i32; fn w(&self) -> i32; fn h(&self) -> i32; unsafe fn as_image_ptr(&self) -> *mut Fl_Image; unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
where
Self: Sized; fn to_rgb_data(&self) -> Vec<u8>; fn to_raw_data(&self) -> *const *const u8; fn to_rgb(&self) -> Result<RgbImage, FltkError>; fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
); fn count(&self) -> i32; fn data_w(&self) -> i32; fn data_h(&self) -> i32; fn depth(&self) -> ColorDepth; fn ld(&self) -> i32; fn inactive(&mut self); unsafe fn delete(img: Self)
where
Self: Sized; fn was_deleted(&self) -> bool; unsafe fn increment_arc(&mut self); unsafe fn decrement_arc(&mut self); unsafe fn into_image<I: ImageExt>(self) -> I
where
Self: Sized;
Expand description
Defines the methods implemented by all image types
Required methods
fn copy(&self) -> Self where
Self: Sized,
[src]
fn copy(&self) -> Self where
Self: Sized,
[src]Performs a deep copy of the image
fn draw(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
fn draw(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]Draws the image at the presupplied coordinates and size
fn width(&self) -> i32
[src]
fn width(&self) -> i32
[src]Return the width of the image
fn height(&self) -> i32
[src]
fn height(&self) -> i32
[src]Return the height of the image
fn w(&self) -> i32
[src]
fn w(&self) -> i32
[src]Return the width of the image
fn h(&self) -> i32
[src]
fn h(&self) -> i32
[src]Return the height of the image
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self where
Self: Sized,
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self where
Self: Sized,
[src]fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]Returns the underlying raw rgb image data
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_raw_data(&self) -> *const *const u8
[src]Returns the underlying raw image data
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]Scales the image
fn count(&self) -> i32
[src]
fn count(&self) -> i32
[src]Return the count of an image
fn data_w(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]Gets the image’s data width
fn data_h(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]Gets the image’s data height
fn depth(&self) -> ColorDepth
[src]
fn depth(&self) -> ColorDepth
[src]Gets the image’s depth
fn ld(&self) -> i32
[src]
fn ld(&self) -> i32
[src]Gets the image’s line data size
fn inactive(&mut self)
[src]
fn inactive(&mut self)
[src]Greys the image
unsafe fn delete(img: Self) where
Self: Sized,
[src]
unsafe fn delete(img: Self) where
Self: Sized,
[src]fn was_deleted(&self) -> bool
[src]
fn was_deleted(&self) -> bool
[src]Checks if the image was deleted
unsafe fn increment_arc(&mut self)
[src]
unsafe fn increment_arc(&mut self)
[src]unsafe fn decrement_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]unsafe fn into_image<I: ImageExt>(self) -> I where
Self: Sized,
[src]
unsafe fn into_image<I: ImageExt>(self) -> I where
Self: Sized,
[src]Transforms an Image base into another Image
Safety
Can be unsafe if used to downcast to an image of different format
Implementors
impl ImageExt for BmpImage
[src]
impl ImageExt for BmpImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for GifImage
[src]
impl ImageExt for GifImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for Image
[src]
impl ImageExt for Image
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for JpegImage
[src]
impl ImageExt for JpegImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for Pixmap
[src]
impl ImageExt for Pixmap
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for PngImage
[src]
impl ImageExt for PngImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for PnmImage
[src]
impl ImageExt for PnmImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for RgbImage
[src]
impl ImageExt for RgbImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for SharedImage
[src]
impl ImageExt for SharedImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for SvgImage
[src]
impl ImageExt for SvgImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for TiledImage
[src]
impl ImageExt for TiledImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for XbmImage
[src]
impl ImageExt for XbmImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
fn count(&self) -> i32
[src]
fn data_w(&self) -> i32
[src]
fn data_h(&self) -> i32
[src]
fn depth(&self) -> ColorDepth
[src]
fn ld(&self) -> i32
[src]
fn inactive(&mut self)
[src]
unsafe fn delete(img: Self)
[src]
unsafe fn increment_arc(&mut self)
[src]
unsafe fn decrement_arc(&mut self)
[src]
fn was_deleted(&self) -> bool
[src]
unsafe fn into_image<I: ImageExt>(self) -> I
[src]
impl ImageExt for XpmImage
[src]
impl ImageExt for XpmImage
[src]fn copy(&self) -> Self
[src]
fn draw(&mut self, arg2: i32, arg3: i32, arg4: i32, arg5: i32)
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
unsafe fn as_image_ptr(&self) -> *mut Fl_Image
[src]
unsafe fn from_image_ptr(ptr: *mut Fl_Image) -> Self
[src]
fn to_rgb_data(&self) -> Vec<u8>
[src]
fn to_raw_data(&self) -> *const *const u8
[src]
fn to_rgb(&self) -> Result<RgbImage, FltkError>
[src]
fn scale(
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)
[src]
&mut self,
width: i32,
height: i32,
proportional: bool,
can_expand: bool
)