Trait StandardPathsMethods

Source
pub trait StandardPathsMethods: WxRustMethods {
Show 20 methods // Provided methods fn dont_ignore_app_sub_dir(&self) { ... } fn get_app_documents_dir(&self) -> String { ... } fn get_config_dir(&self) -> String { ... } fn get_data_dir(&self) -> String { ... } fn get_documents_dir(&self) -> String { ... } fn get_executable_path(&self) -> String { ... } fn get_install_prefix(&self) -> String { ... } fn get_local_data_dir(&self) -> String { ... } fn get_plugins_dir(&self) -> String { ... } fn get_resources_dir(&self) -> String { ... } fn get_temp_dir(&self) -> String { ... } fn get_user_config_dir(&self) -> String { ... } fn get_user_data_dir(&self) -> String { ... } fn get_user_local_data_dir(&self) -> String { ... } fn ignore_app_sub_dir(&self, subdir_pattern: &str) { ... } fn ignore_app_build_sub_dirs(&self) { ... } fn set_install_prefix(&self, prefix: &str) { ... } fn use_app_info(&self, info: c_int) { ... } fn get() -> StandardPathsIsOwned<false> { ... } fn msw_get_shell_dir(csidl: c_int) -> String { ... }
}
Expand description

This trait represents C++ wxStandardPaths class’s methods and inheritance.

See StandardPathsIsOwned documentation for the class usage.

Provided Methods§

Source

fn dont_ignore_app_sub_dir(&self)

MSW-specific function undoing the effect of IgnoreAppSubDir() calls.

See C++ wxStandardPaths::DontIgnoreAppSubDir()’s documentation.

Source

fn get_app_documents_dir(&self) -> String

Return the directory for the document files used by this application.

See C++ wxStandardPaths::GetAppDocumentsDir()’s documentation.

Source

fn get_config_dir(&self) -> String

Return the directory containing the system config files.

See C++ wxStandardPaths::GetConfigDir()’s documentation.

Source

fn get_data_dir(&self) -> String

Return the location of the applications global, i.e. not user-specific, data files.

See C++ wxStandardPaths::GetDataDir()’s documentation.

Source

fn get_documents_dir(&self) -> String

Same as calling GetUserDir() with Dir_Documents parameter.

See C++ wxStandardPaths::GetDocumentsDir()’s documentation.

Source

fn get_executable_path(&self) -> String

Return the directory and the filename for the current executable.

See C++ wxStandardPaths::GetExecutablePath()’s documentation.

Source

fn get_install_prefix(&self) -> String

Return the program installation prefix, e.g. /usr, /opt or /home/zeitlin.

See C++ wxStandardPaths::GetInstallPrefix()’s documentation.

Source

fn get_local_data_dir(&self) -> String

Return the location for application data files which are host-specific and can’t, or shouldn’t, be shared with the other machines.

See C++ wxStandardPaths::GetLocalDataDir()’s documentation.

Source

fn get_plugins_dir(&self) -> String

Return the directory where the loadable modules (plugins) live.

See C++ wxStandardPaths::GetPluginsDir()’s documentation.

Source

fn get_resources_dir(&self) -> String

Return the directory where the application resource files are located.

See C++ wxStandardPaths::GetResourcesDir()’s documentation.

Source

fn get_temp_dir(&self) -> String

Return the directory for storing temporary files, for the current user.

See C++ wxStandardPaths::GetTempDir()’s documentation.

Source

fn get_user_config_dir(&self) -> String

Return the directory for the user config files.

See C++ wxStandardPaths::GetUserConfigDir()’s documentation.

Source

fn get_user_data_dir(&self) -> String

Return the directory for the user-dependent application data files:

See C++ wxStandardPaths::GetUserDataDir()’s documentation.

Source

fn get_user_local_data_dir(&self) -> String

Return the directory for user data files which shouldn’t be shared with the other machines.

See C++ wxStandardPaths::GetUserLocalDataDir()’s documentation.

Source

fn ignore_app_sub_dir(&self, subdir_pattern: &str)

MSW-specific function to customize application directory detection.

See C++ wxStandardPaths::IgnoreAppSubDir()’s documentation.

Source

fn ignore_app_build_sub_dirs(&self)

MSW-specific function to ignore all common build directories.

See C++ wxStandardPaths::IgnoreAppBuildSubDirs()’s documentation.

Source

fn set_install_prefix(&self, prefix: &str)

Lets wxStandardPaths know about the real program installation prefix on a Unix system.

See C++ wxStandardPaths::SetInstallPrefix()’s documentation.

Source

fn use_app_info(&self, info: c_int)

Controls what application information is used when constructing paths that should be unique to this program, such as the application data directory, the plugins directory on Unix, etc.

See C++ wxStandardPaths::UseAppInfo()’s documentation.

Source

fn get() -> StandardPathsIsOwned<false>

Returns reference to the unique global standard paths object.

See C++ wxStandardPaths::Get()’s documentation.

Source

fn msw_get_shell_dir(csidl: c_int) -> String

Returns location of Windows shell special folder.

See C++ wxStandardPaths::MSWGetShellDir()’s documentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§