pub trait ImplImage:
Clone
+ Sized
+ Rc {
Show 14 methods
// Required methods
fn is_empty(&self) -> c_int;
fn is_same(&self, that: Option<&mut Image>) -> c_int;
fn add_bitmap(
&self,
scale_factor: f32,
pixel_width: c_int,
pixel_height: c_int,
color_type: ColorType,
alpha_type: AlphaType,
pixel_data: Option<&[u8]>,
) -> c_int;
fn add_png(&self, scale_factor: f32, png_data: Option<&[u8]>) -> c_int;
fn add_jpeg(&self, scale_factor: f32, jpeg_data: Option<&[u8]>) -> c_int;
fn width(&self) -> usize;
fn height(&self) -> usize;
fn has_representation(&self, scale_factor: f32) -> c_int;
fn remove_representation(&self, scale_factor: f32) -> c_int;
fn representation_info(
&self,
scale_factor: f32,
actual_scale_factor: Option<&mut f32>,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> c_int;
fn as_bitmap(
&self,
scale_factor: f32,
color_type: ColorType,
alpha_type: AlphaType,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> Option<BinaryValue>;
fn as_png(
&self,
scale_factor: f32,
with_transparency: c_int,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> Option<BinaryValue>;
fn as_jpeg(
&self,
scale_factor: f32,
quality: c_int,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> Option<BinaryValue>;
fn get_raw(&self) -> *mut _cef_image_t;
}Required Methods§
Sourcefn is_empty(&self) -> c_int
fn is_empty(&self) -> c_int
See _cef_image_t::is_empty for more documentation.
Sourcefn is_same(&self, that: Option<&mut Image>) -> c_int
fn is_same(&self, that: Option<&mut Image>) -> c_int
See _cef_image_t::is_same for more documentation.
Sourcefn add_bitmap(
&self,
scale_factor: f32,
pixel_width: c_int,
pixel_height: c_int,
color_type: ColorType,
alpha_type: AlphaType,
pixel_data: Option<&[u8]>,
) -> c_int
fn add_bitmap( &self, scale_factor: f32, pixel_width: c_int, pixel_height: c_int, color_type: ColorType, alpha_type: AlphaType, pixel_data: Option<&[u8]>, ) -> c_int
See _cef_image_t::add_bitmap for more documentation.
Sourcefn add_png(&self, scale_factor: f32, png_data: Option<&[u8]>) -> c_int
fn add_png(&self, scale_factor: f32, png_data: Option<&[u8]>) -> c_int
See _cef_image_t::add_png for more documentation.
Sourcefn add_jpeg(&self, scale_factor: f32, jpeg_data: Option<&[u8]>) -> c_int
fn add_jpeg(&self, scale_factor: f32, jpeg_data: Option<&[u8]>) -> c_int
See _cef_image_t::add_jpeg for more documentation.
Sourcefn width(&self) -> usize
fn width(&self) -> usize
See _cef_image_t::get_width for more documentation.
Sourcefn height(&self) -> usize
fn height(&self) -> usize
See _cef_image_t::get_height for more documentation.
Sourcefn has_representation(&self, scale_factor: f32) -> c_int
fn has_representation(&self, scale_factor: f32) -> c_int
See _cef_image_t::has_representation for more documentation.
Sourcefn remove_representation(&self, scale_factor: f32) -> c_int
fn remove_representation(&self, scale_factor: f32) -> c_int
See _cef_image_t::remove_representation for more documentation.
Sourcefn representation_info(
&self,
scale_factor: f32,
actual_scale_factor: Option<&mut f32>,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> c_int
fn representation_info( &self, scale_factor: f32, actual_scale_factor: Option<&mut f32>, pixel_width: Option<&mut c_int>, pixel_height: Option<&mut c_int>, ) -> c_int
See _cef_image_t::get_representation_info for more documentation.
Sourcefn as_bitmap(
&self,
scale_factor: f32,
color_type: ColorType,
alpha_type: AlphaType,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> Option<BinaryValue>
fn as_bitmap( &self, scale_factor: f32, color_type: ColorType, alpha_type: AlphaType, pixel_width: Option<&mut c_int>, pixel_height: Option<&mut c_int>, ) -> Option<BinaryValue>
See _cef_image_t::get_as_bitmap for more documentation.
Sourcefn as_png(
&self,
scale_factor: f32,
with_transparency: c_int,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> Option<BinaryValue>
fn as_png( &self, scale_factor: f32, with_transparency: c_int, pixel_width: Option<&mut c_int>, pixel_height: Option<&mut c_int>, ) -> Option<BinaryValue>
See _cef_image_t::get_as_png for more documentation.
Sourcefn as_jpeg(
&self,
scale_factor: f32,
quality: c_int,
pixel_width: Option<&mut c_int>,
pixel_height: Option<&mut c_int>,
) -> Option<BinaryValue>
fn as_jpeg( &self, scale_factor: f32, quality: c_int, pixel_width: Option<&mut c_int>, pixel_height: Option<&mut c_int>, ) -> Option<BinaryValue>
See _cef_image_t::get_as_jpeg for more documentation.
fn get_raw(&self) -> *mut _cef_image_t
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.