PrusaSlicer-NonPlainar/xs/xsp/Config.xsp
2013-12-20 20:54:11 +01:00

20 lines
446 B
Plaintext

%module{Slic3r::XS};
%{
#include <myinit.h>
#include "Config.hpp"
%}
%name{Slic3r::Config} class DynamicConfig {
DynamicConfig();
~DynamicConfig();
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);
%{
%}
};