Skip to main content

QImageReader

Struct QImageReader 

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

C++ class: QImageReader.

Implementations§

Source§

impl QImageReader

Source

pub unsafe fn auto_detect_image_format(&self) -> bool

Calls C++ function: bool QImageReader::autoDetectImageFormat() const.

Source

pub unsafe fn auto_transform(&self) -> bool

Calls C++ function: bool QImageReader::autoTransform() const.

Source

pub unsafe fn background_color(&self) -> CppBox<QColor>

Calls C++ function: QColor QImageReader::backgroundColor() const.

Source

pub unsafe fn can_read(&self) -> bool

Calls C++ function: bool QImageReader::canRead() const.

Source

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

Calls C++ function: QRect QImageReader::clipRect() const.

Source

pub unsafe fn current_image_number(&self) -> c_int

Calls C++ function: int QImageReader::currentImageNumber() const.

Source

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

Calls C++ function: QRect QImageReader::currentImageRect() const.

Source

pub unsafe fn decide_format_from_content(&self) -> bool

Calls C++ function: bool QImageReader::decideFormatFromContent() const.

Source

pub unsafe fn device(&self) -> QPtr<QIODevice>

Calls C++ function: QIODevice* QImageReader::device() const.

Source

pub unsafe fn error(&self) -> ImageReaderError

Calls C++ function: QImageReader::ImageReaderError QImageReader::error() const.

Source

pub unsafe fn error_string(&self) -> CppBox<QString>

Calls C++ function: QString QImageReader::errorString() const.

Source

pub unsafe fn file_name(&self) -> CppBox<QString>

Calls C++ function: QString QImageReader::fileName() const.

Source

pub unsafe fn format(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QImageReader::format() const.

Source

pub unsafe fn gamma(&self) -> c_float

Calls C++ function: float QImageReader::gamma() const.

Source

pub unsafe fn image_count(&self) -> c_int

Calls C++ function: int QImageReader::imageCount() const.

Source

pub unsafe fn image_format(&self) -> Format

Calls C++ function: QImage::Format QImageReader::imageFormat() const.

Source

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).

Source

pub unsafe fn image_format_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QImageReader::imageFormat(QIODevice* device).

Source

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).

Source

pub unsafe fn jump_to_image(&self, image_number: c_int) -> bool

Calls C++ function: bool QImageReader::jumpToImage(int imageNumber).

Source

pub unsafe fn jump_to_next_image(&self) -> bool

Calls C++ function: bool QImageReader::jumpToNextImage().

Source

pub unsafe fn loop_count(&self) -> c_int

Calls C++ function: int QImageReader::loopCount() const.

Source

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

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

Source

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 = …).

Source

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 = …).

Source

pub unsafe fn from_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QImageReader>

Calls C++ function: [constructor] void QImageReader::QImageReader(QIODevice* device).

Source

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

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

Source

pub unsafe fn next_image_delay(&self) -> c_int

Calls C++ function: int QImageReader::nextImageDelay() const.

Source

pub unsafe fn quality(&self) -> c_int

Calls C++ function: int QImageReader::quality() const.

Source

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

Calls C++ function: QImage QImageReader::read().

Source

pub unsafe fn read_1a(&self, image: impl CastInto<Ptr<QImage>>) -> bool

Calls C++ function: bool QImageReader::read(QImage* image).

Source

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

Calls C++ function: QRect QImageReader::scaledClipRect() const.

Source

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

Calls C++ function: QSize QImageReader::scaledSize() const.

Source

pub unsafe fn set_auto_detect_image_format(&self, enabled: bool)

Calls C++ function: void QImageReader::setAutoDetectImageFormat(bool enabled).

Source

pub unsafe fn set_auto_transform(&self, enabled: bool)

Calls C++ function: void QImageReader::setAutoTransform(bool enabled).

Source

pub unsafe fn set_background_color(&self, color: impl CastInto<Ref<QColor>>)

Calls C++ function: void QImageReader::setBackgroundColor(const QColor& color).

Source

pub unsafe fn set_clip_rect(&self, rect: impl CastInto<Ref<QRect>>)

Calls C++ function: void QImageReader::setClipRect(const QRect& rect).

Source

pub unsafe fn set_decide_format_from_content(&self, ignored: bool)

Calls C++ function: void QImageReader::setDecideFormatFromContent(bool ignored).

Source

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

Calls C++ function: void QImageReader::setDevice(QIODevice* device).

Source

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

Calls C++ function: void QImageReader::setFileName(const QString& fileName).

Source

pub unsafe fn set_format(&self, format: impl CastInto<Ref<QByteArray>>)

Calls C++ function: void QImageReader::setFormat(const QByteArray& format).

Source

pub unsafe fn set_gamma(&self, gamma: c_float)

Calls C++ function: void QImageReader::setGamma(float gamma).

Source

pub unsafe fn set_quality(&self, quality: c_int)

Calls C++ function: void QImageReader::setQuality(int quality).

Source

pub unsafe fn set_scaled_clip_rect(&self, rect: impl CastInto<Ref<QRect>>)

Calls C++ function: void QImageReader::setScaledClipRect(const QRect& rect).

Source

pub unsafe fn set_scaled_size(&self, size: impl CastInto<Ref<QSize>>)

Calls C++ function: void QImageReader::setScaledSize(const QSize& size).

Source

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

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

Source

pub unsafe fn sub_type(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QImageReader::subType() const.

Source

pub unsafe fn supported_image_formats() -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QImageReader::supportedImageFormats().

Source

pub unsafe fn supported_mime_types() -> CppBox<QListOfQByteArray>

Calls C++ function: static QList<QByteArray> QImageReader::supportedMimeTypes().

Source

pub unsafe fn supported_sub_types(&self) -> CppBox<QListOfQByteArray>

Calls C++ function: QList<QByteArray> QImageReader::supportedSubTypes() const.

Source

pub unsafe fn supports_animation(&self) -> bool

Calls C++ function: bool QImageReader::supportsAnimation() const.

Source

pub unsafe fn supports_option(&self, option: ImageOption) -> bool

Calls C++ function: bool QImageReader::supportsOption(QImageIOHandler::ImageOption option) const.

Source

pub unsafe fn text(&self, key: impl CastInto<Ref<QString>>) -> CppBox<QString>

Calls C++ function: QString QImageReader::text(const QString& key) const.

Source

pub unsafe fn text_keys(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QImageReader::textKeys() const.

Source

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).

Source

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).

Source

pub unsafe fn transformation(&self) -> QFlags<Transformation>

Calls C++ function: QFlags<QImageIOHandler::Transformation> QImageReader::transformation() const.

Trait Implementations§

Source§

impl CppDeletable for QImageReader

Source§

unsafe fn delete(&self)

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

Source§

impl Size for QImageReader

Source§

unsafe fn size(&self) -> usize

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

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<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.