pub struct QPicture { /* private fields */ }Expand description
C++ class: QPicture.
Implementations§
Source§impl QPicture
impl QPicture
Sourcepub unsafe fn bounding_rect(&self) -> CppBox<QRect>
pub unsafe fn bounding_rect(&self) -> CppBox<QRect>
Calls C++ function: QRect QPicture::boundingRect() const.
Sourcepub unsafe fn copy_from(&self, p: impl CastInto<Ref<QPicture>>) -> Ref<QPicture>
pub unsafe fn copy_from(&self, p: impl CastInto<Ref<QPicture>>) -> Ref<QPicture>
Calls C++ function: QPicture& QPicture::operator=(const QPicture& p).
Sourcepub unsafe fn data(&self) -> *const c_char
pub unsafe fn data(&self) -> *const c_char
Calls C++ function: const char* QPicture::data() const.
Sourcepub unsafe fn dev_type(&self) -> c_int
pub unsafe fn dev_type(&self) -> c_int
Calls C++ function: virtual int QPicture::devType() const.
Sourcepub unsafe fn input_format_list() -> CppBox<QStringList>
pub unsafe fn input_format_list() -> CppBox<QStringList>
Calls C++ function: static QStringList QPicture::inputFormatList().
Sourcepub unsafe fn input_formats() -> CppBox<QListOfQByteArray>
pub unsafe fn input_formats() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QPicture::inputFormats().
Sourcepub unsafe fn is_detached(&self) -> bool
pub unsafe fn is_detached(&self) -> bool
Calls C++ function: bool QPicture::isDetached() const.
Sourcepub unsafe fn load_q_io_device_char(
&self,
dev: impl CastInto<Ptr<QIODevice>>,
format: *const c_char,
) -> bool
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 = …).
Sourcepub unsafe fn load_q_string_char(
&self,
file_name: impl CastInto<Ref<QString>>,
format: *const c_char,
) -> bool
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 = …).
Sourcepub unsafe fn load_q_io_device(
&self,
dev: impl CastInto<Ptr<QIODevice>>,
) -> bool
pub unsafe fn load_q_io_device( &self, dev: impl CastInto<Ptr<QIODevice>>, ) -> bool
Calls C++ function: bool QPicture::load(QIODevice* dev).
Sourcepub unsafe fn load_q_string(
&self,
file_name: impl CastInto<Ref<QString>>,
) -> bool
pub unsafe fn load_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool
Calls C++ function: bool QPicture::load(const QString& fileName).
Sourcepub unsafe fn new_1a(format_version: c_int) -> CppBox<QPicture>
pub unsafe fn new_1a(format_version: c_int) -> CppBox<QPicture>
Calls C++ function: [constructor] void QPicture::QPicture(int formatVersion = …).
Sourcepub unsafe fn new_0a() -> CppBox<QPicture>
pub unsafe fn new_0a() -> CppBox<QPicture>
Calls C++ function: [constructor] void QPicture::QPicture().
Sourcepub unsafe fn new_copy(arg1: impl CastInto<Ref<QPicture>>) -> CppBox<QPicture>
pub unsafe fn new_copy(arg1: impl CastInto<Ref<QPicture>>) -> CppBox<QPicture>
Calls C++ function: [constructor] void QPicture::QPicture(const QPicture& arg1).
Sourcepub unsafe fn output_format_list() -> CppBox<QStringList>
pub unsafe fn output_format_list() -> CppBox<QStringList>
Calls C++ function: static QStringList QPicture::outputFormatList().
Sourcepub unsafe fn output_formats() -> CppBox<QListOfQByteArray>
pub unsafe fn output_formats() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QPicture::outputFormats().
Sourcepub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
Calls C++ function: virtual QPaintEngine* QPicture::paintEngine() const.
Sourcepub unsafe fn picture_format(
file_name: impl CastInto<Ref<QString>>,
) -> *const c_char
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).
Sourcepub unsafe fn play(&self, p: impl CastInto<Ptr<QPainter>>) -> bool
pub unsafe fn play(&self, p: impl CastInto<Ptr<QPainter>>) -> bool
Calls C++ function: bool QPicture::play(QPainter* p).
Sourcepub unsafe fn save_q_io_device_char(
&self,
dev: impl CastInto<Ptr<QIODevice>>,
format: *const c_char,
) -> bool
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 = …).
Sourcepub unsafe fn save_q_string_char(
&self,
file_name: impl CastInto<Ref<QString>>,
format: *const c_char,
) -> bool
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 = …).
Sourcepub unsafe fn save_q_io_device(
&self,
dev: impl CastInto<Ptr<QIODevice>>,
) -> bool
pub unsafe fn save_q_io_device( &self, dev: impl CastInto<Ptr<QIODevice>>, ) -> bool
Calls C++ function: bool QPicture::save(QIODevice* dev).
Sourcepub unsafe fn save_q_string(
&self,
file_name: impl CastInto<Ref<QString>>,
) -> bool
pub unsafe fn save_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool
Calls C++ function: bool QPicture::save(const QString& fileName).
Sourcepub unsafe fn set_bounding_rect(&self, r: impl CastInto<Ref<QRect>>)
pub unsafe fn set_bounding_rect(&self, r: impl CastInto<Ref<QRect>>)
Calls C++ function: void QPicture::setBoundingRect(const QRect& r).
Methods from Deref<Target = QPaintDevice>§
Sourcepub unsafe fn color_count(&self) -> c_int
pub unsafe fn color_count(&self) -> c_int
Calls C++ function: int QPaintDevice::colorCount() const.
Sourcepub unsafe fn dev_type(&self) -> c_int
pub unsafe fn dev_type(&self) -> c_int
Calls C++ function: virtual int QPaintDevice::devType() const.
Sourcepub unsafe fn device_pixel_ratio(&self) -> c_int
pub unsafe fn device_pixel_ratio(&self) -> c_int
Calls C++ function: int QPaintDevice::devicePixelRatio() const.
Sourcepub unsafe fn device_pixel_ratio_f(&self) -> c_double
pub unsafe fn device_pixel_ratio_f(&self) -> c_double
Calls C++ function: double QPaintDevice::devicePixelRatioF() const.
Sourcepub unsafe fn height_m_m(&self) -> c_int
pub unsafe fn height_m_m(&self) -> c_int
Calls C++ function: int QPaintDevice::heightMM() const.
Sourcepub unsafe fn logical_dpi_x(&self) -> c_int
pub unsafe fn logical_dpi_x(&self) -> c_int
Calls C++ function: int QPaintDevice::logicalDpiX() const.
Sourcepub unsafe fn logical_dpi_y(&self) -> c_int
pub unsafe fn logical_dpi_y(&self) -> c_int
Calls C++ function: int QPaintDevice::logicalDpiY() const.
Sourcepub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
Calls C++ function: pure virtual QPaintEngine* QPaintDevice::paintEngine() const.
Sourcepub unsafe fn painting_active(&self) -> bool
pub unsafe fn painting_active(&self) -> bool
Calls C++ function: bool QPaintDevice::paintingActive() const.
Sourcepub unsafe fn physical_dpi_x(&self) -> c_int
pub unsafe fn physical_dpi_x(&self) -> c_int
Calls C++ function: int QPaintDevice::physicalDpiX() const.
Sourcepub unsafe fn physical_dpi_y(&self) -> c_int
pub unsafe fn physical_dpi_y(&self) -> c_int
Calls C++ function: int QPaintDevice::physicalDpiY() const.
Trait Implementations§
Source§impl CppDeletable for QPicture
impl CppDeletable for QPicture
Source§impl Deref for QPicture
impl Deref for QPicture
Source§fn deref(&self) -> &QPaintDevice
fn deref(&self) -> &QPaintDevice
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPicture* ptr).
Source§type Target = QPaintDevice
type Target = QPaintDevice
Source§impl DynamicCast<QPicture> for QPaintDevice
impl DynamicCast<QPicture> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
Calls C++ function: QPicture* dynamic_cast<QPicture*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QPicture> for QPaintDevice
impl StaticDowncast<QPicture> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
Calls C++ function: QPicture* static_cast<QPicture*>(QPaintDevice* ptr).
Source§impl StaticUpcast<QPaintDevice> for QPicture
impl StaticUpcast<QPaintDevice> for QPicture
Source§unsafe fn static_upcast(ptr: Ptr<QPicture>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPicture>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPicture* ptr).