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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-02-15 17:35:32 +0300
committerVojtech Kral <vojtech@kral.hk>2019-02-20 18:12:41 +0300
commit2de814d4787cdd12818024addefcc2cd3d71b847 (patch)
treeab8a0b4491ee3ba3ed389c3ebc8812d16fe1feb5 /src/slic3r/GUI/ImGuiWrapper.hpp
parent3901ac47d1d3c09d8add5f63f4688c44be2111fc (diff)
Imgui: Implement keyboard input, fix #1797
Diffstat (limited to 'src/slic3r/GUI/ImGuiWrapper.hpp')
-rw-r--r--src/slic3r/GUI/ImGuiWrapper.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slic3r/GUI/ImGuiWrapper.hpp b/src/slic3r/GUI/ImGuiWrapper.hpp
index a4f5a8976..b0b5cc858 100644
--- a/src/slic3r/GUI/ImGuiWrapper.hpp
+++ b/src/slic3r/GUI/ImGuiWrapper.hpp
@@ -10,6 +10,7 @@
class wxString;
class wxMouseEvent;
+class wxKeyEvent;
namespace Slic3r {
@@ -37,6 +38,7 @@ public:
void set_display_size(float w, float h);
void set_style_scaling(float scaling);
bool update_mouse_data(wxMouseEvent &evt);
+ bool update_key_data(wxKeyEvent &evt);
void new_frame();
void render();
@@ -65,12 +67,18 @@ public:
bool want_any_input() const;
private:
+ std::string clipboard_text;
+
void init_default_font(float scaling);
void create_device_objects();
void create_fonts_texture();
+ void init_input();
void render_draw_data(ImDrawData *draw_data);
void destroy_device_objects();
void destroy_fonts_texture();
+
+ static const char* clipboard_get(void* user_data);
+ static void clipboard_set(void* user_data, const char* text);
};