Skip to main content

QPictureIO

Struct QPictureIO 

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

C++ class: QPictureIO.

Implementations§

Source§

impl QPictureIO

Source

pub unsafe fn define_io_handler( format: *const c_char, header: *const c_char, flags: *const c_char, read_picture: Option<extern "C" fn(*mut QPictureIO)>, write_picture: Option<extern "C" fn(*mut QPictureIO)>, )

Calls C++ function: static void QPictureIO::defineIOHandler(const char* format, const char* header, const char* flags, void (*FN_PTR)(QPictureIO *) read_picture, void (*FN_PTR)(QPictureIO *) write_picture).

Source

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

Calls C++ function: QString QPictureIO::description() const.

Source

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

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

Source

pub unsafe fn format(&self) -> *const c_char

Calls C++ function: const char* QPictureIO::format() const.

Source

pub unsafe fn gamma(&self) -> c_float

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

Source

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

Calls C++ function: static QList<QByteArray> QPictureIO::inputFormats().

Source

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

Calls C++ function: QIODevice* QPictureIO::ioDevice() const.

Source

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

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

Source

pub unsafe fn from_q_io_device_char( io_device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, ) -> CppBox<QPictureIO>

Calls C++ function: [constructor] void QPictureIO::QPictureIO(QIODevice* ioDevice, const char* format).

Source

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

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

Source

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

Calls C++ function: static QList<QByteArray> QPictureIO::outputFormats().

Source

pub unsafe fn parameters(&self) -> *const c_char

Calls C++ function: const char* QPictureIO::parameters() const.

Source

pub unsafe fn picture(&self) -> Ref<QPicture>

Calls C++ function: const QPicture& QPictureIO::picture() const.

Source

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

Calls C++ function: static QByteArray QPictureIO::pictureFormat(const QString& fileName).

Source

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

Calls C++ function: static QByteArray QPictureIO::pictureFormat(QIODevice* arg1).

Source

pub unsafe fn quality(&self) -> c_int

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

Source

pub unsafe fn read(&self) -> bool

Calls C++ function: bool QPictureIO::read().

Source

pub unsafe fn set_description(&self, arg1: impl CastInto<Ref<QString>>)

Calls C++ function: void QPictureIO::setDescription(const QString& arg1).

Source

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

Calls C++ function: void QPictureIO::setFileName(const QString& arg1).

Source

pub unsafe fn set_format(&self, arg1: *const c_char)

Calls C++ function: void QPictureIO::setFormat(const char* arg1).

Source

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

Calls C++ function: void QPictureIO::setGamma(float arg1).

Source

pub unsafe fn set_io_device(&self, arg1: impl CastInto<Ptr<QIODevice>>)

Calls C++ function: void QPictureIO::setIODevice(QIODevice* arg1).

Source

pub unsafe fn set_parameters(&self, arg1: *const c_char)

Calls C++ function: void QPictureIO::setParameters(const char* arg1).

Source

pub unsafe fn set_picture(&self, arg1: impl CastInto<Ref<QPicture>>)

Calls C++ function: void QPictureIO::setPicture(const QPicture& arg1).

Source

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

Calls C++ function: void QPictureIO::setQuality(int arg1).

Source

pub unsafe fn set_status(&self, arg1: c_int)

Calls C++ function: void QPictureIO::setStatus(int arg1).

Source

pub unsafe fn status(&self) -> c_int

Calls C++ function: int QPictureIO::status() const.

Source

pub unsafe fn write(&self) -> bool

Calls C++ function: bool QPictureIO::write().

Trait Implementations§

Source§

impl CppDeletable for QPictureIO

Source§

unsafe fn delete(&self)

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

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.