diff options
author | bubnikv <bubnikv@gmail.com> | 2017-10-17 21:00:15 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-10-17 21:00:15 +0300 |
commit | d9d6d996e96a223a33580a19299312eadc3e5e53 (patch) | |
tree | 5a8ed6cd9aa95e92e8bc4dfb74ec764f27eafac7 /xs/src/libslic3r/Utils.hpp | |
parent | af51220f3467d128075ee2fdc8bf5d091f4ea192 (diff) |
Utility functions to pass wxWidgets pointers from Perl to C++ code.
C++ var_dir / set_var_dir() interface to access the UI resources
from the C++ code.
Diffstat (limited to 'xs/src/libslic3r/Utils.hpp')
-rw-r--r-- | xs/src/libslic3r/Utils.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Utils.hpp b/xs/src/libslic3r/Utils.hpp index 45d1f2c51..79e1c2e2e 100644 --- a/xs/src/libslic3r/Utils.hpp +++ b/xs/src/libslic3r/Utils.hpp @@ -6,6 +6,13 @@ namespace Slic3r { extern void set_logging_level(unsigned int level); extern void trace(unsigned int level, const char *message); +// Set a path with GUI resource files. +void set_var_dir(const std::string &path); +// Return a path to the GUI resource files. +const std::string& var_dir(); +// Return a resource path for a file_name. +std::string var(const std::string &file_name); + extern std::string encode_path(const char *src); extern std::string decode_path(const char *src); extern std::string normalize_utf8_nfc(const char *src); |