OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
ImGuiWrapper.cpp File Reference
#include "ImGuiWrapper.hpp"
#include <algorithm>
#include <cstdint>
#include <cassert>
#include <cstdio>
#include "libslic3r/Technologies.hpp"
#include <map>
#include <string>
#include <imgui.h>
#include "libslic3r/GCode/ThumbnailData.hpp"
#include <cstdlib>
#include <utility>
#include <string_view>
#include <cstring>
#include <chrono>
#include "libslic3r/Point.hpp"
#include <functional>
#include <optional>
#include <limits>
#include "libslic3r/Polygon.hpp"
#include "libslic3r/BoundingBox.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
#include "libslic3r/Exception.hpp"
#include <tuple>
#include <vector>
#include <cmath>
#include <stdexcept>
#include <boost/format.hpp>
#include <boost/log/trivial.hpp>
#include <boost/filesystem.hpp>
#include <wx/colour.h>
#include <wx/utils.h>
#include <wx/dataobj.h>
#include <wx/string.h>
#include <wx/event.h>
#include <wx/clipbrd.h>
#include <wx/debug.h>
#include <glad/gl.h>
#include <imgui/imgui_internal.h>
#include "libslic3r/libslic3r.h"
#include <libslic3r/ClipperUtils.hpp>
#include "libslic3r/Utils.hpp"
#include "libslic3r/Color.hpp"
#include "3DScene.hpp"
#include "GUI.hpp"
#include "I18N.hpp"
#include "Search.hpp"
#include "BitmapCache.hpp"
#include "GUI_App.hpp"
#include "KeyChord.hpp"
#include <nanosvg/nanosvg.h>
#include <nanosvg/nanosvgrast.h>
#include "OpenGLManager.hpp"

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::GUI

Macros

#define IMGUI_DEFINE_MATH_OPERATORS

Functions

bool Slic3r::GUI::get_data_from_svg (const std::string &filename, unsigned int max_size_px, ThumbnailData &thumbnail_data)
bool Slic3r::GUI::slider_behavior (ImGuiID id, const ImRect &region, const ImS32 v_min, const ImS32 v_max, ImS32 *out_value, ImRect *out_handle, ImGuiSliderFlags flags, const int fixed_value, const ImVec4 &fixed_rect)
bool Slic3r::GUI::button_with_pos (ImTextureID user_texture_id, const ImVec2 &size, const ImVec2 &pos, const ImVec2 &uv0, const ImVec2 &uv1, int frame_padding, const ImVec4 &bg_col, const ImVec4 &tint_col, const ImVec2 &margin)
static bool Slic3r::GUI::image_button_ex (ImGuiID id, ImTextureID texture_id, const ImVec2 &size, const ImVec2 &uv0, const ImVec2 &uv1, const ImVec2 &padding, const ImVec4 &bg_col, const ImVec4 &tint_col, ImGuiButtonFlags flags)
static void Slic3r::GUI::scroll_up ()
static void Slic3r::GUI::scroll_down ()
static void Slic3r::GUI::process_mouse_wheel (int &mouse_wheel)
static bool Slic3r::GUI::selectable (const char *label, bool selected, ImGuiSelectableFlags flags=0, const ImVec2 &size_arg=ImVec2(0, 0), bool *out_hovered=nullptr)
bool Slic3r::GUI::begin_menu (const char *label, bool enabled)
void Slic3r::GUI::end_menu ()
bool Slic3r::GUI::menu_item_with_icon (const char *label, const char *shortcut, ImVec2 icon_size, ImU32 icon_color, bool selected, bool enabled, bool *hovered)
static void Slic3r::GUI::scroll_y (int hover_id)
static void Slic3r::GUI::process_key_down (ImGuiKey imgui_key, std::function< void()> f)
static bool Slic3r::GUI::drawn_last_frame (const ImGuiWindow *popup)
template<typename T, typename Func>
static bool Slic3r::GUI::input_optional (std::optional< T > &v, Func &f, std::function< bool(const T &)> is_default, const T &def_val)

Variables

static const std::map< const wchar_t, std::string > Slic3r::GUI::font_icons
static const std::map< const wchar_t, std::string > Slic3r::GUI::font_icons_large
static const std::map< const wchar_t, std::string > Slic3r::GUI::font_icons_extra_large
static const ImWchar Slic3r::GUI::ranges_language_independent []
static bool Slic3r::GUI::m_is_dark_mode = false

Macro Definition Documentation

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS