add NSVG utils into cmakelists

Move trunc to ImGuiWrapper
This commit is contained in:
Filip Sykala 2021-12-20 21:58:21 +01:00
parent 35b54eb455
commit 1259b878fb
5 changed files with 57 additions and 138 deletions

View file

@ -158,30 +158,6 @@ private:
// Rotation gizmo
GLGizmoRotate m_rotate_gizmo;
struct MyGrabber
{
GLModel shape;
int grab_id;
std::array<float, 4> color;
std::array<float, 4> hovered_color;
MyGrabber(GLModel shape,
int grab_id,
std::array<float, 4> color,
std::array<float, 4> hovered_color)
: shape(shape)
, grab_id(grab_id)
, color(color)
, hovered_color(hovered_color)
{}
void render() {
}
};
// Translate on surface of model
MyGrabber m_move_grabber;
// preview position
GLModel m_preview;
@ -234,8 +210,6 @@ public:
// TODO: move to file utils
static std::string get_file_name(const std::string &file_path);
// TODO: Move to imgui utils
std::string imgui_trunc(const std::string &text, float width);
};
} // namespace Slic3r::GUI