Struct QQmlFile

Source
#[repr(C)]
pub struct QQmlFile { /* private fields */ }
Expand description

C++ class: QQmlFile.

Implementations§

Source§

impl QQmlFile

Source

pub unsafe fn clear_0a(&self)

Calls C++ function: void QQmlFile::clear().

Source

pub unsafe fn clear_1a(&self, arg1: impl CastInto<Ptr<QObject>>)

Calls C++ function: void QQmlFile::clear(QObject* arg1).

Source

pub unsafe fn connect_download_progress_q_object_char( &self, arg1: impl CastInto<Ptr<QObject>>, arg2: *const c_char, ) -> bool

Calls C++ function: bool QQmlFile::connectDownloadProgress(QObject* arg1, const char* arg2).

Source

pub unsafe fn connect_download_progress_q_object_int( &self, arg1: impl CastInto<Ptr<QObject>>, arg2: c_int, ) -> bool

Calls C++ function: bool QQmlFile::connectDownloadProgress(QObject* arg1, int arg2).

Source

pub unsafe fn connect_finished_q_object_char( &self, arg1: impl CastInto<Ptr<QObject>>, arg2: *const c_char, ) -> bool

Calls C++ function: bool QQmlFile::connectFinished(QObject* arg1, const char* arg2).

Source

pub unsafe fn connect_finished_q_object_int( &self, arg1: impl CastInto<Ptr<QObject>>, arg2: c_int, ) -> bool

Calls C++ function: bool QQmlFile::connectFinished(QObject* arg1, int arg2).

Source

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

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

Source

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

Calls C++ function: QByteArray QQmlFile::dataByteArray() const.

Source

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

Calls C++ function: QString QQmlFile::error() const.

Source

pub unsafe fn is_error(&self) -> bool

Calls C++ function: bool QQmlFile::isError() const.

Source

pub unsafe fn is_loading(&self) -> bool

Calls C++ function: bool QQmlFile::isLoading() const.

Source

pub unsafe fn is_local_file_q_string(url: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: static bool QQmlFile::isLocalFile(const QString& url).

Source

pub unsafe fn is_local_file_q_url(url: impl CastInto<Ref<QUrl>>) -> bool

Calls C++ function: static bool QQmlFile::isLocalFile(const QUrl& url).

Source

pub unsafe fn is_null(&self) -> bool

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

Source

pub unsafe fn is_ready(&self) -> bool

Calls C++ function: bool QQmlFile::isReady() const.

Source

pub unsafe fn is_synchronous_q_string(url: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: static bool QQmlFile::isSynchronous(const QString& url).

Source

pub unsafe fn is_synchronous_q_url(url: impl CastInto<Ref<QUrl>>) -> bool

Calls C++ function: static bool QQmlFile::isSynchronous(const QUrl& url).

Source

pub unsafe fn load_q_qml_engine_q_url( &self, arg1: impl CastInto<Ptr<QQmlEngine>>, arg2: impl CastInto<Ref<QUrl>>, )

Calls C++ function: void QQmlFile::load(QQmlEngine* arg1, const QUrl& arg2).

Source

pub unsafe fn load_q_qml_engine_q_string( &self, arg1: impl CastInto<Ptr<QQmlEngine>>, arg2: impl CastInto<Ref<QString>>, )

Calls C++ function: void QQmlFile::load(QQmlEngine* arg1, const QString& arg2).

Source

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

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

Source

pub unsafe fn from_q_qml_engine_q_url( arg1: impl CastInto<Ptr<QQmlEngine>>, arg2: impl CastInto<Ref<QUrl>>, ) -> CppBox<QQmlFile>

Calls C++ function: [constructor] void QQmlFile::QQmlFile(QQmlEngine* arg1, const QUrl& arg2).

Source

pub unsafe fn from_q_qml_engine_q_string( arg1: impl CastInto<Ptr<QQmlEngine>>, arg2: impl CastInto<Ref<QString>>, ) -> CppBox<QQmlFile>

Calls C++ function: [constructor] void QQmlFile::QQmlFile(QQmlEngine* arg1, const QString& arg2).

Source

pub unsafe fn size(&self) -> i64

Calls C++ function: qint64 QQmlFile::size() const.

Source

pub unsafe fn status(&self) -> Status

Calls C++ function: QQmlFile::Status QQmlFile::status() const.

Source

pub unsafe fn url(&self) -> CppBox<QUrl>

Calls C++ function: QUrl QQmlFile::url() const.

Source

pub unsafe fn url_to_local_file_or_qrc_q_string( arg1: impl CastInto<Ref<QString>>, ) -> CppBox<QString>

Calls C++ function: static QString QQmlFile::urlToLocalFileOrQrc(const QString& arg1).

Source

pub unsafe fn url_to_local_file_or_qrc_q_url( arg1: impl CastInto<Ref<QUrl>>, ) -> CppBox<QString>

Calls C++ function: static QString QQmlFile::urlToLocalFileOrQrc(const QUrl& arg1).

Trait Implementations§

Source§

impl CppDeletable for QQmlFile

Source§

unsafe fn delete(&self)

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

Source§

impl Data for QQmlFile

Source§

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

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

Source§

type Output = *const i8

Return type of data() function.
Source§

impl Size for QQmlFile

Source§

unsafe fn size(&self) -> usize

Calls C++ function: qint64 QQmlFile::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.