Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GUI_BackgroundSlicingProcess.xsp « xsp « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8452b8c3144ce088391ff644f1f006efba75652c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

%module{Slic3r::XS};

%{
#include <xsinit.h>
#include "slic3r/GUI/BackgroundSlicingProcess.hpp"
%}

%name{Slic3r::GUI::BackgroundSlicingProcess} class BackgroundSlicingProcess {
    BackgroundSlicingProcess();
    ~BackgroundSlicingProcess();

    void set_print(Print *print);
    void set_gcode_preview_data(GCodePreviewData *gpd);
    void set_sliced_event(int event_id);
    void set_finished_event(int event_id);

    void set_output_path(const char *path);
    bool start();
    bool stop();
    bool apply_config(DynamicPrintConfig *config) 
        %code%{ RETVAL = THIS->apply_config(*config); %};

    bool running();
};