pub struct Image(/* private fields */);
Expand description
See _cef_image_t
for more documentation.
Trait Implementations§
Source§impl ConvertParam<*mut _cef_image_t> for &Image
impl ConvertParam<*mut _cef_image_t> for &Image
fn into_raw(self) -> *mut _cef_image_t
Source§impl ConvertParam<*mut _cef_image_t> for &mut Image
impl ConvertParam<*mut _cef_image_t> for &mut Image
fn into_raw(self) -> *mut _cef_image_t
Source§impl ConvertReturnValue<Image> for *mut _cef_image_t
impl ConvertReturnValue<Image> for *mut _cef_image_t
fn wrap_result(self) -> Image
Source§impl ImplImage for Image
impl ImplImage for Image
Source§fn is_empty(&self) -> c_int
fn is_empty(&self) -> c_int
See
_cef_image_t::is_empty
for more documentation.Source§fn 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.Source§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_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.Source§fn 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.Source§fn 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.Source§fn width(&self) -> usize
fn width(&self) -> usize
See
_cef_image_t::get_width
for more documentation.Source§fn height(&self) -> usize
fn height(&self) -> usize
See
_cef_image_t::get_height
for more documentation.Source§fn 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.Source§fn 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.Source§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 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.Source§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_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.Source§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_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.Source§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 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
Source§impl Rc for Image
impl Rc for Image
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True
if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True
if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True
if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more