mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Expose static PrintConfig objects to Perl and test apply()
This commit is contained in:
1 parent
56d4da2ac7
commit
e0c0a42a8b
5 files changed
+35
-6
No files matched your search
@@ -17,3 +17,18 @@
|
||||
|
||||
%}
|
||||
};
|
||||
|
||||
%name{Slic3r::Config::Print} class PrintConfig {
|
||||
PrintConfig();
|
||||
~PrintConfig();
|
||||
SV* get(t_config_option_key opt_key);
|
||||
void set(t_config_option_key opt_key, SV* value);
|
||||
void set_deserialize(t_config_option_key opt_key, std::string str);
|
||||
std::string serialize(t_config_option_key opt_key);
|
||||
float get_abs_value(t_config_option_key opt_key);
|
||||
void apply_dynamic(DynamicPrintConfig* other, bool ignore_nonexistent = false)
|
||||
%code{% THIS->apply(*other, ignore_nonexistent); %};
|
||||
%{
|
||||
|
||||
%}
|
||||
};
|
||||
Reference in new issue
Block a user