41 lines
894 B
Plaintext
41 lines
894 B
Plaintext
|
%module{Slic3r::XS};
|
||
|
|
||
|
%{
|
||
|
#include <xsinit.h>
|
||
|
#include "slic3r/GUI/ProgressStatusBar.hpp"
|
||
|
%}
|
||
|
|
||
|
%name{Slic3r::GUI::ProgressStatusBar} class ProgressStatusBar {
|
||
|
ProgressStatusBar();
|
||
|
~ProgressStatusBar();
|
||
|
|
||
|
int GetProgress() const
|
||
|
%code%{ RETVAL=THIS->get_progress(); %};
|
||
|
|
||
|
void SetProgress(int val)
|
||
|
%code%{ THIS->set_progress(val); %};
|
||
|
|
||
|
void SetRange(int val = 100)
|
||
|
%code%{ THIS->set_range(val); %};
|
||
|
|
||
|
void ShowProgress(bool show)
|
||
|
%code%{ THIS->show_progress(show); %};
|
||
|
|
||
|
void StartBusy(int val = 100)
|
||
|
%code%{ THIS->start_busy(val); %};
|
||
|
|
||
|
void StopBusy()
|
||
|
%code%{ THIS->stop_busy(); %};
|
||
|
|
||
|
bool IsBusy() const
|
||
|
%code%{ RETVAL=THIS->is_busy(); %};
|
||
|
|
||
|
void Run(int rate)
|
||
|
%code%{ THIS->run(rate); %};
|
||
|
|
||
|
void Embed();
|
||
|
void SetStatusText(std::string txt);
|
||
|
int GetId();
|
||
|
int GetProgId();
|
||
|
|
||
|
};
|