Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
resource.h File Reference

Inkscape::IO::Resource - simple resource API. More...

Go to the source code of this file.

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 
namespace  Inkscape::IO
 Low-level IO code.
 
namespace  Inkscape::IO::Resource
 

Enumerations

enum  Inkscape::IO::Resource::Type {
  Inkscape::IO::Resource::ATTRIBUTES , Inkscape::IO::Resource::EXAMPLES , Inkscape::IO::Resource::EXTENSIONS , Inkscape::IO::Resource::FONTS ,
  Inkscape::IO::Resource::FONTCOLLECTIONS , Inkscape::IO::Resource::ICONS , Inkscape::IO::Resource::KEYS , Inkscape::IO::Resource::MARKERS ,
  Inkscape::IO::Resource::NONE , Inkscape::IO::Resource::PAINT , Inkscape::IO::Resource::PALETTES , Inkscape::IO::Resource::SCREENS ,
  Inkscape::IO::Resource::TEMPLATES , Inkscape::IO::Resource::TUTORIALS , Inkscape::IO::Resource::SYMBOLS , Inkscape::IO::Resource::FILTERS ,
  Inkscape::IO::Resource::THEMES , Inkscape::IO::Resource::UIS , Inkscape::IO::Resource::DOCS
}
 
enum  Inkscape::IO::Resource::Domain {
  Inkscape::IO::Resource::SYSTEM , Inkscape::IO::Resource::CREATE , Inkscape::IO::Resource::CACHE , Inkscape::IO::Resource::SHARED ,
  Inkscape::IO::Resource::USER
}
 

Functions

Util::ptr_shared Inkscape::IO::Resource::get_path (Domain domain, Type type, char const *filename, char const *extra)
 
std::string Inkscape::IO::Resource::get_path_string (Domain domain, Type type, char const *filename, char const *extra)
 
std::string Inkscape::IO::Resource::get_filename (Type type, char const *filename, bool localized, bool silent)
 
std::string Inkscape::IO::Resource::get_filename (std::string const &path, std::string const &filename)
 
std::vector< std::string > Inkscape::IO::Resource::get_filenames (Type type, std::vector< const char * > const &extensions, std::vector< const char * > const &exclusions)
 
std::vector< std::string > Inkscape::IO::Resource::get_filenames (Domain domain, Type type, std::vector< const char * > const &extensions, std::vector< const char * > const &exclusions)
 
std::vector< std::string > Inkscape::IO::Resource::get_filenames (std::string path, std::vector< const char * > const &extensions, std::vector< const char * > const &exclusions)
 
std::vector< std::string > Inkscape::IO::Resource::get_foldernames (Type type, std::vector< const char * > const &exclusions)
 
std::vector< std::string > Inkscape::IO::Resource::get_foldernames (Domain domain, Type type, std::vector< const char * > const &exclusions)
 
std::vector< std::string > Inkscape::IO::Resource::get_foldernames (std::string const &path, std::vector< const char * > const &exclusions)
 
void Inkscape::IO::Resource::get_foldernames_from_path (std::vector< std::string > &folders, std::string const &path, std::vector< const char * > const &exclusions)
 
void Inkscape::IO::Resource::get_filenames_from_path (std::vector< std::string > &files, std::string const &path, std::vector< const char * > const &extensions, std::vector< const char * > const &exclusions)
 
std::string Inkscape::IO::Resource::profile_path ()
 
std::string Inkscape::IO::Resource::profile_path (const char *filename)
 Get, or guess, or decide the location where the preferences.xml file should be located.
 
std::string Inkscape::IO::Resource::shared_path ()
 
std::string Inkscape::IO::Resource::shared_path (const char *filename)
 
std::string Inkscape::IO::Resource::homedir_path ()
 
std::string Inkscape::IO::Resource::log_path (const char *filename)
 

Detailed Description

Inkscape::IO::Resource - simple resource API.

Definition in file resource.h.