pub struct QImageWriter { /* private fields */ }Expand description
C++ class: QImageWriter.
Implementations§
Source§impl QImageWriter
impl QImageWriter
Sourcepub unsafe fn can_write(&self) -> bool
pub unsafe fn can_write(&self) -> bool
Calls C++ function: bool QImageWriter::canWrite() const.
Sourcepub unsafe fn compression(&self) -> c_int
pub unsafe fn compression(&self) -> c_int
Calls C++ function: int QImageWriter::compression() const.
Sourcepub unsafe fn description(&self) -> CppBox<QString>
pub unsafe fn description(&self) -> CppBox<QString>
Calls C++ function: QString QImageWriter::description() const.
Sourcepub unsafe fn device(&self) -> QPtr<QIODevice>
pub unsafe fn device(&self) -> QPtr<QIODevice>
Calls C++ function: QIODevice* QImageWriter::device() const.
Sourcepub unsafe fn error(&self) -> ImageWriterError
pub unsafe fn error(&self) -> ImageWriterError
Calls C++ function: QImageWriter::ImageWriterError QImageWriter::error() const.
Sourcepub unsafe fn error_string(&self) -> CppBox<QString>
pub unsafe fn error_string(&self) -> CppBox<QString>
Calls C++ function: QString QImageWriter::errorString() const.
Sourcepub unsafe fn file_name(&self) -> CppBox<QString>
pub unsafe fn file_name(&self) -> CppBox<QString>
Calls C++ function: QString QImageWriter::fileName() const.
Sourcepub unsafe fn format(&self) -> CppBox<QByteArray>
pub unsafe fn format(&self) -> CppBox<QByteArray>
Calls C++ function: QByteArray QImageWriter::format() const.
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> QImageWriter::imageFormatsForMimeType(const QByteArray& mimeType).
Sourcepub unsafe fn new() -> CppBox<QImageWriter>
pub unsafe fn new() -> CppBox<QImageWriter>
Calls C++ function: [constructor] void QImageWriter::QImageWriter().
Sourcepub unsafe fn from_q_io_device_q_byte_array(
device: impl CastInto<Ptr<QIODevice>>,
format: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QImageWriter>
pub unsafe fn from_q_io_device_q_byte_array( device: impl CastInto<Ptr<QIODevice>>, format: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QImageWriter>
Calls C++ function: [constructor] void QImageWriter::QImageWriter(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<QImageWriter>
pub unsafe fn from_q_string_q_byte_array( file_name: impl CastInto<Ref<QString>>, format: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QImageWriter>
Calls C++ function: [constructor] void QImageWriter::QImageWriter(const QString& fileName, const QByteArray& format = …).
Sourcepub unsafe fn from_q_string(
file_name: impl CastInto<Ref<QString>>,
) -> CppBox<QImageWriter>
pub unsafe fn from_q_string( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QImageWriter>
Calls C++ function: [constructor] void QImageWriter::QImageWriter(const QString& fileName).
Sourcepub unsafe fn optimized_write(&self) -> bool
pub unsafe fn optimized_write(&self) -> bool
Calls C++ function: bool QImageWriter::optimizedWrite() const.
Sourcepub unsafe fn progressive_scan_write(&self) -> bool
pub unsafe fn progressive_scan_write(&self) -> bool
Calls C++ function: bool QImageWriter::progressiveScanWrite() const.
Sourcepub unsafe fn set_compression(&self, compression: c_int)
pub unsafe fn set_compression(&self, compression: c_int)
Calls C++ function: void QImageWriter::setCompression(int compression).
Sourcepub unsafe fn set_description(&self, description: impl CastInto<Ref<QString>>)
pub unsafe fn set_description(&self, description: impl CastInto<Ref<QString>>)
Calls C++ function: void QImageWriter::setDescription(const QString& description).
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 QImageWriter::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 QImageWriter::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 QImageWriter::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 QImageWriter::setGamma(float gamma).
Sourcepub unsafe fn set_optimized_write(&self, optimize: bool)
pub unsafe fn set_optimized_write(&self, optimize: bool)
Calls C++ function: void QImageWriter::setOptimizedWrite(bool optimize).
Sourcepub unsafe fn set_progressive_scan_write(&self, progressive: bool)
pub unsafe fn set_progressive_scan_write(&self, progressive: bool)
Calls C++ function: void QImageWriter::setProgressiveScanWrite(bool progressive).
Sourcepub unsafe fn set_quality(&self, quality: c_int)
pub unsafe fn set_quality(&self, quality: c_int)
Calls C++ function: void QImageWriter::setQuality(int quality).
Sourcepub unsafe fn set_sub_type(&self, type_: impl CastInto<Ref<QByteArray>>)
pub unsafe fn set_sub_type(&self, type_: impl CastInto<Ref<QByteArray>>)
Calls C++ function: void QImageWriter::setSubType(const QByteArray& type).
Sourcepub unsafe fn set_text(
&self,
key: impl CastInto<Ref<QString>>,
text: impl CastInto<Ref<QString>>,
)
pub unsafe fn set_text( &self, key: impl CastInto<Ref<QString>>, text: impl CastInto<Ref<QString>>, )
Calls C++ function: void QImageWriter::setText(const QString& key, const QString& text).
Sourcepub unsafe fn set_transformation(&self, orientation: QFlags<Transformation>)
pub unsafe fn set_transformation(&self, orientation: QFlags<Transformation>)
Calls C++ function: void QImageWriter::setTransformation(QFlags<QImageIOHandler::Transformation> orientation).
Sourcepub unsafe fn sub_type(&self) -> CppBox<QByteArray>
pub unsafe fn sub_type(&self) -> CppBox<QByteArray>
Calls C++ function: QByteArray QImageWriter::subType() const.
Sourcepub unsafe fn supported_image_formats() -> CppBox<QListOfQByteArray>
pub unsafe fn supported_image_formats() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QImageWriter::supportedImageFormats().
Sourcepub unsafe fn supported_mime_types() -> CppBox<QListOfQByteArray>
pub unsafe fn supported_mime_types() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QImageWriter::supportedMimeTypes().
Sourcepub unsafe fn supported_sub_types(&self) -> CppBox<QListOfQByteArray>
pub unsafe fn supported_sub_types(&self) -> CppBox<QListOfQByteArray>
Calls C++ function: QList<QByteArray> QImageWriter::supportedSubTypes() const.
Sourcepub unsafe fn supports_option(&self, option: ImageOption) -> bool
pub unsafe fn supports_option(&self, option: ImageOption) -> bool
Calls C++ function: bool QImageWriter::supportsOption(QImageIOHandler::ImageOption option) 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 QImageWriter::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 QImageWriter::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> QImageWriter::transformation() const.