Skip to main content

QBitmap

Struct QBitmap 

Source
pub struct QBitmap { /* private fields */ }
Expand description

C++ class: QBitmap.

Implementations§

Source§

impl QBitmap

Source

pub unsafe fn clear(&self)

Calls C++ function: void QBitmap::clear().

Source

pub unsafe fn copy_from_q_bitmap( &self, other: impl CastInto<Ref<QBitmap>>, ) -> Ref<QBitmap>

Calls C++ function: QBitmap& QBitmap::operator=(const QBitmap& other).

Source

pub unsafe fn copy_from_q_pixmap( &self, arg1: impl CastInto<Ref<QPixmap>>, ) -> Ref<QBitmap>

Calls C++ function: QBitmap& QBitmap::operator=(const QPixmap& arg1).

Source

pub unsafe fn from_data_3a( size: impl CastInto<Ref<QSize>>, bits: *const c_uchar, mono_format: Format, ) -> CppBox<QBitmap>

Calls C++ function: static QBitmap QBitmap::fromData(const QSize& size, const unsigned char* bits, QImage::Format monoFormat = …).

Source

pub unsafe fn from_data_2a( size: impl CastInto<Ref<QSize>>, bits: *const c_uchar, ) -> CppBox<QBitmap>

Calls C++ function: static QBitmap QBitmap::fromData(const QSize& size, const unsigned char* bits).

Source

