mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Ported Slic3r::Print::State to XS
This commit is contained in:
1 parent
d2295cdf70
commit
a6a6a6888b
9 files changed
+124
-45
No files matched your search
@@ -0,0 +1,41 @@
|
||||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "Print.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::Print::State} class PrintState {
|
||||
PrintState();
|
||||
~PrintState();
|
||||
bool started(PrintStep step) const;
|
||||
bool done(PrintStep step) const;
|
||||
void set_started(PrintStep step);
|
||||
void set_done(PrintStep step);
|
||||
void invalidate(PrintStep step);
|
||||
%{
|
||||
|
||||
%}
|
||||
};
|
||||
|
||||
%package{Slic3r::Print::State};
|
||||
%{
|
||||
|
||||
IV
|
||||
_constant()
|
||||
ALIAS:
|
||||
STEP_INIT_EXTRUDERS = psInitExtruders
|
||||
STEP_SLICE = psSlice
|
||||
STEP_PERIMETERS = psPerimeters
|
||||
STEP_PREPARE_INFILL = prPrepareInfill
|
||||
STEP_INFILL = psInfill
|
||||
STEP_SUPPORTMATERIAL = psSupportMaterial
|
||||
STEP_SKIRT = psSkirt
|
||||
STEP_BRIM = psBrim
|
||||
PROTOTYPE:
|
||||
CODE:
|
||||
RETVAL = ix;
|
||||
OUTPUT: RETVAL
|
||||
|
||||
%}
|
||||
|
||||
Reference in new issue
Block a user