pub struct QImage { /* private fields */ }Expand description
C++ class: QImage.
Implementations§
Source§impl QImage
impl QImage
Sourcepub unsafe fn alpha_channel(&self) -> CppBox<QImage>
pub unsafe fn alpha_channel(&self) -> CppBox<QImage>
Calls C++ function: QImage QImage::alphaChannel() const.
Sourcepub unsafe fn apply_color_transform(
&self,
transform: impl CastInto<Ref<QColorTransform>>,
)
pub unsafe fn apply_color_transform( &self, transform: impl CastInto<Ref<QColorTransform>>, )
Calls C++ function: void QImage::applyColorTransform(const QColorTransform& transform).
Sourcepub unsafe fn bit_plane_count(&self) -> c_int
pub unsafe fn bit_plane_count(&self) -> c_int
Calls C++ function: int QImage::bitPlaneCount() const.
Sourcepub unsafe fn bits_mut(&self) -> *mut c_uchar
pub unsafe fn bits_mut(&self) -> *mut c_uchar
Calls C++ function: unsigned char* QImage::bits().
Sourcepub unsafe fn bits(&self) -> *const c_uchar
pub unsafe fn bits(&self) -> *const c_uchar
Calls C++ function: const unsigned char* QImage::bits() const.
Sourcepub unsafe fn byte_count(&self) -> c_int
pub unsafe fn byte_count(&self) -> c_int
Calls C++ function: int QImage::byteCount() const.
Sourcepub unsafe fn bytes_per_line(&self) -> c_int
pub unsafe fn bytes_per_line(&self) -> c_int
Calls C++ function: int QImage::bytesPerLine() const.
Sourcepub unsafe fn cache_key(&self) -> c_longlong
pub unsafe fn cache_key(&self) -> c_longlong
Calls C++ function: long long QImage::cacheKey() const.
Sourcepub unsafe fn color(&self, i: c_int) -> c_uint
pub unsafe fn color(&self, i: c_int) -> c_uint
Calls C++ function: unsigned int QImage::color(int i) const.
Sourcepub unsafe fn color_count(&self) -> c_int
pub unsafe fn color_count(&self) -> c_int
Calls C++ function: int QImage::colorCount() const.
Sourcepub unsafe fn color_space(&self) -> CppBox<QColorSpace>
pub unsafe fn color_space(&self) -> CppBox<QColorSpace>
Calls C++ function: QColorSpace QImage::colorSpace() const.
Sourcepub unsafe fn color_table(&self) -> CppBox<QVectorOfUint>
pub unsafe fn color_table(&self) -> CppBox<QVectorOfUint>
Calls C++ function: QVector<unsigned int> QImage::colorTable() const.
Sourcepub unsafe fn const_bits(&self) -> *const c_uchar
pub unsafe fn const_bits(&self) -> *const c_uchar
Calls C++ function: const unsigned char* QImage::constBits() const.
Sourcepub unsafe fn const_scan_line(&self, arg1: c_int) -> *const c_uchar
pub unsafe fn const_scan_line(&self, arg1: c_int) -> *const c_uchar
Calls C++ function: const unsigned char* QImage::constScanLine(int arg1) const.
Sourcepub unsafe fn convert_to_2a(
&self,
f: Format,
flags: QFlags<ImageConversionFlag>,
)
pub unsafe fn convert_to_2a( &self, f: Format, flags: QFlags<ImageConversionFlag>, )
Calls C++ function: void QImage::convertTo(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags = …).
Sourcepub unsafe fn convert_to_1a(&self, f: Format)
pub unsafe fn convert_to_1a(&self, f: Format)
Calls C++ function: void QImage::convertTo(QImage::Format f).
Sourcepub unsafe fn convert_to_color_space(
&self,
arg1: impl CastInto<Ref<QColorSpace>>,
)
pub unsafe fn convert_to_color_space( &self, arg1: impl CastInto<Ref<QColorSpace>>, )
Calls C++ function: void QImage::convertToColorSpace(const QColorSpace& arg1).
Sourcepub unsafe fn convert_to_format_format_q_flags_image_conversion_flag(
&self,
f: Format,
flags: QFlags<ImageConversionFlag>,
) -> CppBox<QImage>
pub unsafe fn convert_to_format_format_q_flags_image_conversion_flag( &self, f: Format, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags = …) const.
Sourcepub unsafe fn convert_to_format_format_q_flags_image_conversion_flag_mut(
&self,
f: Format,
flags: QFlags<ImageConversionFlag>,
) -> CppBox<QImage>
pub unsafe fn convert_to_format_format_q_flags_image_conversion_flag_mut( &self, f: Format, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags = …).
Sourcepub unsafe fn convert_to_format_format_q_vector_of_uint_q_flags_image_conversion_flag(
&self,
f: Format,
color_table: impl CastInto<Ref<QVectorOfUint>>,
flags: QFlags<ImageConversionFlag>,
) -> CppBox<QImage>
pub unsafe fn convert_to_format_format_q_vector_of_uint_q_flags_image_conversion_flag( &self, f: Format, color_table: impl CastInto<Ref<QVectorOfUint>>, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, const QVector<unsigned int>& colorTable, QFlags<Qt::ImageConversionFlag> flags = …) const.
Sourcepub unsafe fn convert_to_format_format(&self, f: Format) -> CppBox<QImage>
pub unsafe fn convert_to_format_format(&self, f: Format) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertToFormat(QImage::Format f) const.
Sourcepub unsafe fn convert_to_format_format_mut(&self, f: Format) -> CppBox<QImage>
pub unsafe fn convert_to_format_format_mut(&self, f: Format) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertToFormat(QImage::Format f).
Sourcepub unsafe fn convert_to_format_format_q_vector_of_uint(
&self,
f: Format,
color_table: impl CastInto<Ref<QVectorOfUint>>,
) -> CppBox<QImage>
pub unsafe fn convert_to_format_format_q_vector_of_uint( &self, f: Format, color_table: impl CastInto<Ref<QVectorOfUint>>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, const QVector<unsigned int>& colorTable) const.
Sourcepub unsafe fn converted_to_color_space(
&self,
arg1: impl CastInto<Ref<QColorSpace>>,
) -> CppBox<QImage>
pub unsafe fn converted_to_color_space( &self, arg1: impl CastInto<Ref<QColorSpace>>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::convertedToColorSpace(const QColorSpace& arg1) const.
Sourcepub unsafe fn copy_1a(&self, rect: impl CastInto<Ref<QRect>>) -> CppBox<QImage>
pub unsafe fn copy_1a(&self, rect: impl CastInto<Ref<QRect>>) -> CppBox<QImage>
Calls C++ function: QImage QImage::copy(const QRect& rect = …) const.
Sourcepub unsafe fn copy_4a(
&self,
x: c_int,
y: c_int,
w: c_int,
h: c_int,
) -> CppBox<QImage>
pub unsafe fn copy_4a( &self, x: c_int, y: c_int, w: c_int, h: c_int, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::copy(int x, int y, int w, int h) const.
Sourcepub unsafe fn copy_0a(&self) -> CppBox<QImage>
pub unsafe fn copy_0a(&self) -> CppBox<QImage>
Calls C++ function: QImage QImage::copy() const.
Sourcepub unsafe fn copy_from(&self, arg1: impl CastInto<Ref<QImage>>) -> Ref<QImage>
pub unsafe fn copy_from(&self, arg1: impl CastInto<Ref<QImage>>) -> Ref<QImage>
Calls C++ function: QImage& QImage::operator=(const QImage& arg1).
Sourcepub unsafe fn create_alpha_mask_1a(
&self,
flags: QFlags<ImageConversionFlag>,
) -> CppBox<QImage>
pub unsafe fn create_alpha_mask_1a( &self, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::createAlphaMask(QFlags<Qt::ImageConversionFlag> flags = …) const.
Sourcepub unsafe fn create_alpha_mask_0a(&self) -> CppBox<QImage>
pub unsafe fn create_alpha_mask_0a(&self) -> CppBox<QImage>
Calls C++ function: QImage QImage::createAlphaMask() const.
Sourcepub unsafe fn create_heuristic_mask_1a(
&self,
clip_tight: bool,
) -> CppBox<QImage>
pub unsafe fn create_heuristic_mask_1a( &self, clip_tight: bool, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::createHeuristicMask(bool clipTight = …) const.
Sourcepub unsafe fn create_heuristic_mask_0a(&self) -> CppBox<QImage>
pub unsafe fn create_heuristic_mask_0a(&self) -> CppBox<QImage>
Calls C++ function: QImage QImage::createHeuristicMask() const.
Sourcepub unsafe fn create_mask_from_color_2a(
&self,
color: c_uint,
mode: MaskMode,
) -> CppBox<QImage>
pub unsafe fn create_mask_from_color_2a( &self, color: c_uint, mode: MaskMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::createMaskFromColor(unsigned int color, Qt::MaskMode mode = …) const.
Sourcepub unsafe fn create_mask_from_color_1a(&self, color: c_uint) -> CppBox<QImage>
pub unsafe fn create_mask_from_color_1a(&self, color: c_uint) -> CppBox<QImage>
Calls C++ function: QImage QImage::createMaskFromColor(unsigned int color) const.
Sourcepub unsafe fn dev_type(&self) -> c_int
pub unsafe fn dev_type(&self) -> c_int
Calls C++ function: virtual int QImage::devType() const.
Sourcepub unsafe fn device_pixel_ratio(&self) -> c_double
pub unsafe fn device_pixel_ratio(&self) -> c_double
Calls C++ function: double QImage::devicePixelRatio() const.
Sourcepub unsafe fn dots_per_meter_x(&self) -> c_int
pub unsafe fn dots_per_meter_x(&self) -> c_int
Calls C++ function: int QImage::dotsPerMeterX() const.
Sourcepub unsafe fn dots_per_meter_y(&self) -> c_int
pub unsafe fn dots_per_meter_y(&self) -> c_int
Calls C++ function: int QImage::dotsPerMeterY() const.
Sourcepub unsafe fn fill_uint(&self, pixel: c_uint)
pub unsafe fn fill_uint(&self, pixel: c_uint)
Calls C++ function: void QImage::fill(unsigned int pixel).
Sourcepub unsafe fn fill_q_color(&self, color: impl CastInto<Ref<QColor>>)
pub unsafe fn fill_q_color(&self, color: impl CastInto<Ref<QColor>>)
Calls C++ function: void QImage::fill(const QColor& color).
Sourcepub unsafe fn fill_global_color(&self, color: GlobalColor)
pub unsafe fn fill_global_color(&self, color: GlobalColor)
Calls C++ function: void QImage::fill(Qt::GlobalColor color).
Sourcepub unsafe fn format(&self) -> Format
pub unsafe fn format(&self) -> Format
Calls C++ function: QImage::Format QImage::format() const.
Sourcepub unsafe fn from_data_uchar_int_char(
data: *const c_uchar,
size: c_int,
format: *const c_char,
) -> CppBox<QImage>
pub unsafe fn from_data_uchar_int_char( data: *const c_uchar, size: c_int, format: *const c_char, ) -> CppBox<QImage>
Calls C++ function: static QImage QImage::fromData(const unsigned char* data, int size, const char* format = …).
Sourcepub unsafe fn from_data_q_byte_array_char(
data: impl CastInto<Ref<QByteArray>>,
format: *const c_char,
) -> CppBox<QImage>
pub unsafe fn from_data_q_byte_array_char( data: impl CastInto<Ref<QByteArray>>, format: *const c_char, ) -> CppBox<QImage>
Calls C++ function: static QImage QImage::fromData(const QByteArray& data, const char* format = …).
Sourcepub unsafe fn from_data_uchar_int(
data: *const c_uchar,
size: c_int,
) -> CppBox<QImage>
pub unsafe fn from_data_uchar_int( data: *const c_uchar, size: c_int, ) -> CppBox<QImage>
Calls C++ function: static QImage QImage::fromData(const unsigned char* data, int size).
Sourcepub unsafe fn from_data_q_byte_array(
data: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QImage>
pub unsafe fn from_data_q_byte_array( data: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QImage>
Calls C++ function: static QImage QImage::fromData(const QByteArray& data).
Sourcepub unsafe fn has_alpha_channel(&self) -> bool
pub unsafe fn has_alpha_channel(&self) -> bool
Calls C++ function: bool QImage::hasAlphaChannel() const.
Sourcepub unsafe fn invert_pixels_1a(&self, arg1: InvertMode)
pub unsafe fn invert_pixels_1a(&self, arg1: InvertMode)
Calls C++ function: void QImage::invertPixels(QImage::InvertMode arg1 = …).
Sourcepub unsafe fn invert_pixels_0a(&self)
pub unsafe fn invert_pixels_0a(&self)
Calls C++ function: void QImage::invertPixels().
Sourcepub unsafe fn is_detached(&self) -> bool
pub unsafe fn is_detached(&self) -> bool
Calls C++ function: bool QImage::isDetached() const.
Sourcepub unsafe fn is_grayscale(&self) -> bool
pub unsafe fn is_grayscale(&self) -> bool
Calls C++ function: bool QImage::isGrayscale() const.
Sourcepub unsafe fn load_q_io_device_char(
&self,
device: impl CastInto<Ptr<QIODevice>>,
format: *const c_char,
) -> bool
pub unsafe fn load_q_io_device_char( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, ) -> bool
Calls C++ function: bool QImage::load(QIODevice* device, const char* format).
Sourcepub unsafe fn load_q_string_char(
&self,
file_name: impl CastInto<Ref<QString>>,
format: *const c_char,
) -> bool
pub unsafe fn load_q_string_char( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> bool
Calls C++ function: bool QImage::load(const QString& fileName, const char* format = …).
Sourcepub unsafe fn load_q_string(
&self,
file_name: impl CastInto<Ref<QString>>,
) -> bool
pub unsafe fn load_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool
Calls C++ function: bool QImage::load(const QString& fileName).
Sourcepub unsafe fn load_from_data_uchar_int_char(
&self,
buf: *const c_uchar,
len: c_int,
format: *const c_char,
) -> bool
pub unsafe fn load_from_data_uchar_int_char( &self, buf: *const c_uchar, len: c_int, format: *const c_char, ) -> bool
Calls C++ function: bool QImage::loadFromData(const unsigned char* buf, int len, const char* format = …).
Sourcepub unsafe fn load_from_data_q_byte_array_char(
&self,
data: impl CastInto<Ref<QByteArray>>,
aformat: *const c_char,
) -> bool
pub unsafe fn load_from_data_q_byte_array_char( &self, data: impl CastInto<Ref<QByteArray>>, aformat: *const c_char, ) -> bool
Calls C++ function: bool QImage::loadFromData(const QByteArray& data, const char* aformat = …).
Sourcepub unsafe fn load_from_data_uchar_int(
&self,
buf: *const c_uchar,
len: c_int,
) -> bool
pub unsafe fn load_from_data_uchar_int( &self, buf: *const c_uchar, len: c_int, ) -> bool
Calls C++ function: bool QImage::loadFromData(const unsigned char* buf, int len).
Sourcepub unsafe fn load_from_data_q_byte_array(
&self,
data: impl CastInto<Ref<QByteArray>>,
) -> bool
pub unsafe fn load_from_data_q_byte_array( &self, data: impl CastInto<Ref<QByteArray>>, ) -> bool
Calls C++ function: bool QImage::loadFromData(const QByteArray& data).
Sourcepub unsafe fn mirrored_2a(
&self,
horizontally: bool,
vertically: bool,
) -> CppBox<QImage>
pub unsafe fn mirrored_2a( &self, horizontally: bool, vertically: bool, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::mirrored(bool horizontally = …, bool vertically = …) const.
Sourcepub unsafe fn mirrored_1a(&self, horizontally: bool) -> CppBox<QImage>
pub unsafe fn mirrored_1a(&self, horizontally: bool) -> CppBox<QImage>
Calls C++ function: QImage QImage::mirrored(bool horizontally = …) const.
Sourcepub unsafe fn mirrored_0a(&self) -> CppBox<QImage>
pub unsafe fn mirrored_0a(&self) -> CppBox<QImage>
Calls C++ function: QImage QImage::mirrored() const.
Sourcepub unsafe fn from_q_size_format(
size: impl CastInto<Ref<QSize>>,
format: Format,
) -> CppBox<QImage>
pub unsafe fn from_q_size_format( size: impl CastInto<Ref<QSize>>, format: Format, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const QSize& size, QImage::Format format).
Sourcepub unsafe fn from_2_int_format(
width: c_int,
height: c_int,
format: Format,
) -> CppBox<QImage>
pub unsafe fn from_2_int_format( width: c_int, height: c_int, format: Format, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(int width, int height, QImage::Format format).
Sourcepub unsafe fn from_uchar2_int_format_option_fn_void(
data: *mut c_uchar,
width: c_int,
height: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
cleanup_info: *mut c_void,
) -> CppBox<QImage>
pub unsafe fn from_uchar2_int_format_option_fn_void( data: *mut c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).
Sourcepub unsafe fn from_uchar2_int_format_option_fn_void2(
data: *const c_uchar,
width: c_int,
height: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
cleanup_info: *mut c_void,
) -> CppBox<QImage>
pub unsafe fn from_uchar2_int_format_option_fn_void2( data: *const c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).
Sourcepub unsafe fn from_uchar3_int_format_option_fn_void(
data: *mut c_uchar,
width: c_int,
height: c_int,
bytes_per_line: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
cleanup_info: *mut c_void,
) -> CppBox<QImage>
pub unsafe fn from_uchar3_int_format_option_fn_void( data: *mut c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).
Sourcepub unsafe fn from_uchar3_int_format_option_fn_void2(
data: *const c_uchar,
width: c_int,
height: c_int,
bytes_per_line: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
cleanup_info: *mut c_void,
) -> CppBox<QImage>
pub unsafe fn from_uchar3_int_format_option_fn_void2( data: *const c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).
Sourcepub unsafe fn from_q_string_char(
file_name: impl CastInto<Ref<QString>>,
format: *const c_char,
) -> CppBox<QImage>
pub unsafe fn from_q_string_char( file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const QString& fileName, const char* format = …).
Sourcepub unsafe fn from_uchar2_int_format_option_fn(
data: *mut c_uchar,
width: c_int,
height: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
) -> CppBox<QImage>
pub unsafe fn from_uchar2_int_format_option_fn( data: *mut c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).
Sourcepub unsafe fn from_uchar2_int_format(
data: *mut c_uchar,
width: c_int,
height: c_int,
format: Format,
) -> CppBox<QImage>
pub unsafe fn from_uchar2_int_format( data: *mut c_uchar, width: c_int, height: c_int, format: Format, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, QImage::Format format).
Sourcepub unsafe fn from_uchar2_int_format_option_fn2(
data: *const c_uchar,
width: c_int,
height: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
) -> CppBox<QImage>
pub unsafe fn from_uchar2_int_format_option_fn2( data: *const c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).
Sourcepub unsafe fn from_uchar2_int_format2(
data: *const c_uchar,
width: c_int,
height: c_int,
format: Format,
) -> CppBox<QImage>
pub unsafe fn from_uchar2_int_format2( data: *const c_uchar, width: c_int, height: c_int, format: Format, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, QImage::Format format).
Sourcepub unsafe fn from_uchar3_int_format_option_fn(
data: *mut c_uchar,
width: c_int,
height: c_int,
bytes_per_line: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
) -> CppBox<QImage>
pub unsafe fn from_uchar3_int_format_option_fn( data: *mut c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).
Sourcepub unsafe fn from_uchar3_int_format(
data: *mut c_uchar,
width: c_int,
height: c_int,
bytes_per_line: c_int,
format: Format,
) -> CppBox<QImage>
pub unsafe fn from_uchar3_int_format( data: *mut c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format).
Sourcepub unsafe fn from_uchar3_int_format_option_fn2(
data: *const c_uchar,
width: c_int,
height: c_int,
bytes_per_line: c_int,
format: Format,
cleanup_function: Option<extern "C" fn(*mut c_void)>,
) -> CppBox<QImage>
pub unsafe fn from_uchar3_int_format_option_fn2( data: *const c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).
Sourcepub unsafe fn from_uchar3_int_format2(
data: *const c_uchar,
width: c_int,
height: c_int,
bytes_per_line: c_int,
format: Format,
) -> CppBox<QImage>
pub unsafe fn from_uchar3_int_format2( data: *const c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format).
Sourcepub unsafe fn from_q_string(
file_name: impl CastInto<Ref<QString>>,
) -> CppBox<QImage>
pub unsafe fn from_q_string( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const QString& fileName).
Sourcepub unsafe fn new_copy(arg1: impl CastInto<Ref<QImage>>) -> CppBox<QImage>
pub unsafe fn new_copy(arg1: impl CastInto<Ref<QImage>>) -> CppBox<QImage>
Calls C++ function: [constructor] void QImage::QImage(const QImage& arg1).
Sourcepub unsafe fn offset(&self) -> CppBox<QPoint>
pub unsafe fn offset(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QImage::offset() const.
Sourcepub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
Calls C++ function: virtual QPaintEngine* QImage::paintEngine() const.
Sourcepub unsafe fn pixel_2a(&self, x: c_int, y: c_int) -> c_uint
pub unsafe fn pixel_2a(&self, x: c_int, y: c_int) -> c_uint
Calls C++ function: unsigned int QImage::pixel(int x, int y) const.
Sourcepub unsafe fn pixel_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> c_uint
pub unsafe fn pixel_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> c_uint
Calls C++ function: unsigned int QImage::pixel(const QPoint& pt) const.
Sourcepub unsafe fn pixel_color_2a(&self, x: c_int, y: c_int) -> CppBox<QColor>
pub unsafe fn pixel_color_2a(&self, x: c_int, y: c_int) -> CppBox<QColor>
Calls C++ function: QColor QImage::pixelColor(int x, int y) const.
Sourcepub unsafe fn pixel_color_1a(
&self,
pt: impl CastInto<Ref<QPoint>>,
) -> CppBox<QColor>
pub unsafe fn pixel_color_1a( &self, pt: impl CastInto<Ref<QPoint>>, ) -> CppBox<QColor>
Calls C++ function: QColor QImage::pixelColor(const QPoint& pt) const.
Sourcepub unsafe fn pixel_format(&self) -> CppBox<QPixelFormat>
pub unsafe fn pixel_format(&self) -> CppBox<QPixelFormat>
Calls C++ function: QPixelFormat QImage::pixelFormat() const.
Sourcepub unsafe fn pixel_index_2a(&self, x: c_int, y: c_int) -> c_int
pub unsafe fn pixel_index_2a(&self, x: c_int, y: c_int) -> c_int
Calls C++ function: int QImage::pixelIndex(int x, int y) const.
Sourcepub unsafe fn pixel_index_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> c_int
pub unsafe fn pixel_index_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> c_int
Calls C++ function: int QImage::pixelIndex(const QPoint& pt) const.
Sourcepub unsafe fn reinterpret_as_format(&self, f: Format) -> bool
pub unsafe fn reinterpret_as_format(&self, f: Format) -> bool
Calls C++ function: bool QImage::reinterpretAsFormat(QImage::Format f).
Sourcepub unsafe fn rgb_swapped(&self) -> CppBox<QImage>
pub unsafe fn rgb_swapped(&self) -> CppBox<QImage>
Calls C++ function: QImage QImage::rgbSwapped() const.
Sourcepub unsafe fn save_q_string_char_int(
&self,
file_name: impl CastInto<Ref<QString>>,
format: *const c_char,
quality: c_int,
) -> bool
pub unsafe fn save_q_string_char_int( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, quality: c_int, ) -> bool
Calls C++ function: bool QImage::save(const QString& fileName, const char* format = …, int quality = …) const.
Sourcepub unsafe fn save_q_io_device_char_int(
&self,
device: impl CastInto<Ptr<QIODevice>>,
format: *const c_char,
quality: c_int,
) -> bool
pub unsafe fn save_q_io_device_char_int( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, quality: c_int, ) -> bool
Calls C++ function: bool QImage::save(QIODevice* device, const char* format = …, int quality = …) const.
Sourcepub unsafe fn save_q_string_char(
&self,
file_name: impl CastInto<Ref<QString>>,
format: *const c_char,
) -> bool
pub unsafe fn save_q_string_char( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> bool
Calls C++ function: bool QImage::save(const QString& fileName, const char* format = …) const.
Sourcepub unsafe fn save_q_string(
&self,
file_name: impl CastInto<Ref<QString>>,
) -> bool
pub unsafe fn save_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool
Calls C++ function: bool QImage::save(const QString& fileName) const.
Sourcepub unsafe fn save_q_io_device_char(
&self,
device: impl CastInto<Ptr<QIODevice>>,
format: *const c_char,
) -> bool
pub unsafe fn save_q_io_device_char( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, ) -> bool
Calls C++ function: bool QImage::save(QIODevice* device, const char* format = …) const.
Sourcepub unsafe fn save_q_io_device(
&self,
device: impl CastInto<Ptr<QIODevice>>,
) -> bool
pub unsafe fn save_q_io_device( &self, device: impl CastInto<Ptr<QIODevice>>, ) -> bool
Calls C++ function: bool QImage::save(QIODevice* device) const.
Sourcepub unsafe fn scaled_2_int_aspect_ratio_mode_transformation_mode(
&self,
w: c_int,
h: c_int,
aspect_mode: AspectRatioMode,
mode: TransformationMode,
) -> CppBox<QImage>
pub unsafe fn scaled_2_int_aspect_ratio_mode_transformation_mode( &self, w: c_int, h: c_int, aspect_mode: AspectRatioMode, mode: TransformationMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaled(int w, int h, Qt::AspectRatioMode aspectMode = …, Qt::TransformationMode mode = …) const.
Sourcepub unsafe fn scaled_q_size_aspect_ratio_mode_transformation_mode(
&self,
s: impl CastInto<Ref<QSize>>,
aspect_mode: AspectRatioMode,
mode: TransformationMode,
) -> CppBox<QImage>
pub unsafe fn scaled_q_size_aspect_ratio_mode_transformation_mode( &self, s: impl CastInto<Ref<QSize>>, aspect_mode: AspectRatioMode, mode: TransformationMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaled(const QSize& s, Qt::AspectRatioMode aspectMode = …, Qt::TransformationMode mode = …) const.
Sourcepub unsafe fn scaled_2_int_aspect_ratio_mode(
&self,
w: c_int,
h: c_int,
aspect_mode: AspectRatioMode,
) -> CppBox<QImage>
pub unsafe fn scaled_2_int_aspect_ratio_mode( &self, w: c_int, h: c_int, aspect_mode: AspectRatioMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaled(int w, int h, Qt::AspectRatioMode aspectMode = …) const.
Sourcepub unsafe fn scaled_2_int(&self, w: c_int, h: c_int) -> CppBox<QImage>
pub unsafe fn scaled_2_int(&self, w: c_int, h: c_int) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaled(int w, int h) const.
Sourcepub unsafe fn scaled_q_size_aspect_ratio_mode(
&self,
s: impl CastInto<Ref<QSize>>,
aspect_mode: AspectRatioMode,
) -> CppBox<QImage>
pub unsafe fn scaled_q_size_aspect_ratio_mode( &self, s: impl CastInto<Ref<QSize>>, aspect_mode: AspectRatioMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaled(const QSize& s, Qt::AspectRatioMode aspectMode = …) const.
Sourcepub unsafe fn scaled_q_size(
&self,
s: impl CastInto<Ref<QSize>>,
) -> CppBox<QImage>
pub unsafe fn scaled_q_size( &self, s: impl CastInto<Ref<QSize>>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaled(const QSize& s) const.
Sourcepub unsafe fn scaled_to_height_2a(
&self,
h: c_int,
mode: TransformationMode,
) -> CppBox<QImage>
pub unsafe fn scaled_to_height_2a( &self, h: c_int, mode: TransformationMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaledToHeight(int h, Qt::TransformationMode mode = …) const.
Sourcepub unsafe fn scaled_to_height_1a(&self, h: c_int) -> CppBox<QImage>
pub unsafe fn scaled_to_height_1a(&self, h: c_int) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaledToHeight(int h) const.
Sourcepub unsafe fn scaled_to_width_2a(
&self,
w: c_int,
mode: TransformationMode,
) -> CppBox<QImage>
pub unsafe fn scaled_to_width_2a( &self, w: c_int, mode: TransformationMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaledToWidth(int w, Qt::TransformationMode mode = …) const.
Sourcepub unsafe fn scaled_to_width_1a(&self, w: c_int) -> CppBox<QImage>
pub unsafe fn scaled_to_width_1a(&self, w: c_int) -> CppBox<QImage>
Calls C++ function: QImage QImage::scaledToWidth(int w) const.
Sourcepub unsafe fn scan_line_mut(&self, arg1: c_int) -> *mut c_uchar
pub unsafe fn scan_line_mut(&self, arg1: c_int) -> *mut c_uchar
Calls C++ function: unsigned char* QImage::scanLine(int arg1).
Sourcepub unsafe fn scan_line(&self, arg1: c_int) -> *const c_uchar
pub unsafe fn scan_line(&self, arg1: c_int) -> *const c_uchar
Calls C++ function: const unsigned char* QImage::scanLine(int arg1) const.
Sourcepub unsafe fn set_alpha_channel(
&self,
alpha_channel: impl CastInto<Ref<QImage>>,
)
pub unsafe fn set_alpha_channel( &self, alpha_channel: impl CastInto<Ref<QImage>>, )
Calls C++ function: void QImage::setAlphaChannel(const QImage& alphaChannel).
Sourcepub unsafe fn set_color(&self, i: c_int, c: c_uint)
pub unsafe fn set_color(&self, i: c_int, c: c_uint)
Calls C++ function: void QImage::setColor(int i, unsigned int c).
Sourcepub unsafe fn set_color_count(&self, arg1: c_int)
pub unsafe fn set_color_count(&self, arg1: c_int)
Calls C++ function: void QImage::setColorCount(int arg1).
Sourcepub unsafe fn set_color_space(&self, arg1: impl CastInto<Ref<QColorSpace>>)
pub unsafe fn set_color_space(&self, arg1: impl CastInto<Ref<QColorSpace>>)
Calls C++ function: void QImage::setColorSpace(const QColorSpace& arg1).
Sourcepub unsafe fn set_color_table(&self, colors: impl CastInto<Ref<QVectorOfUint>>)
pub unsafe fn set_color_table(&self, colors: impl CastInto<Ref<QVectorOfUint>>)
Calls C++ function: void QImage::setColorTable(QVector<unsigned int> colors).
Sourcepub unsafe fn set_device_pixel_ratio(&self, scale_factor: c_double)
pub unsafe fn set_device_pixel_ratio(&self, scale_factor: c_double)
Calls C++ function: void QImage::setDevicePixelRatio(double scaleFactor).
Sourcepub unsafe fn set_dots_per_meter_x(&self, arg1: c_int)
pub unsafe fn set_dots_per_meter_x(&self, arg1: c_int)
Calls C++ function: void QImage::setDotsPerMeterX(int arg1).
Sourcepub unsafe fn set_dots_per_meter_y(&self, arg1: c_int)
pub unsafe fn set_dots_per_meter_y(&self, arg1: c_int)
Calls C++ function: void QImage::setDotsPerMeterY(int arg1).
Sourcepub unsafe fn set_offset(&self, arg1: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_offset(&self, arg1: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QImage::setOffset(const QPoint& arg1).
Sourcepub unsafe fn set_pixel_3a(&self, x: c_int, y: c_int, index_or_rgb: c_uint)
pub unsafe fn set_pixel_3a(&self, x: c_int, y: c_int, index_or_rgb: c_uint)
Calls C++ function: void QImage::setPixel(int x, int y, unsigned int index_or_rgb).
Sourcepub unsafe fn set_pixel_2a(
&self,
pt: impl CastInto<Ref<QPoint>>,
index_or_rgb: c_uint,
)
pub unsafe fn set_pixel_2a( &self, pt: impl CastInto<Ref<QPoint>>, index_or_rgb: c_uint, )
Calls C++ function: void QImage::setPixel(const QPoint& pt, unsigned int index_or_rgb).
Sourcepub unsafe fn set_pixel_color_3a(
&self,
x: c_int,
y: c_int,
c: impl CastInto<Ref<QColor>>,
)
pub unsafe fn set_pixel_color_3a( &self, x: c_int, y: c_int, c: impl CastInto<Ref<QColor>>, )
Calls C++ function: void QImage::setPixelColor(int x, int y, const QColor& c).
Sourcepub unsafe fn set_pixel_color_2a(
&self,
pt: impl CastInto<Ref<QPoint>>,
c: impl CastInto<Ref<QColor>>,
)
pub unsafe fn set_pixel_color_2a( &self, pt: impl CastInto<Ref<QPoint>>, c: impl CastInto<Ref<QColor>>, )
Calls C++ function: void QImage::setPixelColor(const QPoint& pt, const QColor& c).
Sourcepub unsafe fn set_text(
&self,
key: impl CastInto<Ref<QString>>,
value: impl CastInto<Ref<QString>>,
)
pub unsafe fn set_text( &self, key: impl CastInto<Ref<QString>>, value: impl CastInto<Ref<QString>>, )
Calls C++ function: void QImage::setText(const QString& key, const QString& value).
Sourcepub unsafe fn size_in_bytes(&self) -> c_longlong
pub unsafe fn size_in_bytes(&self) -> c_longlong
Calls C++ function: long long QImage::sizeInBytes() const.
Sourcepub unsafe fn static_meta_object() -> Ref<QMetaObject>
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
Returns a reference to the staticMetaObject field.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QImage>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QImage>>)
Calls C++ function: void QImage::swap(QImage& other).
Sourcepub unsafe fn text_1a(
&self,
key: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
pub unsafe fn text_1a( &self, key: impl CastInto<Ref<QString>>, ) -> CppBox<QString>
Calls C++ function: QString QImage::text(const QString& key = …) const.
Sourcepub unsafe fn text_0a(&self) -> CppBox<QString>
pub unsafe fn text_0a(&self) -> CppBox<QString>
Calls C++ function: QString QImage::text() const.
Sourcepub unsafe fn text_keys(&self) -> CppBox<QStringList>
pub unsafe fn text_keys(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QImage::textKeys() const.
Sourcepub unsafe fn to_image_format(
format: impl CastInto<Ref<QPixelFormat>>,
) -> Format
pub unsafe fn to_image_format( format: impl CastInto<Ref<QPixelFormat>>, ) -> Format
Calls C++ function: static QImage::Format QImage::toImageFormat(QPixelFormat format).
Sourcepub unsafe fn to_pixel_format(format: Format) -> CppBox<QPixelFormat>
pub unsafe fn to_pixel_format(format: Format) -> CppBox<QPixelFormat>
Calls C++ function: static QPixelFormat QImage::toPixelFormat(QImage::Format format).
Sourcepub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QImage::operator QVariant() const.
Sourcepub unsafe fn transformed_q_matrix_transformation_mode(
&self,
matrix: impl CastInto<Ref<QMatrix>>,
mode: TransformationMode,
) -> CppBox<QImage>
pub unsafe fn transformed_q_matrix_transformation_mode( &self, matrix: impl CastInto<Ref<QMatrix>>, mode: TransformationMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::transformed(const QMatrix& matrix, Qt::TransformationMode mode = …) const.
Sourcepub unsafe fn transformed_q_transform_transformation_mode(
&self,
matrix: impl CastInto<Ref<QTransform>>,
mode: TransformationMode,
) -> CppBox<QImage>
pub unsafe fn transformed_q_transform_transformation_mode( &self, matrix: impl CastInto<Ref<QTransform>>, mode: TransformationMode, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::transformed(const QTransform& matrix, Qt::TransformationMode mode = …) const.
Sourcepub unsafe fn transformed_q_matrix(
&self,
matrix: impl CastInto<Ref<QMatrix>>,
) -> CppBox<QImage>
pub unsafe fn transformed_q_matrix( &self, matrix: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::transformed(const QMatrix& matrix) const.
Sourcepub unsafe fn transformed_q_transform(
&self,
matrix: impl CastInto<Ref<QTransform>>,
) -> CppBox<QImage>
pub unsafe fn transformed_q_transform( &self, matrix: impl CastInto<Ref<QTransform>>, ) -> CppBox<QImage>
Calls C++ function: QImage QImage::transformed(const QTransform& matrix) const.
Sourcepub unsafe fn true_matrix_q_matrix2_int(
arg1: impl CastInto<Ref<QMatrix>>,
w: c_int,
h: c_int,
) -> CppBox<QMatrix>
pub unsafe fn true_matrix_q_matrix2_int( arg1: impl CastInto<Ref<QMatrix>>, w: c_int, h: c_int, ) -> CppBox<QMatrix>
Calls C++ function: static QMatrix QImage::trueMatrix(const QMatrix& arg1, int w, int h).
Sourcepub unsafe fn true_matrix_q_transform2_int(
arg1: impl CastInto<Ref<QTransform>>,
w: c_int,
h: c_int,
) -> CppBox<QTransform>
pub unsafe fn true_matrix_q_transform2_int( arg1: impl CastInto<Ref<QTransform>>, w: c_int, h: c_int, ) -> CppBox<QTransform>
Calls C++ function: static QTransform QImage::trueMatrix(const QTransform& arg1, int w, int h).
Sourcepub unsafe fn valid_2a(&self, x: c_int, y: c_int) -> bool
pub unsafe fn valid_2a(&self, x: c_int, y: c_int) -> bool
Calls C++ function: bool QImage::valid(int x, int y) const.
Methods from Deref<Target = QPaintDevice>§
Sourcepub unsafe fn color_count(&self) -> c_int
pub unsafe fn color_count(&self) -> c_int
Calls C++ function: int QPaintDevice::colorCount() const.
Sourcepub unsafe fn dev_type(&self) -> c_int
pub unsafe fn dev_type(&self) -> c_int
Calls C++ function: virtual int QPaintDevice::devType() const.
Sourcepub unsafe fn device_pixel_ratio(&self) -> c_int
pub unsafe fn device_pixel_ratio(&self) -> c_int
Calls C++ function: int QPaintDevice::devicePixelRatio() const.
Sourcepub unsafe fn device_pixel_ratio_f(&self) -> c_double
pub unsafe fn device_pixel_ratio_f(&self) -> c_double
Calls C++ function: double QPaintDevice::devicePixelRatioF() const.
Sourcepub unsafe fn height_m_m(&self) -> c_int
pub unsafe fn height_m_m(&self) -> c_int
Calls C++ function: int QPaintDevice::heightMM() const.
Sourcepub unsafe fn logical_dpi_x(&self) -> c_int
pub unsafe fn logical_dpi_x(&self) -> c_int
Calls C++ function: int QPaintDevice::logicalDpiX() const.
Sourcepub unsafe fn logical_dpi_y(&self) -> c_int
pub unsafe fn logical_dpi_y(&self) -> c_int
Calls C++ function: int QPaintDevice::logicalDpiY() const.
Sourcepub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
Calls C++ function: pure virtual QPaintEngine* QPaintDevice::paintEngine() const.
Sourcepub unsafe fn painting_active(&self) -> bool
pub unsafe fn painting_active(&self) -> bool
Calls C++ function: bool QPaintDevice::paintingActive() const.
Sourcepub unsafe fn physical_dpi_x(&self) -> c_int
pub unsafe fn physical_dpi_x(&self) -> c_int
Calls C++ function: int QPaintDevice::physicalDpiX() const.
Sourcepub unsafe fn physical_dpi_y(&self) -> c_int
pub unsafe fn physical_dpi_y(&self) -> c_int
Calls C++ function: int QPaintDevice::physicalDpiY() const.
Trait Implementations§
Source§impl CppDeletable for QImage
impl CppDeletable for QImage
Source§impl Deref for QImage
impl Deref for QImage
Source§fn deref(&self) -> &QPaintDevice
fn deref(&self) -> &QPaintDevice
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QImage* ptr).
Source§type Target = QPaintDevice
type Target = QPaintDevice
Source§impl DynamicCast<QImage> for QPaintDevice
impl DynamicCast<QImage> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
Calls C++ function: QImage* dynamic_cast<QImage*>(QPaintDevice* ptr).
Source§impl PartialEq<Ref<QImage>> for QImage
impl PartialEq<Ref<QImage>> for QImage
Source§impl StaticDowncast<QImage> for QPaintDevice
impl StaticDowncast<QImage> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
Calls C++ function: QImage* static_cast<QImage*>(QPaintDevice* ptr).
Source§impl StaticUpcast<QPaintDevice> for QImage
impl StaticUpcast<QPaintDevice> for QImage
Source§unsafe fn static_upcast(ptr: Ptr<QImage>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QImage>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QImage* ptr).