pub unsafe fn from_image_2a( image: impl CastInto<Ref<QImage>>, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QBitmap>

Calls C++ function: static QBitmap QBitmap::fromImage(const QImage& image, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn from_image_1a( image: impl CastInto<Ref<QImage>>, ) -> CppBox<QBitmap>

Calls C++ function: static QBitmap QBitmap::fromImage(const QImage& image).

Source

pub unsafe fn new() -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap().

Source

pub unsafe fn from_q_pixmap( arg1: impl CastInto<Ref<QPixmap>>, ) -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap(const QPixmap& arg1).

Source

pub unsafe fn from_2_int(w: c_int, h: c_int) -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap(int w, int h).

Source

pub unsafe fn from_q_size(arg1: impl CastInto<Ref<QSize>>) -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap(const QSize& arg1).

Source

pub unsafe fn from_q_string_char( file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap(const QString& fileName, const char* format = …).

Source

pub unsafe fn from_q_string( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap(const QString& fileName).

Source

pub unsafe fn new_copy(other: impl CastInto<Ref<QBitmap>>) -> CppBox<QBitmap>

Calls C++ function: [constructor] void QBitmap::QBitmap(const QBitmap& other).

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QBitmap>>)

Calls C++ function: void QBitmap::swap(QBitmap& other).

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QBitmap::operator QVariant() const.

Source

pub unsafe fn transformed_q_matrix( &self, arg1: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QBitmap>

Calls C++ function: QBitmap QBitmap::transformed(const QMatrix& arg1) const.

Source

pub unsafe fn transformed_q_transform( &self, matrix: impl CastInto<Ref<QTransform>>, ) -> CppBox<QBitmap>

Calls C++ function: QBitmap QBitmap::transformed(const QTransform& matrix) const.

Methods from Deref<Target = QPixmap>§

Source

pub unsafe fn cache_key(&self) -> c_longlong

Calls C++ function: long long QPixmap::cacheKey() const.

Source

pub unsafe fn convert_from_image_2a( &self, img: impl CastInto<Ref<QImage>>, flags: QFlags<ImageConversionFlag>, ) -> bool

Calls C++ function: bool QPixmap::convertFromImage(const QImage& img, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn convert_from_image_1a( &self, img: impl CastInto<Ref<QImage>>, ) -> bool

Calls C++ function: bool QPixmap::convertFromImage(const QImage& img).

Source

pub unsafe fn copy_4a( &self, x: c_int, y: c_int, width: c_int, height: c_int, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::copy(int x, int y, int width, int height) const.

Source

pub unsafe fn copy_1a(&self, rect: impl CastInto<Ref<QRect>>) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::copy(const QRect& rect = …) const.

Source

pub unsafe fn copy_0a(&self) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::copy() const.

Source

pub unsafe fn copy_from( &self, arg1: impl CastInto<Ref<QPixmap>>, ) -> Ref<QPixmap>

Calls C++ function: QPixmap& QPixmap::operator=(const QPixmap& arg1).

Source

pub unsafe fn create_heuristic_mask_1a( &self, clip_tight: bool, ) -> CppBox<QBitmap>

Calls C++ function: QBitmap QPixmap::createHeuristicMask(bool clipTight = …) const.

Source

pub unsafe fn create_heuristic_mask_0a(&self) -> CppBox<QBitmap>

Calls C++ function: QBitmap QPixmap::createHeuristicMask() const.

Source

pub unsafe fn create_mask_from_color_2a( &self, mask_color: impl CastInto<Ref<QColor>>, mode: MaskMode, ) -> CppBox<QBitmap>

Calls C++ function: QBitmap QPixmap::createMaskFromColor(const QColor& maskColor, Qt::MaskMode mode = …) const.

Source

pub unsafe fn create_mask_from_color_1a( &self, mask_color: impl CastInto<Ref<QColor>>, ) -> CppBox<QBitmap>

Calls C++ function: QBitmap QPixmap::createMaskFromColor(const QColor& maskColor) const.

Source

pub unsafe fn depth(&self) -> c_int

Calls C++ function: int QPixmap::depth() const.

Source

pub unsafe fn detach(&self)

Calls C++ function: void QPixmap::detach().

Source

pub unsafe fn dev_type(&self) -> c_int

Calls C++ function: virtual int QPixmap::devType() const.

Source

pub unsafe fn device_pixel_ratio(&self) -> c_double

Calls C++ function: double QPixmap::devicePixelRatio() const.

Source

pub unsafe fn fill_1a(&self, fill_color: impl CastInto<Ref<QColor>>)

Calls C++ function: void QPixmap::fill(const QColor& fillColor = …).

Source

pub unsafe fn fill_2a( &self, device: impl CastInto<Ptr<QPaintDevice>>, ofs: impl CastInto<Ref<QPoint>>, )

Calls C++ function: void QPixmap::fill(const QPaintDevice* device, const QPoint& ofs).

Source

pub unsafe fn fill_3a( &self, device: impl CastInto<Ptr<QPaintDevice>>, xofs: c_int, yofs: c_int, )

Calls C++ function: void QPixmap::fill(const QPaintDevice* device, int xofs, int yofs).

Source

pub unsafe fn fill_0a(&self)

Calls C++ function: void QPixmap::fill().

Source

pub unsafe fn has_alpha(&self) -> bool

Calls C++ function: bool QPixmap::hasAlpha() const.

Source

pub unsafe fn has_alpha_channel(&self) -> bool

Calls C++ function: bool QPixmap::hasAlphaChannel() const.

Source

pub unsafe fn height(&self) -> c_int

Calls C++ function: int QPixmap::height() const.

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QPixmap::isDetached() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QPixmap::isNull() const.

Source

pub unsafe fn is_q_bitmap(&self) -> bool

Calls C++ function: bool QPixmap::isQBitmap() const.

Source

pub unsafe fn load_3a( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, flags: QFlags<ImageConversionFlag>, ) -> bool

Calls C++ function: bool QPixmap::load(const QString& fileName, const char* format = …, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn load_2a( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> bool

Calls C++ function: bool QPixmap::load(const QString& fileName, const char* format = …).

Source

pub unsafe fn load_1a(&self, file_name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: bool QPixmap::load(const QString& fileName).

Source

pub unsafe fn load_from_data_uchar_uint_char_q_flags_image_conversion_flag( &self, buf: *const c_uchar, len: c_uint, format: *const c_char, flags: QFlags<ImageConversionFlag>, ) -> bool

Calls C++ function: bool QPixmap::loadFromData(const unsigned char* buf, unsigned int len, const char* format = …, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn load_from_data_q_byte_array_char_q_flags_image_conversion_flag( &self, data: impl CastInto<Ref<QByteArray>>, format: *const c_char, flags: QFlags<ImageConversionFlag>, ) -> bool

Calls C++ function: bool QPixmap::loadFromData(const QByteArray& data, const char* format = …, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn load_from_data_uchar_uint_char( &self, buf: *const c_uchar, len: c_uint, format: *const c_char, ) -> bool

Calls C++ function: bool QPixmap::loadFromData(const unsigned char* buf, unsigned int len, const char* format = …).

Source

pub unsafe fn load_from_data_uchar_uint( &self, buf: *const c_uchar, len: c_uint, ) -> bool

Calls C++ function: bool QPixmap::loadFromData(const unsigned char* buf, unsigned int len).

Source

pub unsafe fn load_from_data_q_byte_array_char( &self, data: impl CastInto<Ref<QByteArray>>, format: *const c_char, ) -> bool

Calls C++ function: bool QPixmap::loadFromData(const QByteArray& data, const char* format = …).

Source

pub unsafe fn load_from_data_q_byte_array( &self, data: impl CastInto<Ref<QByteArray>>, ) -> bool

Calls C++ function: bool QPixmap::loadFromData(const QByteArray& data).

Source

pub unsafe fn mask(&self) -> CppBox<QBitmap>

Calls C++ function: QBitmap QPixmap::mask() const.

Source

pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>

Calls C++ function: virtual QPaintEngine* QPixmap::paintEngine() const.

Source

pub unsafe fn rect(&self) -> CppBox<QRect>

Calls C++ function: QRect QPixmap::rect() const.

Source

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 QPixmap::save(const QString& fileName, const char* format = …, int quality = …) const.

Source

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 QPixmap::save(QIODevice* device, const char* format = …, int quality = …) const.

Source

pub unsafe fn save_q_string_char( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> bool

Calls C++ function: bool QPixmap::save(const QString& fileName, const char* format = …) const.

Source

pub unsafe fn save_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QPixmap::save(const QString& fileName) const.

Source

pub unsafe fn save_q_io_device_char( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, ) -> bool

Calls C++ function: bool QPixmap::save(QIODevice* device, const char* format = …) const.

Source

pub unsafe fn save_q_io_device( &self, device: impl CastInto<Ptr<QIODevice>>, ) -> bool

Calls C++ function: bool QPixmap::save(QIODevice* device) const.

Source

pub unsafe fn scaled_2_int_aspect_ratio_mode_transformation_mode( &self, w: c_int, h: c_int, aspect_mode: AspectRatioMode, mode: TransformationMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaled(int w, int h, Qt::AspectRatioMode aspectMode = …, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_q_size_aspect_ratio_mode_transformation_mode( &self, s: impl CastInto<Ref<QSize>>, aspect_mode: AspectRatioMode, mode: TransformationMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaled(const QSize& s, Qt::AspectRatioMode aspectMode = …, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_2_int_aspect_ratio_mode( &self, w: c_int, h: c_int, aspect_mode: AspectRatioMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaled(int w, int h, Qt::AspectRatioMode aspectMode = …) const.

Source

pub unsafe fn scaled_2_int(&self, w: c_int, h: c_int) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaled(int w, int h) const.

Source

pub unsafe fn scaled_q_size_aspect_ratio_mode( &self, s: impl CastInto<Ref<QSize>>, aspect_mode: AspectRatioMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaled(const QSize& s, Qt::AspectRatioMode aspectMode = …) const.

Source

pub unsafe fn scaled_q_size( &self, s: impl CastInto<Ref<QSize>>, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaled(const QSize& s) const.

Source

pub unsafe fn scaled_to_height_2a( &self, h: c_int, mode: TransformationMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaledToHeight(int h, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_to_height_1a(&self, h: c_int) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaledToHeight(int h) const.

Source

pub unsafe fn scaled_to_width_2a( &self, w: c_int, mode: TransformationMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaledToWidth(int w, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_to_width_1a(&self, w: c_int) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::scaledToWidth(int w) const.

Source

pub unsafe fn scroll_7a( &self, dx: c_int, dy: c_int, x: c_int, y: c_int, width: c_int, height: c_int, exposed: impl CastInto<Ptr<QRegion>>, )

Calls C++ function: void QPixmap::scroll(int dx, int dy, int x, int y, int width, int height, QRegion* exposed = …).

Source

pub unsafe fn scroll_4a( &self, dx: c_int, dy: c_int, rect: impl CastInto<Ref<QRect>>, exposed: impl CastInto<Ptr<QRegion>>, )

Calls C++ function: void QPixmap::scroll(int dx, int dy, const QRect& rect, QRegion* exposed = …).

Source

pub unsafe fn scroll_6a( &self, dx: c_int, dy: c_int, x: c_int, y: c_int, width: c_int, height: c_int, )

Calls C++ function: void QPixmap::scroll(int dx, int dy, int x, int y, int width, int height).

Source

pub unsafe fn scroll_3a( &self, dx: c_int, dy: c_int, rect: impl CastInto<Ref<QRect>>, )

Calls C++ function: void QPixmap::scroll(int dx, int dy, const QRect& rect).

Source

pub unsafe fn set_device_pixel_ratio(&self, scale_factor: c_double)

Calls C++ function: void QPixmap::setDevicePixelRatio(double scaleFactor).

Source

pub unsafe fn set_mask(&self, arg1: impl CastInto<Ref<QBitmap>>)

Calls C++ function: void QPixmap::setMask(const QBitmap& arg1).

Source

pub unsafe fn size(&self) -> CppBox<QSize>

Calls C++ function: QSize QPixmap::size() const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QPixmap>>)

Calls C++ function: void QPixmap::swap(QPixmap& other).

Source

pub unsafe fn to_image(&self) -> CppBox<QImage>

Calls C++ function: QImage QPixmap::toImage() const.

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QPixmap::operator QVariant() const.

Source

pub unsafe fn transformed_q_matrix_transformation_mode( &self, arg1: impl CastInto<Ref<QMatrix>>, mode: TransformationMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::transformed(const QMatrix& arg1, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn transformed_q_transform_transformation_mode( &self, arg1: impl CastInto<Ref<QTransform>>, mode: TransformationMode, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::transformed(const QTransform& arg1, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn transformed_q_matrix( &self, arg1: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::transformed(const QMatrix& arg1) const.

Source

pub unsafe fn transformed_q_transform( &self, arg1: impl CastInto<Ref<QTransform>>, ) -> CppBox<QPixmap>

Calls C++ function: QPixmap QPixmap::transformed(const QTransform& arg1) const.

Source

pub unsafe fn width(&self) -> c_int

Calls C++ function: int QPixmap::width() const.

Methods from Deref<Target = QPaintDevice>§

Source

pub unsafe fn color_count(&self) -> c_int

Calls C++ function: int QPaintDevice::colorCount() const.

Source

pub unsafe fn depth(&self) -> c_int

Calls C++ function: int QPaintDevice::depth() const.

Source

pub unsafe fn dev_type(&self) -> c_int

Calls C++ function: virtual int QPaintDevice::devType() const.

Source

pub unsafe fn device_pixel_ratio(&self) -> c_int

Calls C++ function: int QPaintDevice::devicePixelRatio() const.

Source

pub unsafe fn device_pixel_ratio_f(&self) -> c_double

Calls C++ function: double QPaintDevice::devicePixelRatioF() const.

Source

pub unsafe fn height(&self) -> c_int

Calls C++ function: int QPaintDevice::height() const.

Source

pub unsafe fn height_m_m(&self) -> c_int

Calls C++ function: int QPaintDevice::heightMM() const.

Source

pub unsafe fn logical_dpi_x(&self) -> c_int

Calls C++ function: int QPaintDevice::logicalDpiX() const.

Source

pub unsafe fn logical_dpi_y(&self) -> c_int

Calls C++ function: int QPaintDevice::logicalDpiY() const.

Source

pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>

Calls C++ function: pure virtual QPaintEngine* QPaintDevice::paintEngine() const.

Source

pub unsafe fn painting_active(&self) -> bool

Calls C++ function: bool QPaintDevice::paintingActive() const.

Source

pub unsafe fn physical_dpi_x(&self) -> c_int

Calls C++ function: int QPaintDevice::physicalDpiX() const.

Source

pub unsafe fn physical_dpi_y(&self) -> c_int

Calls C++ function: int QPaintDevice::physicalDpiY() const.

Source

pub unsafe fn width(&self) -> c_int

Calls C++ function: int QPaintDevice::width() const.

Source

pub unsafe fn width_m_m(&self) -> c_int

Calls C++ function: int QPaintDevice::widthMM() const.

Trait Implementations§

Source§

impl CppDeletable for QBitmap

Source§

unsafe fn delete(&self)

Calls C++ function: virtual [destructor] void QBitmap::~QBitmap().

Source§

impl Deref for QBitmap

Source§

fn deref(&self) -> &QPixmap

Calls C++ function: QPixmap* static_cast<QPixmap*>(QBitmap* ptr).

Source§

type Target = QPixmap

The resulting type after dereferencing.
Source§

impl DynamicCast<QBitmap> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>

Calls C++ function: QBitmap* dynamic_cast<QBitmap*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QBitmap> for QPixmap

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPixmap>) -> Ptr<QBitmap>

Calls C++ function: QBitmap* dynamic_cast<QBitmap*>(QPixmap* ptr).

Source§

impl StaticDowncast<QBitmap> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>

Calls C++ function: QBitmap* static_cast<QBitmap*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QBitmap> for QPixmap

Source§

unsafe fn static_downcast(ptr: Ptr<QPixmap>) -> Ptr<QBitmap>

Calls C++ function: QBitmap* static_cast<QBitmap*>(QPixmap* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QBitmap

Source§

unsafe fn static_upcast(ptr: Ptr<QBitmap>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QBitmap* ptr).

Source§

impl StaticUpcast<QPixmap> for QBitmap

Source§

unsafe fn static_upcast(ptr: Ptr<QBitmap>) -> Ptr<QPixmap>

Calls C++ function: QPixmap* static_cast<QPixmap*>(QBitmap* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.