%module{Slic3r::XS}; %{ #include #include "slic3r/GUI/GUI.hpp" %} %package{Slic3r::GUI}; void disable_screensaver() %code{% Slic3r::GUI::disable_screensaver(); %}; void enable_screensaver() %code{% Slic3r::GUI::enable_screensaver(); %}; std::vector scan_serial_ports() %code{% RETVAL=Slic3r::GUI::scan_serial_ports(); %}; bool debugged() %code{% RETVAL=Slic3r::GUI::debugged(); %}; void break_to_debugger() %code{% Slic3r::GUI::break_to_debugger(); %}; void set_wxapp(SV *ui) %code%{ Slic3r::GUI::set_wxapp((wxApp*)wxPli_sv_2_object(aTHX_ ui, "Wx::App")); %}; void set_main_frame(SV *ui) %code%{ Slic3r::GUI::set_main_frame((wxFrame*)wxPli_sv_2_object(aTHX_ ui, "Wx::Frame")); %}; void set_tab_panel(SV *ui) %code%{ Slic3r::GUI::set_tab_panel((wxNotebook*)wxPli_sv_2_object(aTHX_ ui, "Wx::Notebook")); %}; void add_debug_menu(SV *ui, int event_language_change) %code%{ Slic3r::GUI::add_debug_menu((wxMenuBar*)wxPli_sv_2_object(aTHX_ ui, "Wx::MenuBar"), event_language_change); %}; void create_preset_tabs(PresetBundle *preset_bundle, AppConfig *app_config, bool no_controller, bool is_disabled_button_browse, bool is_user_agent, int event_value_change, int event_presets_changed, int event_button_browse, int event_button_test) %code%{ Slic3r::GUI::create_preset_tabs(preset_bundle, app_config, no_controller, is_disabled_button_browse, is_user_agent, event_value_change, event_presets_changed, event_button_browse, event_button_test); %}; Ref get_preset_tab(char *name) %code%{ RETVAL=Slic3r::GUI::get_preset_tab_iface(name); %}; bool load_language() %code%{ RETVAL=Slic3r::GUI::load_language(); %};