Skip to main content

QPicture

Struct QPicture 

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

C++ class: QPicture.

Implementations§

Source§

impl QPicture

Source

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

Calls C++ function: QRect QPicture::boundingRect() const.

Source

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

Calls C++ function: QPicture& QPicture::operator=(const QPicture& p).

Source

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

Calls C++ function: const char* QPicture::data() const.

Source

pub unsafe fn detach(&self)

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

Source

pub unsafe fn dev_type(&self) -> c_int

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

Source

pub unsafe fn input_format_list() -> CppBox<QStringList>

Calls C++ function: static QStringList QPicture::inputFormatList().

Source

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

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

Source

pub unsafe fn is_detached(&self) -> bool

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

Source

pub unsafe fn is_null(&self) -> bool

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

Source

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

Calls C++ function: bool QPicture::load(QIODevice* dev, const char* format = …).

Source

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

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

Source

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

Calls C++ function: bool QPicture::load(QIODevice* dev).

Source

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

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

Source

pub unsafe fn new_1a(format_version: c_int) -> CppBox<QPicture>

Calls C++ function: [constructor] void QPicture::QPicture(int formatVersion = …).

Source

pub unsafe fn new_0a() -> CppBox<QPicture>

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

Source

pub unsafe fn new_copy(arg1: impl CastInto<Ref<QPicture>>) -> CppBox<QPicture>

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

Source

pub unsafe fn output_format_list() -> CppBox<QStringList>

Calls C++ function: static QStringList QPicture::outputFormatList().

Source

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

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

Source

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

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

Source

pub unsafe fn picture_format( file_name: impl CastInto<Ref<QString>>, ) -> *const c_char

Calls C++ function: static const char* QPicture::pictureFormat(const QString& fileName).

Source

pub unsafe fn play(&self, p: impl CastInto<Ptr<QPainter>>) -> bool

Calls C++ function: bool QPicture::play(QPainter* p).

Source

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

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

Source

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

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

Source

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

Calls C++ function: bool QPicture::save(QIODevice* dev).

Source

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

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

Source

pub unsafe fn set_bounding_rect(&self, r: impl CastInto<Ref<QRect>>)

Calls C++ function: void QPicture::setBoundingRect(const QRect& r).

Source

pub unsafe fn set_data(&self, data: *const c_char, size: c_uint)

Calls C++ function: virtual void QPicture::setData(const char* data, unsigned int size).

Source

pub unsafe fn size(&self) -> c_uint

Calls C++ function: unsigned int QPicture::size() const.

Source

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

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

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 QPicture

Source§

unsafe fn delete(&self)

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

Source§

impl Data for QPicture

Source§

unsafe fn data(&self) -> *const c_char

Calls C++ function: const char* QPicture::data() const.

Source§

type Output = *const i8

Return type of data() function.
Source§

impl Deref for QPicture

Source§

fn deref(&self) -> &QPaintDevice

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

Source§

type Target = QPaintDevice

The resulting type after dereferencing.
Source§

impl DynamicCast<QPicture> for QPaintDevice

Source§

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

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

Source§

impl Size for QPicture

Source§

unsafe fn size(&self) -> usize

Calls C++ function: unsigned int QPicture::size() const.

Source§

impl StaticDowncast<QPicture> for QPaintDevice

Source§

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

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

Source§

impl StaticUpcast<QPaintDevice> for QPicture

Source§

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

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPicture* 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.