pub struct QStandardPaths { /* private fields */ }Expand description
C++ class: QStandardPaths.
Implementations§
Source§impl QStandardPaths
impl QStandardPaths
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QStandardPaths>>,
) -> Ref<QStandardPaths>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QStandardPaths>>, ) -> Ref<QStandardPaths>
Calls C++ function: QStandardPaths& QStandardPaths::operator=(const QStandardPaths& other).
Sourcepub unsafe fn display_name(type_: StandardLocation) -> CppBox<QString>
pub unsafe fn display_name(type_: StandardLocation) -> CppBox<QString>
Calls C++ function: static QString QStandardPaths::displayName(QStandardPaths::StandardLocation type).
Sourcepub unsafe fn enable_test_mode(test_mode: bool)
pub unsafe fn enable_test_mode(test_mode: bool)
Calls C++ function: static void QStandardPaths::enableTestMode(bool testMode).
Sourcepub unsafe fn find_executable_2a(
executable_name: impl CastInto<Ref<QString>>,
paths: impl CastInto<Ref<QStringList>>,
) -> CppBox<QString>
pub unsafe fn find_executable_2a( executable_name: impl CastInto<Ref<QString>>, paths: impl CastInto<Ref<QStringList>>, ) -> CppBox<QString>
Calls C++ function: static QString QStandardPaths::findExecutable(const QString& executableName, const QStringList& paths = …).
Sourcepub unsafe fn find_executable_1a(
executable_name: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
pub unsafe fn find_executable_1a( executable_name: impl CastInto<Ref<QString>>, ) -> CppBox<QString>
Calls C++ function: static QString QStandardPaths::findExecutable(const QString& executableName).
Sourcepub unsafe fn is_test_mode_enabled() -> bool
pub unsafe fn is_test_mode_enabled() -> bool
Calls C++ function: static bool QStandardPaths::isTestModeEnabled().
Sourcepub unsafe fn locate_3a(
type_: StandardLocation,
file_name: impl CastInto<Ref<QString>>,
options: QFlags<LocateOption>,
) -> CppBox<QString>
pub unsafe fn locate_3a( type_: StandardLocation, file_name: impl CastInto<Ref<QString>>, options: QFlags<LocateOption>, ) -> CppBox<QString>
Calls C++ function: static QString QStandardPaths::locate(QStandardPaths::StandardLocation type, const QString& fileName, QFlags<QStandardPaths::LocateOption> options = …).
Sourcepub unsafe fn locate_2a(
type_: StandardLocation,
file_name: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
pub unsafe fn locate_2a( type_: StandardLocation, file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QString>
Calls C++ function: static QString QStandardPaths::locate(QStandardPaths::StandardLocation type, const QString& fileName).
Sourcepub unsafe fn locate_all_3a(
type_: StandardLocation,
file_name: impl CastInto<Ref<QString>>,
options: QFlags<LocateOption>,
) -> CppBox<QStringList>
pub unsafe fn locate_all_3a( type_: StandardLocation, file_name: impl CastInto<Ref<QString>>, options: QFlags<LocateOption>, ) -> CppBox<QStringList>
Calls C++ function: static QStringList QStandardPaths::locateAll(QStandardPaths::StandardLocation type, const QString& fileName, QFlags<QStandardPaths::LocateOption> options = …).
Sourcepub unsafe fn locate_all_2a(
type_: StandardLocation,
file_name: impl CastInto<Ref<QString>>,
) -> CppBox<QStringList>
pub unsafe fn locate_all_2a( type_: StandardLocation, file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QStringList>
Calls C++ function: static QStringList QStandardPaths::locateAll(QStandardPaths::StandardLocation type, const QString& fileName).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QStandardPaths>>,
) -> Ref<QStandardPaths>
pub unsafe fn new_copy( other: impl CastInto<Ref<QStandardPaths>>, ) -> Ref<QStandardPaths>
Calls C++ function: [constructor] void QStandardPaths::QStandardPaths(const QStandardPaths& other).
Sourcepub unsafe fn set_test_mode_enabled(test_mode: bool)
pub unsafe fn set_test_mode_enabled(test_mode: bool)
Calls C++ function: static void QStandardPaths::setTestModeEnabled(bool testMode).
Sourcepub unsafe fn standard_locations(type_: StandardLocation) -> CppBox<QStringList>
pub unsafe fn standard_locations(type_: StandardLocation) -> CppBox<QStringList>
Calls C++ function: static QStringList QStandardPaths::standardLocations(QStandardPaths::StandardLocation type).
Sourcepub unsafe fn static_meta_object() -> Ref<QMetaObject>
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
Returns a reference to the staticMetaObject field.
Sourcepub unsafe fn writable_location(type_: StandardLocation) -> CppBox<QString>
pub unsafe fn writable_location(type_: StandardLocation) -> CppBox<QString>
Calls C++ function: static QString QStandardPaths::writableLocation(QStandardPaths::StandardLocation type).