pub struct QImageReader { /* private fields */ }Expand description
C++ class: QImageReader.
Implementations§
Source§impl QImageReader
impl QImageReader
Sourcepub unsafe fn auto_detect_image_format(&self) -> bool
pub unsafe fn auto_detect_image_format(&self) -> bool
Calls C++ function: bool QImageReader::autoDetectImageFormat() const.
Sourcepub unsafe fn auto_transform(&self) -> bool
pub unsafe fn auto_transform(&self) -> bool
Calls C++ function: bool QImageReader::autoTransform() const.
Sourcepub unsafe fn background_color(&self) -> CppBox<QColor>
pub unsafe fn background_color(&self) -> CppBox<QColor>
Calls C++ function: QColor QImageReader::backgroundColor() const.
Sourcepub unsafe fn clip_rect(&self) -> CppBox<QRect>
pub unsafe fn clip_rect(&self) -> CppBox<QRect>
Calls C++ function: QRect QImageReader::clipRect() const.
Sourcepub unsafe fn current_image_number(&self) -> c_int
pub unsafe fn current_image_number(&self) -> c_int
Calls C++ function: int QImageReader::currentImageNumber() const.
Sourcepub unsafe fn current_image_rect(&self) -> CppBox<QRect>
pub unsafe fn current_image_rect(&self) -> CppBox<QRect>
Calls C++ function: QRect QImageReader::currentImageRect() const.
Sourcepub unsafe fn decide_format_from_content(&self) -> bool
pub unsafe fn decide_format_from_content(&self) -> bool
Calls C++ function: bool QImageReader::decideFormatFromContent() const.
Sourcepub unsafe fn device(&self) -> QPtr<QIODevice>
pub unsafe fn device(&self) -> QPtr<QIODevice>
Calls C++ function: QIODevice* QImageReader::device() const.
Sourcepub unsafe fn error(&self) -> ImageReaderError
pub unsafe fn error(&self) -> ImageReaderError
Calls C++ function: QImageReader::ImageReaderError QImageReader::error() const.
Sourcepub unsafe fn error_string(&self) -> CppBox<QString>
pub unsafe fn error_string(&self) -> CppBox<QString>
Calls C++ function: QString QImageReader::errorString() const.
Sourcepub unsafe fn file_name(&self) -> CppBox<QString>
pub unsafe fn file_name(&self) -> CppBox<QString>
Calls C++ function: QString QImageReader::fileName() const.
Sourcepub unsafe fn format(&self) -> CppBox<QByteArray>
pub unsafe fn format(&self) -> CppBox<QByteArray>
Calls C++ function: QByteArray QImageReader::format() const.
Sourcepub unsafe fn image_count(&self) -> c_int
pub unsafe fn image_count(&self) -> c_int
Calls C++ function: int QImageReader::imageCount() const.
Sourcepub unsafe fn image_format(&self) -> Format
pub unsafe fn image_format(&self) -> Format
Calls C++ function: QImage::Format QImageReader::imageFormat() const.
Sourcepub unsafe fn image_format_q_string(
file_name: impl CastInto<Ref<QString>>,
) -> CppBox<QByteArray>
pub unsafe fn image_format_q_string( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QByteArray>
Calls C++ function: static QByteArray QImageReader::imageFormat(const QString& fileName).
Sourcepub unsafe fn image_format_q_io_device(
device: impl CastInto<Ptr<QIODevice>>,
) -> CppBox<QByteArray>
pub unsafe fn image_format_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QByteArray>
Calls C++ function: static QByteArray QImageReader::imageFormat(QIODevice* device).
Sourcepub unsafe fn image_formats_for_mime_type(
mime_type: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QListOfQByteArray>
pub unsafe fn image_formats_for_mime_type( mime_type: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QImageReader::imageFormatsForMimeType(const QByteArray& mimeType).
Sourcepub unsafe fn jump_to_image(&self, image_number: c_int) -> bool
pub unsafe fn jump_to_image(&self, image_number: c_int) -> bool
Calls C++ function: bool QImageReader::jumpToImage(int imageNumber).
Sourcepub unsafe fn jump_to_next_image(&self) -> bool
pub unsafe fn jump_to_next_image(&self) -> bool
Calls C++ function: bool QImageReader::jumpToNextImage().
Sourcepub unsafe fn loop_count(&self) -> c_int
pub unsafe fn loop_count(&self) -> c_int
Calls C++ function: int QImageReader::loopCount() const.
Sourcepub unsafe fn new() -> CppBox<QImageReader>
pub unsafe fn new() -> CppBox<QImageReader>
Calls C++ function: [constructor] void QImageReader::QImageReader().
Sourcepub unsafe fn from_q_io_device_q_byte_array(
device: impl CastInto<Ptr<QIODevice>>,
format: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QImageReader>
pub unsafe fn from_q_io_device_q_byte_array( device: impl CastInto<Ptr<QIODevice>>, format: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QImageReader>
Calls C++ function: [constructor] void QImageReader::QImageReader(QIODevice* device, const QByteArray& format = …).
Sourcepub unsafe fn from_q_string_q_byte_array(
file_name: impl CastInto<Ref<QString>>,
format: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QImageReader>
pub unsafe fn from_q_string_q_byte_array( file_name: impl CastInto<Ref<QString>>, format: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QImageReader>
Calls C++ function: [constructor] void QImageReader::QImageReader(const QString& fileName, const QByteArray& format = …).
Sourcepub unsafe fn from_q_io_device(
device: impl CastInto<Ptr<QIODevice>>,
) -> CppBox<QImageReader>
pub unsafe fn from_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QImageReader>
Calls C++ function: [constructor] void QImageReader::QImageReader(QIODevice* device).
Sourcepub unsafe fn from_q_string(
file_name: impl CastInto<Ref<QString>>,
) -> CppBox<QImageReader>
pub unsafe fn from_q_string( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QImageReader>
Calls C++ function: [constructor] void QImageReader::QImageReader(const QString& fileName).
Sourcepub unsafe fn next_image_delay(&self) -> c_int
pub unsafe fn next_image_delay(&self) -> c_int
Calls C++ function: int QImageReader::nextImageDelay() const.
Sourcepub unsafe fn read_0a(&self) -> CppBox<QImage>
pub unsafe fn read_0a(&self) -> CppBox<QImage>
Calls C++ function: QImage QImageReader::read().
Sourcepub unsafe fn read_1a(&self, image: impl CastInto<Ptr<QImage>>) -> bool
pub unsafe fn read_1a(&self, image: impl CastInto<Ptr<QImage>>) -> bool
Calls C++ function: bool QImageReader::read(QImage* image).
Sourcepub unsafe fn scaled_clip_rect(&self) -> CppBox<QRect>
pub unsafe fn scaled_clip_rect(&self) -> CppBox<QRect>
Calls C++ function: QRect QImageReader::scaledClipRect() const.
Sourcepub unsafe fn scaled_size(&self) -> CppBox<QSize>
pub unsafe fn scaled_size(&self) -> CppBox<QSize>
Calls C++ function: QSize QImageReader::scaledSize() const.
Sourcepub unsafe fn set_auto_detect_image_format(&self, enabled: bool)
pub unsafe fn set_auto_detect_image_format(&self, enabled: bool)
Calls C++ function: void QImageReader::setAutoDetectImageFormat(bool enabled).
Sourcepub unsafe fn set_auto_transform(&self, enabled: bool)
pub unsafe fn set_auto_transform(&self, enabled: bool)
Calls C++ function: void QImageReader::setAutoTransform(bool enabled).
Sourcepub unsafe fn set_background_color(&self, color: impl CastInto<Ref<QColor>>)
pub unsafe fn set_background_color(&self, color: impl CastInto<Ref<QColor>>)
Calls C++ function: void QImageReader::setBackgroundColor(const QColor& color).
Sourcepub unsafe fn set_clip_rect(&self, rect: impl CastInto<Ref<QRect>>)
pub unsafe fn set_clip_rect(&self, rect: impl CastInto<Ref<QRect>>)
Calls C++ function: void QImageReader::setClipRect(const QRect& rect).
Sourcepub unsafe fn set_decide_format_from_content(&self, ignored: bool)
pub unsafe fn set_decide_format_from_content(&self, ignored: bool)
Calls C++ function: void QImageReader::setDecideFormatFromContent(bool ignored).
Sourcepub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)
pub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)
Calls C++ function: void QImageReader::setDevice(QIODevice* device).
Sourcepub unsafe fn set_file_name(&self, file_name: impl CastInto<Ref<QString>>)
pub unsafe fn set_file_name(&self, file_name: impl CastInto<Ref<QString>>)
Calls C++ function: void QImageReader::setFileName(const QString& fileName).
Sourcepub unsafe fn set_format(&self, format: impl CastInto<Ref<QByteArray>>)
pub unsafe fn set_format(&self, format: impl CastInto<Ref<QByteArray>>)
Calls C++ function: void QImageReader::setFormat(const QByteArray& format).
Sourcepub unsafe fn set_gamma(&self, gamma: c_float)
pub unsafe fn set_gamma(&self, gamma: c_float)
Calls C++ function: void QImageReader::setGamma(float gamma).
Sourcepub unsafe fn set_quality(&self, quality: c_int)
pub unsafe fn set_quality(&self, quality: c_int)
Calls C++ function: void QImageReader::setQuality(int quality).
Sourcepub unsafe fn set_scaled_clip_rect(&self, rect: impl CastInto<Ref<QRect>>)
pub unsafe fn set_scaled_clip_rect(&self, rect: impl CastInto<Ref<QRect>>)
Calls C++ function: void QImageReader::setScaledClipRect(const QRect& rect).
Sourcepub unsafe fn set_scaled_size(&self, size: impl CastInto<Ref<QSize>>)
pub unsafe fn set_scaled_size(&self, size: impl CastInto<Ref<QSize>>)
Calls C++ function: void QImageReader::setScaledSize(const QSize& size).
Sourcepub unsafe fn size(&self) -> CppBox<QSize>
pub unsafe fn size(&self) -> CppBox<QSize>
Calls C++ function: QSize QImageReader::size() const.
Sourcepub unsafe fn sub_type(&self) -> CppBox<QByteArray>
pub unsafe fn sub_type(&self) -> CppBox<QByteArray>
Calls C++ function: QByteArray QImageReader::subType() const.
Sourcepub unsafe fn supported_image_formats() -> CppBox<QListOfQByteArray>
pub unsafe fn supported_image_formats() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QImageReader::supportedImageFormats().
Sourcepub unsafe fn supported_mime_types() -> CppBox<QListOfQByteArray>
pub unsafe fn supported_mime_types() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QImageReader::supportedMimeTypes().
Sourcepub unsafe fn supported_sub_types(&self) -> CppBox<QListOfQByteArray>
pub unsafe fn supported_sub_types(&self) -> CppBox<QListOfQByteArray>
Calls C++ function: QList<QByteArray> QImageReader::supportedSubTypes() const.
Sourcepub unsafe fn supports_animation(&self) -> bool
pub unsafe fn supports_animation(&self) -> bool
Calls C++ function: bool QImageReader::supportsAnimation() const.
Sourcepub unsafe fn supports_option(&self, option: ImageOption) -> bool
pub unsafe fn supports_option(&self, option: ImageOption) -> bool
Calls C++ function: bool QImageReader::supportsOption(QImageIOHandler::ImageOption option) const.
Sourcepub unsafe fn text(&self, key: impl CastInto<Ref<QString>>) -> CppBox<QString>
pub unsafe fn text(&self, key: impl CastInto<Ref<QString>>) -> CppBox<QString>
Calls C++ function: QString QImageReader::text(const QString& key) const.
Sourcepub unsafe fn text_keys(&self) -> CppBox<QStringList>
pub unsafe fn text_keys(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QImageReader::textKeys() const.
Sourcepub unsafe fn tr(
source_text: *const c_char,
disambiguation: *const c_char,
n: c_int,
) -> CppBox<QString>
pub unsafe fn tr( source_text: *const c_char, disambiguation: *const c_char, n: c_int, ) -> CppBox<QString>
Calls C++ function: static QString QImageReader::tr(const char* sourceText, const char* disambiguation, int n).
Sourcepub unsafe fn tr_utf8(
source_text: *const c_char,
disambiguation: *const c_char,
n: c_int,
) -> CppBox<QString>
pub unsafe fn tr_utf8( source_text: *const c_char, disambiguation: *const c_char, n: c_int, ) -> CppBox<QString>
Calls C++ function: static QString QImageReader::trUtf8(const char* sourceText, const char* disambiguation, int n).
Sourcepub unsafe fn transformation(&self) -> QFlags<Transformation>
pub unsafe fn transformation(&self) -> QFlags<Transformation>
Calls C++ function: QFlags<QImageIOHandler::Transformation> QImageReader::transformation() const.