GUI.xsp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. %module{Slic3r::XS};
  2. %{
  3. #include <xsinit.h>
  4. #include "slic3r/GUI/GUI.hpp"
  5. %}
  6. %package{Slic3r::GUI};
  7. void disable_screensaver()
  8. %code{% Slic3r::GUI::disable_screensaver(); %};
  9. void enable_screensaver()
  10. %code{% Slic3r::GUI::enable_screensaver(); %};
  11. std::vector<std::string> scan_serial_ports()
  12. %code{% RETVAL=Slic3r::GUI::scan_serial_ports(); %};
  13. bool debugged()
  14. %code{% RETVAL=Slic3r::GUI::debugged(); %};
  15. void break_to_debugger()
  16. %code{% Slic3r::GUI::break_to_debugger(); %};
  17. void set_wxapp(SV *ui)
  18. %code%{ Slic3r::GUI::set_wxapp((wxApp*)wxPli_sv_2_object(aTHX_ ui, "Wx::App")); %};
  19. void set_main_frame(SV *ui)
  20. %code%{ Slic3r::GUI::set_main_frame((wxFrame*)wxPli_sv_2_object(aTHX_ ui, "Wx::Frame")); %};
  21. void set_tab_panel(SV *ui)
  22. %code%{ Slic3r::GUI::set_tab_panel((wxNotebook*)wxPli_sv_2_object(aTHX_ ui, "Wx::Notebook")); %};
  23. void add_debug_menu(SV *ui)
  24. %code%{ Slic3r::GUI::add_debug_menu((wxMenuBar*)wxPli_sv_2_object(aTHX_ ui, "Wx::MenuBar")); %};
  25. void create_preset_tab(const char *name)
  26. %code%{ Slic3r::GUI::create_preset_tab(name); %};