~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to xs/xsp/Print.xsp

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%module{Slic3r::XS};
 
2
 
 
3
%{
 
4
#include <myinit.h>
 
5
#include "Print.hpp"
 
6
%}
 
7
 
 
8
%name{Slic3r::Print::State} class PrintState {
 
9
    PrintState();
 
10
    ~PrintState();
 
11
    bool started(PrintStep step) const;
 
12
    bool done(PrintStep step) const;
 
13
    void set_started(PrintStep step);
 
14
    void set_done(PrintStep step);
 
15
    void invalidate(PrintStep step);
 
16
    void invalidate_all();
 
17
%{
 
18
 
 
19
%}
 
20
};
 
21
 
 
22
%package{Slic3r::Print::State};
 
23
%{
 
24
 
 
25
IV
 
26
_constant()
 
27
  ALIAS:
 
28
    STEP_INIT_EXTRUDERS     = psInitExtruders
 
29
    STEP_SLICE              = psSlice
 
30
    STEP_PERIMETERS         = psPerimeters
 
31
    STEP_PREPARE_INFILL     = prPrepareInfill
 
32
    STEP_INFILL             = psInfill
 
33
    STEP_SUPPORTMATERIAL    = psSupportMaterial
 
34
    STEP_SKIRT              = psSkirt
 
35
    STEP_BRIM               = psBrim
 
36
  PROTOTYPE:
 
37
  CODE:
 
38
    RETVAL = ix;
 
39
  OUTPUT: RETVAL
 
40
 
 
41
%}
 
42