#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ImGuiWrapper.hpp>
Classes | |
| struct | LastSliderStatus |
Public Member Functions | |
| ImGuiWrapper () | |
| ~ImGuiWrapper () | |
| void | read_glsl_version () |
| void | set_language (const std::string &language) |
| void | set_display_size (float w, float h) |
| void | set_scaling (float font_size, float scale_style, float scale_both) |
| bool | update_mouse_data (wxMouseEvent &evt) |
| bool | update_key_data (wxKeyEvent &evt) |
| float | get_font_size () const |
| float | get_style_scaling () const |
| const ImWchar * | get_glyph_ranges () const |
| void | new_frame () |
| ImDrawData * | end_frame () |
| void | render (ImDrawData *draw_data) |
| float | scaled (float x) const |
| ImVec2 | scaled (float x, float y) const |
| ImVec2 | calc_button_size (const wxString &text, const ImVec2 &button_size=ImVec2(0, 0)) const |
| float | find_widest_text (std::vector< wxString > &text_list) |
| ImVec2 | get_item_spacing () const |
| float | get_slider_float_height () const |
| const LastSliderStatus & | get_last_slider_status () const |
| LastSliderStatus & | get_last_slider_status () |
| void | set_next_window_pos (float x, float y, int flag, float pivot_x=0.0f, float pivot_y=0.0f) |
| void | set_next_window_bg_alpha (float alpha) |
| void | set_next_window_size (float x, float y, ImGuiCond cond) |
| bool | bbl_combo_with_filter (const char *label, const std::string &preview_value, const std::vector< std::string > &all_items, std::vector< int > *filtered_items_idx, bool *is_filtered, float item_height=0.0f) |
| bool | bbl_input_double (const wxString &label, const double &value, const std::string &format="%0.2f") |
| bool | bbl_slider_float (const std::string &label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f, bool clamp=true, const wxString &tooltip={}) |
| bool | bbl_slider_float_style (const std::string &label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f, bool clamp=true, const wxString &tooltip={}) |
| bool | begin (const std::string &name, int flags=0) |
| bool | begin (const wxString &name, int flags=0) |
| bool | begin (const std::string &name, bool *close, int flags=0) |
| bool | begin (const wxString &name, bool *close, int flags=0) |
| void | end () |
| bool | button (const wxString &label, const wxString &tooltip={}) |
| bool | bbl_button (const wxString &label, const wxString &tooltip={}) |
| bool | button (const wxString &label, float width, float height) |
| bool | button (const wxString &label, const ImVec2 &size, bool enable) |
| bool | glyph_button (wchar_t icon_char, ImVec2 icon_size) |
| bool | radio_button (const wxString &label, bool active) |
| bool | input_double (const std::string &label, const double &value, const std::string &format="%.3f") |
| bool | input_double (const wxString &label, const double &value, const std::string &format="%.3f") |
| bool | input_vec3 (const std::string &label, const Vec3d &value, float width, const std::string &format="%.3f") |
| bool | checkbox (const wxString &label, bool &value) |
| bool | bbl_checkbox (const wxString &label, bool &value) |
| bool | bbl_radio_button (const char *label, bool active) |
| bool | bbl_sliderin (const char *label, int *v, int v_min, int v_max, const char *format="%d", ImGuiSliderFlags flags=0) |
| void | warning_text (const char *all_text) |
| void | warning_text (const wxString &all_text) |
| void | text_wrapped (const char *label, float wrap_width) |
| void | text_wrapped (const std::string &label, float wrap_width) |
| void | text_wrapped (const wxString &label, float wrap_width) |
| void | tooltip (const char *label, float wrap_width) |
| void | tooltip (const std::string &label, float wrap_width) |
| void | tooltip (const wxString &label, float wrap_width) |
| void | filament_group (const std::string &filament_type, const char *hex_color, unsigned char filament_id, float align_width) |
| std::tuple< ImVec2, bool > | calculate_filament_group_text_size (const std::string &filament_type) |
| void | sub_title (const std::string &label) |
| bool | slider_float (const char *label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f, bool clamp=true) |
| bool | slider_float (const std::string &label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f, bool clamp=true) |
| bool | slider_float (const wxString &label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f, bool clamp=true) |
| bool | image_button (ImTextureID user_texture_id, const ImVec2 &size, const ImVec2 &uv0=ImVec2(0.0, 0.0), const ImVec2 &uv1=ImVec2(1.0, 1.0), int frame_padding=-1, const ImVec4 &bg_col=ImVec4(0.0, 0.0, 0.0, 0.0), const ImVec4 &tint_col=ImVec4(1.0, 1.0, 1.0, 1.0), ImGuiButtonFlags flags=0) |
| bool | image_button (const wchar_t icon, const wxString &tooltip=L"") |
| bool | combo (const std::string &label, const std::vector< std::string > &options, int &selection, ImGuiComboFlags flags=0, float label_width=0.0f, float item_width=0.0f) |
| bool | combo (const wxString &label, const std::vector< std::string > &options, int &selection, ImGuiComboFlags flags=0, float label_width=0.0f, float item_width=0.0f) |
| bool | undo_redo_list (const ImVec2 &size, const bool is_undo, bool(*items_getter)(const bool, int, const char **), int &hovered, int &selected, int &mouse_wheel) |
| void | search_list (const ImVec2 &size, bool(*items_getter)(int, const char **label, const char **tooltip), char *search_str, Search::OptionViewParameters &view_params, int &selected, bool &edited, int &mouse_wheel, bool is_localized) |
| void | bold_text (const std::string &str) |
| void | title (const std::string &str) |
| void | title (const std::string &str, bool suppress_seperator) |
| const std::vector< std::string > | get_fonts_names () const |
| bool | push_bold_font () |
| bool | pop_bold_font () |
| bool | push_font_by_name (std::string font_name) |
| bool | pop_font_by_name (std::string font_name) |
| void | load_fonts_texture () |
| void | destroy_fonts_texture () |
| void | disabled_begin (bool disabled) |
| void | disabled_end () |
| bool | want_mouse () const |
| bool | want_keyboard () const |
| bool | want_text_input () const |
| bool | want_any_input () const |
| bool | text_input_active () const |
| bool | modal_popup_open () const |
| bool | popup_open () const |
| void | close_top_popup () |
| bool | owns_key (const KeyChord &chord) const |
| bool | item_held () const |
| bool | owns_keyboard () const |
| bool | claim_key_event (const wxKeyEvent &evt) |
| void | forget_key_claims () |
| bool | slider_optional_float (const char *label, std::optional< float > &v, float v_min, float v_max, const char *format="%.3f", float power=1.0f, bool clamp=true, const wxString &tooltip={}, bool show_edit_btn=true, float def_val=.0f) |
| bool | slider_optional_int (const char *label, std::optional< int > &v, int v_min, int v_max, const char *format="%.3f", float power=1.0f, bool clamp=true, const wxString &tooltip={}, bool show_edit_btn=true, int def_val=0) |
| bool | requires_extra_frame () const |
| void | set_requires_extra_frame () |
| void | reset_requires_extra_frame () |
| void | request_frames_while_held () |
| void | disable_background_fadeout_animation () |
| ImFontAtlasCustomRect * | GetTextureCustomRect (const wchar_t &tex_id) |
| bool | display_initialized () const |
Static Public Member Functions | |
| static ImGuiID | draw_data_signature (const ImDrawData *draw_data) |
| static ImVec2 | calc_text_size (std::string_view text, bool hide_text_after_double_hash=false, float wrap_width=-1.0f) |
| Extend ImGui::CalcTextSize to use string_view. | |
| static ImVec2 | calc_text_size (const std::string &text, bool hide_text_after_double_hash=false, float wrap_width=-1.0f) |
| static ImVec2 | calc_text_size (const wxString &text, bool hide_text_after_double_hash=false, float wrap_width=-1.0f) |
| static ImVec4 | to_ImVec4 (const ColorRGB &color) |
| static void | text (const char *label) |
| static void | text (const std::string &label) |
| static void | text (const wxString &label) |
| static void | text_colored (const ImVec4 &color, const char *label) |
| static void | text_colored (const ImVec4 &color, const std::string &label) |
| static void | text_colored (const ImVec4 &color, const wxString &label) |
| static bool | input_optional_int (const char *label, std::optional< int > &v, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0, int def_val=0) |
| static bool | input_optional_float (const char *label, std::optional< float > &v, float step=0.0f, float step_fast=0.0f, const char *format="%.3f", ImGuiInputTextFlags flags=0, float def_val=.0f) |
| static bool | drag_optional_float (const char *label, std::optional< float > &v, float v_speed, float v_min, float v_max, const char *format, float power, float def_val=.0f) |
| static std::optional< ImVec2 > | change_window_position (const char *window_name, bool try_to_fix) |
| Change position of imgui window. | |
| static void | left_inputs () |
| Use ImGui internals to unactivate (lose focus) in input. When input is activ it can't change value by application. | |
| static std::string | trunc (const std::string &text, float width, const char *tail=" ..") |
| Truncate text by ImGui draw function to specific width NOTE 1: ImGui must be initialized NOTE 2: Calculation for actual acive imgui font. | |
| static void | escape_double_hash (std::string &text) |
| Escape ## in data by add space between hashes Needed when user written text is visualized by ImGui. | |
| static ImVec2 | suggest_location (const ImVec2 &dialog_size, const Slic3r::Polygon &interest, const ImVec2 &canvas_size) |
| Suggest loacation of dialog window, dependent on actual visible thing on platter like Gizmo menu size, notifications, ... To be near of polygon interest and not over it. And also not out of visible area. | |
| static void | draw (const Polygon &polygon, ImDrawList *draw_list=ImGui::GetOverlayDrawList(), ImU32 color=ImGui::GetColorU32(COL_ORANGE_LIGHT), float thickness=3.f) |
| Visualization of polygon. | |
| static void | draw_cross_hair (const ImVec2 &position, float radius=16.f, ImU32 color=ImGui::GetColorU32(ImVec4(1.f, 1.f, 1.f,.75f)), int num_segments=0, float thickness=4.f) |
| Draw symbol of cross hair. | |
| static void | draw_gradient_ramp (ImDrawList *draw_list, const ImVec2 &top_left, const ImVec2 &bottom_right, const std::vector< wxColour > &ramp) |
| Fill a rect with a filament gradient ramp, one band per pixel row, ramp.front() along the bottom edge. Bands rather than one interpolated rect, because the ramp follows the slot's gradient curve and ImGui's corner interpolation could only draw a straight fade. | |
| static bool | contain_all_glyphs (const ImFont *font, const std::string &text) |
| Check that font ranges contain all chars in string (rendered Unicodes are stored in GlyphRanges). | |
| static bool | is_chars_in_ranges (const ImWchar *ranges, const char *chars_ptr) |
| static bool | is_char_in_ranges (const ImWchar *ranges, unsigned int letter) |
| static ImU32 | to_ImU32 (const ColorRGBA &color) |
| static ImVec4 | to_ImVec4 (const ColorRGBA &color) |
| static ColorRGBA | from_ImU32 (const ImU32 &color) |
| static ColorRGBA | from_ImVec4 (const ImVec4 &color) |
| static void | on_change_color_mode (bool is_dark) |
| static void | push_toolbar_style (const float scale) |
| static void | pop_toolbar_style () |
| static void | push_menu_style (const float scale) |
| static void | pop_menu_style () |
| static void | push_common_window_style (const float scale) |
| static void | pop_common_window_style () |
| static void | push_confirm_button_style () |
| static void | pop_confirm_button_style () |
| static void | push_cancel_button_style () |
| static void | pop_cancel_button_style () |
| static void | push_button_disable_style () |
| static void | pop_button_disable_style () |
| static void | push_combo_style (const float scale) |
| static void | pop_combo_style () |
| static void | push_radio_style (const float scale) |
| static void | pop_radio_style () |
Static Public Attributes | |
| static const ImVec4 | COL_GREY_DARK = { 0.333f, 0.333f, 0.333f, 1.0f } |
| static const ImVec4 | COL_GREY_LIGHT = { 0.4f, 0.4f, 0.4f, 1.0f } |
| static const ImVec4 | COL_ORANGE_DARK = { 0.757f, 0.404f, 0.216f, 1.0f } |
| static const ImVec4 | COL_ORANGE_LIGHT = to_ImVec4(ColorRGBA::ORANGE()) |
| static const ImVec4 | COL_WINDOW_BACKGROUND = { 0.1f, 0.1f, 0.1f, 0.8f } |
| static const ImVec4 | COL_BUTTON_BACKGROUND = COL_ORANGE_DARK |
| static const ImVec4 | COL_BUTTON_HOVERED = COL_ORANGE_LIGHT |
| static const ImVec4 | COL_BUTTON_ACTIVE = COL_BUTTON_HOVERED |
| static const ImVec4 | COL_RED = ImVec4(1.0f, 0.0f, 0.0f, 1.0f) |
| static const ImVec4 | COL_GREEN = ImVec4(0.0f, 1.0f, 0.0f, 1.0f) |
| static const ImVec4 | COL_BLUE = ImVec4(0.0f, 0.0f, 1.0f, 1.0f) |
| static const ImVec4 | COL_BLUE_LIGHT = ImVec4(0.122f, 0.557f, 0.918f, 1.0f) |
| static const ImVec4 | COL_GREEN_LIGHT = { 0.f, 156 / 255.f, 136 / 255.f, 0.25f } |
| static const ImVec4 | COL_HOVER = { 0.933f, 0.933f, 0.933f, 1.0f } |
| static const ImVec4 | COL_ACTIVE = { 0.675f, 0.675f, 0.675f, 1.0f } |
| static const ImVec4 | COL_TITLE_BG = { 0.745f, 0.745f, 0.745f, 1.0f } |
| static const ImVec4 | COL_WINDOW_BG = { 1.000f, 1.000f, 1.000f, 1.0f } |
| static const ImVec4 | COL_WINDOW_BG_DARK = { 45 / 255.f, 45 / 255.f, 49 / 255.f, 1.f } |
| static const ImVec4 | COL_TOOLBAR_BG = { 250 / 255.f, 250 / 255.f, 250 / 255.f, 1.f } |
| static const ImVec4 | COL_TOOLBAR_BG_DARK = { 57 / 255.f, 60 / 255.f, 66 / 255.f, 1.f } |
| static const ImVec4 | COL_SEPARATOR = { 0.93f, 0.93f, 0.93f, 1.0f } |
| static const ImVec4 | COL_SEPARATOR_DARK = { 0.24f, 0.24f, 0.27f, 1.0f } |
| static const ImVec4 | COL_ORCA = to_ImVec4(ColorRGBA::ORCA()) |
| static const ImVec4 | COL_ORCA_DARK = { 0.f , 103 / 255.f, 91 / 255.f, 1.f } |
| static const ImVec4 | COL_ORCA_HOVER = { 38 / 255.f, 166 / 255.f, 154 / 255.f, 1.f } |
| static const ImVec4 | COL_ORCA_HOVER_DARK = { 0.f , 129 / 255.f, 114 / 255.f, 1.f } |
| static const ImVec4 | COL_MODIFIED = { 253.f / 255.f, 111.f / 255.f, 40.f / 255.f, 1} |
| static const ImVec4 | COL_WARNING = to_ImVec4(ColorRGB::WARNING()) |
| static int | TOOLBAR_WINDOW_FLAGS |
Private Member Functions | |
| void | init_font (bool compress) |
| void | init_input () |
| void | init_style () |
| void | render_draw_data (ImDrawData *draw_data) |
| void | destroy_font () |
| std::vector< unsigned char > | load_svg (const std::string &bitmap_name, unsigned target_width, unsigned target_height, unsigned *outwidth, unsigned *outheight) |
Static Private Member Functions | |
| static const char * | clipboard_get (void *user_data) |
| static void | clipboard_set (void *user_data, const char *text) |
Private Attributes | |
| const ImWchar * | m_glyph_ranges { nullptr } |
| const ImWchar * | m_glyph_basic_ranges { nullptr } |
| bool | m_font_cjk { false } |
| bool | m_is_korean { false } |
| float | m_font_size { 18.0 } |
| unsigned | m_font_texture { 0 } |
| unsigned | m_font_another_texture { 0 } |
| float | m_style_scaling { 1.0 } |
| unsigned | m_mouse_buttons { 0 } |
| bool | m_disabled { false } |
| bool | m_new_frame_open { false } |
| std::chrono::steady_clock::time_point | m_last_frame_time {} |
| std::map< wchar_t, int > | m_custom_glyph_rects_ids |
| std::string | m_clipboard_text |
| std::map< int, bool > | m_key_claims |
| std::optional< bool > | m_char_claim |
| LastSliderStatus | m_last_slider_status |
| ImFont * | default_font = nullptr |
| ImFont * | bold_font = nullptr |
| std::map< std::string, ImFont * > | im_fonts_map |
| std::vector< std::string > | m_fonts_names |
| Slic3r::GUI::ImGuiWrapper::ImGuiWrapper | ( | ) |
References init_input(), and init_style().
Referenced by clipboard_get().
| Slic3r::GUI::ImGuiWrapper::~ImGuiWrapper | ( | ) |
References destroy_font().
| bool Slic3r::GUI::ImGuiWrapper::bbl_button | ( | const wxString & | label, |
| const wxString & | tooltip = {} ) |
References Slic3r::GUI::into_u8(), and tooltip().
Referenced by Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), and Slic3r::GUI::IMSlider::render_input_custom_gcode().
| bool Slic3r::GUI::ImGuiWrapper::bbl_checkbox | ( | const wxString & | label, |
| bool & | value ) |
References Slic3r::GUI::into_u8().
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| bool Slic3r::GUI::ImGuiWrapper::bbl_combo_with_filter | ( | const char * | label, |
| const std::string & | preview_value, | ||
| const std::vector< std::string > & | all_items, | ||
| std::vector< int > * | filtered_items_idx, | ||
| bool * | is_filtered, | ||
| float | item_height = 0.0f ) |
References button(), ImRect, Slic3r::GUI::into_u8(), m_style_scaling, and style.
| bool Slic3r::GUI::ImGuiWrapper::bbl_input_double | ( | const wxString & | label, |
| const double & | value, | ||
| const std::string & | format = "%0.2f" ) |
References Slic3r::GUI::format().
| bool Slic3r::GUI::ImGuiWrapper::bbl_radio_button | ( | const char * | label, |
| bool | active ) |
| bool Slic3r::GUI::ImGuiWrapper::bbl_slider_float | ( | const std::string & | label, |
| float * | v, | ||
| float | v_min, | ||
| float | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true, | ||
| const wxString & | tooltip = {} ) |
References Slic3r::GUI::format(), Slic3r::GUI::into_u8(), m_last_slider_status, style, text(), and tooltip().
Referenced by bbl_slider_float_style().
| bool Slic3r::GUI::ImGuiWrapper::bbl_slider_float_style | ( | const std::string & | label, |
| float * | v, | ||
| float | v_min, | ||
| float | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true, | ||
| const wxString & | tooltip = {} ) |
References bbl_slider_float(), Slic3r::GUI::format(), and tooltip().
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| bool Slic3r::GUI::ImGuiWrapper::bbl_sliderin | ( | const char * | label, |
| int * | v, | ||
| int | v_min, | ||
| int | v_max, | ||
| const char * | format = "%d", | ||
| ImGuiSliderFlags | flags = 0 ) |
| bool Slic3r::GUI::ImGuiWrapper::begin | ( | const std::string & | name, |
| bool * | close, | ||
| int | flags = 0 ) |
| bool Slic3r::GUI::ImGuiWrapper::begin | ( | const std::string & | name, |
| int | flags = 0 ) |
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow(), Slic3r::GUI::GLCanvas3D::_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::GLCanvas3D::_render_canvas_toolbar(), Slic3r::GUI::GLCanvas3D::_render_fps_overlay(), Slic3r::GUI::GLCanvas3D::_render_frame(), Slic3r::GUI::GLCanvas3D::_render_imex_ghost_tooltip(), Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_orient_menu(), Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::GLCanvas3D::_render_plate_switcher(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notification(), begin(), begin(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::GCodeViewer::SequentialView::GCodeWindow::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::GLCanvas3D::Tooltip::render(), Slic3r::GUI::IMSlider::render(), Slic3r::GUI::NotificationManager::PopNotification::render(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::DesignCanvas::render_hud(), Slic3r::GUI::GCodeViewer::render_legend(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GCodeViewer::render_toolpaths(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| bool Slic3r::GUI::ImGuiWrapper::begin | ( | const wxString & | name, |
| bool * | close, | ||
| int | flags = 0 ) |
References begin(), and Slic3r::GUI::into_u8().
| bool Slic3r::GUI::ImGuiWrapper::begin | ( | const wxString & | name, |
| int | flags = 0 ) |
| void Slic3r::GUI::ImGuiWrapper::bold_text | ( | const std::string & | str | ) |
References bold_font, and text().
Referenced by Slic3r::GUI::GCodeViewer::render_all_plates_stats(), and Slic3r::GUI::GCodeViewer::render_legend_color_arr_recommen().
| bool Slic3r::GUI::ImGuiWrapper::button | ( | const wxString & | label, |
| const ImVec2 & | size, | ||
| bool | enable ) |
References disabled_begin(), disabled_end(), and Slic3r::GUI::into_u8().
| bool Slic3r::GUI::ImGuiWrapper::button | ( | const wxString & | label, |
| const wxString & | tooltip = {} ) |
References Slic3r::GUI::into_u8(), and tooltip().
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow(), Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_orient_menu(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), bbl_combo_with_filter(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notif_buttons(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::NotificationManager::PrintHostUploadNotification::render_cancel_button(), Slic3r::GUI::NotificationManager::ProgressIndicatorNotification::render_cancel_button(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_cancel_button(), Slic3r::GUI::NotificationManager::URLDownloadNotification::render_cancel_button_inner(), Slic3r::GUI::NotificationManager::HintNotification::render_close_button(), Slic3r::GUI::NotificationManager::PopNotification::render_close_button(), Slic3r::GUI::NotificationManager::URLDownloadNotification::render_close_button_inner(), Slic3r::GUI::DailyTipsPanel::render_controller_buttons(), Slic3r::GUI::NotificationManager::HintNotification::render_documentation_button(), Slic3r::GUI::NotificationManager::ExportFinishedNotification::render_eject_button(), Slic3r::GUI::NotificationManager::PopNotification::render_hyperlink_action(), Slic3r::GUI::NotificationManager::PopNotification::render_hypertext(), Slic3r::GUI::NotificationManager::PopNotification::render_minimize_button(), Slic3r::GUI::NotificationManager::URLDownloadNotification::render_open_button_inner(), Slic3r::GUI::NotificationManager::URLDownloadNotification::render_pause_button_inner(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::NotificationManager::HintNotification::render_preferences_button(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_progress_close_button(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_progress_text(), Slic3r::GUI::NotificationManager::HintNotification::render_right_arrow_button(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_show_dailytips(), Slic3r::GUI::NotificationManager::SharedProfilesNotification::render_text(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| bool Slic3r::GUI::ImGuiWrapper::button | ( | const wxString & | label, |
| float | width, | ||
| float | height ) |
References Slic3r::GUI::into_u8().
| ImVec2 Slic3r::GUI::ImGuiWrapper::calc_button_size | ( | const wxString & | text, |
| const ImVec2 & | button_size = ImVec2(0, 0) ) const |
References calc_text_size(), style, and text().
|
static |
|
static |
References Slic3r::GUI::into_u8(), and text().
|
static |
Extend ImGui::CalcTextSize to use string_view.
References text().
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::GLCanvas3D::_render_assembly_tooltip_button(), Slic3r::GUI::GLGizmoUtils::begin_right_aligned_buttons(), calc_button_size(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), filament_group(), find_widest_text(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::GLGizmoCut3D::render_cut_plane_input_window(), Slic3r::GUI::GCodeViewer::render_legend_color_arr_recommen(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), and trunc().
| std::tuple< ImVec2, bool > Slic3r::GUI::ImGuiWrapper::calculate_filament_group_text_size | ( | const std::string & | filament_type | ) |
References Slic3r::filament_type().
Referenced by filament_group(), and Slic3r::GUI::GCodeViewer::render_legend_color_arr_recommen().
|
static |
Change position of imgui window.
| window_name | ImGui identifier of window |
| output_window_offset | [output] optional |
| try_to_fix | When True Only move to be full visible otherwise reset position |
| bool Slic3r::GUI::ImGuiWrapper::checkbox | ( | const wxString & | label, |
| bool & | value ) |
References Slic3r::GUI::into_u8().
Referenced by Slic3r::GUI::GLCanvas3D::_render_orient_menu(), and search_list().
| bool Slic3r::GUI::ImGuiWrapper::claim_key_event | ( | const wxKeyEvent & | evt | ) |
References m_char_claim, m_key_claims, and owns_keyboard().
|
staticprivate |
References ImGuiWrapper(), Slic3r::GUI::into_u8(), m_clipboard_text, and text().
Referenced by init_input().
|
staticprivate |
References text().
Referenced by init_input().
| void Slic3r::GUI::ImGuiWrapper::close_top_popup | ( | ) |
References Slic3r::GUI::drawn_last_frame().
| bool Slic3r::GUI::ImGuiWrapper::combo | ( | const std::string & | label, |
| const std::vector< std::string > & | options, | ||
| int & | selection, | ||
| ImGuiComboFlags | flags = 0, | ||
| float | label_width = 0.0f, | ||
| float | item_width = 0.0f ) |
References text().
Referenced by combo().
| bool Slic3r::GUI::ImGuiWrapper::combo | ( | const wxString & | label, |
| const std::vector< std::string > & | options, | ||
| int & | selection, | ||
| ImGuiComboFlags | flags = 0, | ||
| float | label_width = 0.0f, | ||
| float | item_width = 0.0f ) |
References combo(), and Slic3r::GUI::into_u8().
|
static |
Check that font ranges contain all chars in string (rendered Unicodes are stored in GlyphRanges).
| font | Contain glyph ranges |
| text | Vector of character to check |
References is_chars_in_ranges(), and text().
Referenced by Slic3r::GUI::GLGizmoEmboss::draw_text_input().
|
private |
References glDeleteTextures, glsafe, and m_font_texture.
Referenced by ~ImGuiWrapper(), init_font(), set_language(), and set_scaling().
| void Slic3r::GUI::ImGuiWrapper::destroy_fonts_texture | ( | ) |
| void Slic3r::GUI::ImGuiWrapper::disable_background_fadeout_animation | ( | ) |
| void Slic3r::GUI::ImGuiWrapper::disabled_begin | ( | bool | disabled | ) |
References m_disabled.
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow(), Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), button(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog(), Slic3r::GUI::GizmoObjectManipulation::reset_button(), and Slic3r::GUI::GizmoObjectManipulation::reset_zero_button().
| void Slic3r::GUI::ImGuiWrapper::disabled_end | ( | ) |
References m_disabled.
Referenced by Slic3r::GUI::GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow(), Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), button(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog(), Slic3r::GUI::GizmoObjectManipulation::reset_button(), and Slic3r::GUI::GizmoObjectManipulation::reset_zero_button().
| bool Slic3r::GUI::ImGuiWrapper::display_initialized | ( | ) | const |
Referenced by update_key_data(), and update_mouse_data().
|
static |
References Slic3r::GUI::format(), and Slic3r::GUI::input_optional().
|
static |
Visualization of polygon.
| polygon | Define what to draw |
| draw_list | Define where to draw it |
| color | Color of polygon |
| thickness | Width of polygon line |
References Slic3r::MultiPoint::points, and Slic3r::MultiPoint::size().
|
static |
Draw symbol of cross hair.
| position | Center of cross hair |
| radius | Circle radius |
| color | Color of symbol |
| num_segments | Precission of circle |
| thickness | Thickness of Line in symbol |
References end().
Referenced by Slic3r::GUI::GLGizmoEmboss::on_render_input_window(), and Slic3r::GUI::GLGizmoSVG::on_render_input_window().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_overlay_signature().
|
static |
Fill a rect with a filament gradient ramp, one band per pixel row, ramp.front() along the bottom edge. Bands rather than one interpolated rect, because the ramp follows the slot's gradient curve and ImGui's corner interpolation could only draw a straight fade.
| draw_list | Define where to draw it |
| top_left | Upper left corner of the rect |
| bottom_right | Lower right corner of the rect |
| ramp | Colours printed, bottom of the model first |
Referenced by Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), and Slic3r::GUI::GLGizmoMmuSegmentation::draw_color_button().
| void Slic3r::GUI::ImGuiWrapper::end | ( | ) |
Referenced by Slic3r::GUI::GLCanvas3D::_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::GLCanvas3D::_render_fps_overlay(), Slic3r::GUI::GLCanvas3D::_render_frame(), Slic3r::GUI::GLCanvas3D::_render_imex_ghost_tooltip(), Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_orient_menu(), Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::GLCanvas3D::_render_plate_switcher(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notification(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), draw_cross_hair(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::GCodeViewer::SequentialView::GCodeWindow::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::GLCanvas3D::Tooltip::render(), Slic3r::GUI::IMSlider::render(), Slic3r::GUI::NotificationManager::PopNotification::render(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::DesignCanvas::render_hud(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GCodeViewer::render_toolpaths(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| ImDrawData * Slic3r::GUI::ImGuiWrapper::end_frame | ( | ) |
References m_new_frame_open, and Slic3r::GUI::mac_ime_set_active().
|
static |
Escape ## in data by add space between hashes Needed when user written text is visualized by ImGui.
| text | In/Out text to be escaped |
References text().
Referenced by Slic3r::GUI::GLGizmoEmboss::draw_style_list(), and Slic3r::GUI::Emboss::StyleManager::init_trunc_names().
| void Slic3r::GUI::ImGuiWrapper::filament_group | ( | const std::string & | filament_type, |
| const char * | hex_color, | ||
| unsigned char | filament_id, | ||
| float | align_width ) |
References calc_text_size(), calculate_filament_group_text_size(), Slic3r::filament_type(), Slic3r::GUI::BitmapCache::load_from_svg_file_change_color(), Slic3r::GUI::BitmapCache::parse_color4(), Slic3r::resources_dir(), text(), text_color(), and text_colored().
Referenced by Slic3r::GUI::GCodeViewer::render_legend_color_arr_recommen().
| float Slic3r::GUI::ImGuiWrapper::find_widest_text | ( | std::vector< wxString > & | text_list | ) |
| void Slic3r::GUI::ImGuiWrapper::forget_key_claims | ( | ) |
References m_char_claim, and m_key_claims.
|
static |
References from_ImVec4().
|
static |
Referenced by from_ImU32(), Slic3r::GLVolume::update_render_colors(), Slic3r::GUI::Bed3D::update_render_colors(), Slic3r::GUI::GLCanvas3D::update_render_colors(), Slic3r::GUI::GLGizmoBase::update_render_colors(), and Slic3r::GUI::PartPlate::update_render_colors().
|
inline |
References m_font_size.
Referenced by Slic3r::GUI::DailyTipsPanel::DailyTipsPanel(), Slic3r::GUI::DailyTipsPanel::push_styles(), Slic3r::GUI::DailyTipsPanel::render(), Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render(), Slic3r::GUI::DailyTipsPanel::render_controller_buttons(), and Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_progress_text().
|
inline |
References m_fonts_names.
|
inline |
References m_glyph_ranges.
| ImVec2 Slic3r::GUI::ImGuiWrapper::get_item_spacing | ( | ) | const |
References style.
Referenced by Slic3r::GUI::GLCanvas3D::_render_assemble_control().
|
inline |
References m_last_slider_status.
|
inline |
References m_last_slider_status.
| float Slic3r::GUI::ImGuiWrapper::get_slider_float_height | ( | ) | const |
|
inline |
References m_style_scaling.
Referenced by Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::DesignCanvas::render_hud(), and Slic3r::GUI::Mouse3DController::render_settings_dialog().
| ImFontAtlasCustomRect * Slic3r::GUI::ImGuiWrapper::GetTextureCustomRect | ( | const wchar_t & | tex_id | ) |
References m_custom_glyph_rects_ids.
Referenced by image_button().
| bool Slic3r::GUI::ImGuiWrapper::glyph_button | ( | wchar_t | icon_char, |
| ImVec2 | icon_size ) |
References Slic3r::GUI::into_u8(), and style.
Referenced by Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window().
| bool Slic3r::GUI::ImGuiWrapper::image_button | ( | const wchar_t | icon, |
| const wxString & | tooltip = L"" ) |
References GetTextureCustomRect(), image_button(), and tooltip().
| bool Slic3r::GUI::ImGuiWrapper::image_button | ( | ImTextureID | user_texture_id, |
| const ImVec2 & | size, | ||
| const ImVec2 & | uv0 = ImVec2(0.0, 0.0), | ||
| const ImVec2 & | uv1 = ImVec2(1.0, 1.0), | ||
| int | frame_padding = -1, | ||
| const ImVec4 & | bg_col = ImVec4(0.0, 0.0, 0.0, 0.0), | ||
| const ImVec4 & | tint_col = ImVec4(1.0, 1.0, 1.0, 1.0), | ||
| ImGuiButtonFlags | flags = 0 ) |
References Slic3r::GUI::image_button_ex().
Referenced by image_button().
|
private |
References bold_font, default_font, destroy_font(), em_unit(), Slic3r::GUI::font_icons, Slic3r::GUI::font_icons_extra_large, Slic3r::GUI::font_icons_large, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_LINEAR, GL_MAX_TEXTURE_SIZE, GL_RGBA, GL_TEXTURE_2D, GL_TEXTURE_BINDING_2D, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_UNPACK_ROW_LENGTH, GL_UNSIGNED_BYTE, GLAD_GL_EXT_texture_compression_s3tc, glBindTexture, glGenTextures, glGetIntegerv, glPixelStorei, glsafe, glTexImage2D, glTexParameteri, load_svg(), m_custom_glyph_rects_ids, m_font_cjk, m_font_size, m_font_texture, m_glyph_ranges, Slic3r::GUI::ranges_language_independent, Slic3r::resources_dir(), and Slic3r::trace().
Referenced by new_frame().
|
private |
References clipboard_get(), clipboard_set(), and Slic3r::GUI::mac_ime_set_caret().
Referenced by ImGuiWrapper().
|
private |
References COL_ACTIVE, COL_BLUE_LIGHT, COL_BUTTON_BACKGROUND, COL_GREY_DARK, COL_GREY_LIGHT, COL_HOVER, COL_ORANGE_DARK, COL_ORANGE_LIGHT, COL_WINDOW_BACKGROUND, Slic3r::ColorRGB::ORCA(), style, to_ImVec4(), and Slic3r::to_rgba().
Referenced by ImGuiWrapper().
| bool Slic3r::GUI::ImGuiWrapper::input_double | ( | const std::string & | label, |
| const double & | value, | ||
| const std::string & | format = "%.3f" ) |
References Slic3r::GUI::format().
Referenced by input_double().
| bool Slic3r::GUI::ImGuiWrapper::input_double | ( | const wxString & | label, |
| const double & | value, | ||
| const std::string & | format = "%.3f" ) |
References Slic3r::GUI::format(), input_double(), and Slic3r::GUI::into_u8().
|
static |
References Slic3r::GUI::format(), and Slic3r::GUI::input_optional().
|
static |
References Slic3r::GUI::input_optional().
| bool Slic3r::GUI::ImGuiWrapper::input_vec3 | ( | const std::string & | label, |
| const Vec3d & | value, | ||
| float | width, | ||
| const std::string & | format = "%.3f" ) |
References Slic3r::GUI::format().
|
static |
References Slic3r::range().
Referenced by is_chars_in_ranges().
|
static |
References is_char_in_ranges().
Referenced by contain_all_glyphs().
| bool Slic3r::GUI::ImGuiWrapper::item_held | ( | ) | const |
Referenced by owns_keyboard().
|
static |
Use ImGui internals to unactivate (lose focus) in input. When input is activ it can't change value by application.
Referenced by Slic3r::GUI::GLGizmoEmboss::set_volume_by_selection(), and Slic3r::GUI::GLGizmoSVG::set_volume_by_selection().
| void Slic3r::GUI::ImGuiWrapper::load_fonts_texture | ( | ) |
|
private |
References Slic3r::GUI::BitmapCache::nsvgParseFromFileWithReplace(), and Slic3r::var().
Referenced by init_font().
| bool Slic3r::GUI::ImGuiWrapper::modal_popup_open | ( | ) | const |
References Slic3r::GUI::drawn_last_frame().
Referenced by owns_key().
| void Slic3r::GUI::ImGuiWrapper::new_frame | ( | ) |
References init_font(), m_font_texture, m_last_frame_time, and m_new_frame_open.
Referenced by update_key_data(), and update_mouse_data().
|
static |
References is_dark(), and Slic3r::GUI::m_is_dark_mode.
| bool Slic3r::GUI::ImGuiWrapper::owns_key | ( | const KeyChord & | chord | ) | const |
References Slic3r::GUI::KeyChord::edits_text(), modal_popup_open(), and text_input_active().
Referenced by Slic3r::GUI::MainFrame::handle_global_shortcut().
| bool Slic3r::GUI::ImGuiWrapper::owns_keyboard | ( | ) | const |
References item_held(), popup_open(), and text_input_active().
Referenced by claim_key_event(), and Slic3r::GUI::MainFrame::init_menubar_as_editor().
| bool Slic3r::GUI::ImGuiWrapper::pop_bold_font | ( | ) |
References bold_font.
Referenced by Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::DailyTipsPanel::render_controller_buttons(), and Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_progress_text().
|
static |
Referenced by Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), and Slic3r::GUI::IMSlider::render_input_custom_gcode().
|
static |
Referenced by Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), and Slic3r::GUI::IMSlider::render_input_custom_gcode().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GLGizmoEmboss::draw_advanced(), Slic3r::GUI::GLGizmoSVG::draw_filename(), Slic3r::GUI::GLGizmoEmboss::draw_font_list(), Slic3r::GUI::GLGizmoEmboss::draw_style_list(), Slic3r::GUI::GLGizmoTextureDisplacement::on_render_input_window(), Slic3r::GUI::GLGizmoAssembly::render_assembly_mode_combo(), Slic3r::GUI::GLGizmoBase::render_combo(), and Slic3r::GUI::GLGizmoCut3D::render_cut_mode_combo().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::DailyTipsPanel::pop_styles(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), and Slic3r::GUI::DesignCanvas::render_hud().
|
static |
Referenced by Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), Slic3r::GUI::IMSlider::render_input_custom_gcode(), and Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window().
| bool Slic3r::GUI::ImGuiWrapper::pop_font_by_name | ( | std::string | font_name | ) |
References im_fonts_map.
|
static |
References pop_toolbar_style().
Referenced by Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), Slic3r::GUI::IMSlider::render_input_custom_gcode(), and Slic3r::GUI::IMSlider::render_menu().
|
static |
Referenced by Slic3r::GUI::GLGizmoEmboss::draw_model_type(), Slic3r::GUI::GLGizmoSVG::draw_model_type(), and Slic3r::GUI::GLGizmoCut3D::render_connectors_input_window().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_orient_menu(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GLGizmoAssembly::on_render_input_window(), Slic3r::GUI::GLGizmoBrimEars::on_render_input_window(), Slic3r::GUI::GLGizmoCut3D::on_render_input_window(), Slic3r::GUI::GLGizmoEmboss::on_render_input_window(), Slic3r::GUI::GLGizmoFdmSupports::on_render_input_window(), Slic3r::GUI::GLGizmoFuzzySkin::on_render_input_window(), Slic3r::GUI::GLGizmoMeasure::on_render_input_window(), Slic3r::GUI::GLGizmoMeshBoolean::on_render_input_window(), Slic3r::GUI::GLGizmoMmuSegmentation::on_render_input_window(), Slic3r::GUI::GLGizmoSeam::on_render_input_window(), Slic3r::GUI::GLGizmoSVG::on_render_input_window(), pop_menu_style(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| bool Slic3r::GUI::ImGuiWrapper::popup_open | ( | ) | const |
Referenced by owns_keyboard().
| bool Slic3r::GUI::ImGuiWrapper::push_bold_font | ( | ) |
References bold_font.
Referenced by Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::DailyTipsPanel::render_controller_buttons(), and Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_progress_text().
|
static |
References Slic3r::GUI::m_is_dark_mode.
Referenced by Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), and Slic3r::GUI::IMSlider::render_input_custom_gcode().
|
static |
References Slic3r::GUI::m_is_dark_mode.
Referenced by Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), and Slic3r::GUI::IMSlider::render_input_custom_gcode().
|
static |
References COL_ORCA, COL_WINDOW_BG, COL_WINDOW_BG_DARK, Slic3r::GUI::m_is_dark_mode, and scale().
Referenced by Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GLGizmoEmboss::draw_advanced(), Slic3r::GUI::GLGizmoSVG::draw_filename(), Slic3r::GUI::GLGizmoEmboss::draw_font_list(), Slic3r::GUI::GLGizmoEmboss::draw_style_list(), Slic3r::GUI::GLGizmoTextureDisplacement::on_render_input_window(), Slic3r::GUI::GLGizmoAssembly::render_assembly_mode_combo(), Slic3r::GUI::GLGizmoBase::render_combo(), and Slic3r::GUI::GLGizmoCut3D::render_cut_mode_combo().
|
static |
References COL_GREEN_LIGHT, COL_SEPARATOR, COL_SEPARATOR_DARK, COL_WINDOW_BG_DARK, Slic3r::GUI::m_is_dark_mode, and scale().
Referenced by Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::DailyTipsPanel::push_styles(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), and Slic3r::GUI::DesignCanvas::render_hud().
|
static |
References Slic3r::GUI::decode_color_to_float_array(), Slic3r::GUI::m_is_dark_mode, and to_ImVec4().
Referenced by Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), Slic3r::GUI::IMSlider::render_input_custom_gcode(), and Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window().
| bool Slic3r::GUI::ImGuiWrapper::push_font_by_name | ( | std::string | font_name | ) |
References default_font, and im_fonts_map.
|
static |
References COL_WINDOW_BG, COL_WINDOW_BG_DARK, Slic3r::GUI::m_is_dark_mode, push_toolbar_style(), and scale().
Referenced by Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), Slic3r::GUI::IMSlider::render_input_custom_gcode(), and Slic3r::GUI::IMSlider::render_menu().
|
static |
References Slic3r::GUI::decode_color_to_float_array(), Slic3r::GUI::m_is_dark_mode, scale(), and to_ImVec4().
Referenced by Slic3r::GUI::GLGizmoEmboss::draw_model_type(), Slic3r::GUI::GLGizmoSVG::draw_model_type(), and Slic3r::GUI::GLGizmoCut3D::render_connectors_input_window().
|
static |
References COL_GREEN_LIGHT, COL_HOVER, COL_SEPARATOR, COL_SEPARATOR_DARK, COL_TITLE_BG, COL_WINDOW_BG, COL_WINDOW_BG_DARK, Slic3r::GUI::m_is_dark_mode, and scale().
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_orient_menu(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GLGizmoAssembly::on_render_input_window(), Slic3r::GUI::GLGizmoBrimEars::on_render_input_window(), Slic3r::GUI::GLGizmoCut3D::on_render_input_window(), Slic3r::GUI::GLGizmoEmboss::on_render_input_window(), Slic3r::GUI::GLGizmoFdmSupports::on_render_input_window(), Slic3r::GUI::GLGizmoFuzzySkin::on_render_input_window(), Slic3r::GUI::GLGizmoMeasure::on_render_input_window(), Slic3r::GUI::GLGizmoMeshBoolean::on_render_input_window(), Slic3r::GUI::GLGizmoMmuSegmentation::on_render_input_window(), Slic3r::GUI::GLGizmoSeam::on_render_input_window(), Slic3r::GUI::GLGizmoSVG::on_render_input_window(), Slic3r::GUI::GLGizmoTextureDisplacement::on_render_input_window(), push_menu_style(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| bool Slic3r::GUI::ImGuiWrapper::radio_button | ( | const wxString & | label, |
| bool | active ) |
References Slic3r::GUI::into_u8().
| void Slic3r::GUI::ImGuiWrapper::read_glsl_version | ( | ) |
References Slic3r::GUI::wxMouseEvent.
| void Slic3r::GUI::ImGuiWrapper::render | ( | ImDrawData * | draw_data | ) |
References render_draw_data().
|
private |
References Slic3r::GLShaderProgram::get_attrib_location(), Slic3r::GUI::OpenGLManager::get_gl_info(), GL_ACTIVE_TEXTURE, GL_ARRAY_BUFFER, GL_ARRAY_BUFFER_BINDING, GL_BLEND, GL_BLEND_DST_ALPHA, GL_BLEND_DST_RGB, GL_BLEND_EQUATION_ALPHA, GL_BLEND_EQUATION_RGB, GL_BLEND_SRC_ALPHA, GL_BLEND_SRC_RGB, GL_CULL_FACE, GL_CURRENT_PROGRAM, GL_DEPTH_TEST, GL_ELEMENT_ARRAY_BUFFER, GL_FALSE, GL_FLOAT, GL_FUNC_ADD, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_SCISSOR_BOX, GL_SCISSOR_TEST, GL_SRC_ALPHA, GL_STATIC_DRAW, GL_STENCIL_TEST, GL_TEXTURE0, GL_TEXTURE_2D, GL_TEXTURE_BINDING_2D, GL_TRIANGLES, GL_TRUE, GL_UNSIGNED_BYTE, GL_UNSIGNED_INT, GL_UNSIGNED_SHORT, GL_VERTEX_ARRAY_BINDING, GL_VIEWPORT, glActiveTexture, glBindBuffer, glBindTexture, glBindVertexArray, glBlendEquation, glBlendEquationSeparate, glBlendFuncSeparate, glBufferData, glDeleteBuffers, glDeleteVertexArrays, glDisable, glDisableVertexAttribArray, glDrawElements, glEnable, glEnableVertexAttribArray, glGenBuffers, glGenVertexArrays, glGetIntegerv, glIsEnabled, glsafe, glScissor, glVertexAttribPointer, glViewport, L, Slic3r::GLShaderProgram::set_uniform(), Slic3r::GLShaderProgram::start_using(), and Slic3r::GLShaderProgram::stop_using().
Referenced by render().
|
inline |
References set_requires_extra_frame().
|
inline |
|
inline |
|
inline |
References m_font_size.
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_canvas_toolbar(), Slic3r::GUI::GLCanvas3D::_render_imex_ghost_tooltip(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GCodeViewer::render_all_plates_stats(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
|
inline |
References m_font_size.
| void Slic3r::GUI::ImGuiWrapper::search_list | ( | const ImVec2 & | size, |
| bool(* | items_getter )(int, const char **label, const char **tooltip), | ||
| char * | search_str, | ||
| Search::OptionViewParameters & | view_params, | ||
| int & | selected, | ||
| bool & | edited, | ||
| int & | mouse_wheel, | ||
| bool | is_localized ) |
References checkbox(), Slic3r::Search::OptionViewParameters::hovered_id, ImRect, Slic3r::GUI::process_key_down(), Slic3r::GUI::process_mouse_wheel(), Slic3r::GUI::scroll_down(), Slic3r::GUI::scroll_up(), Slic3r::GUI::scroll_y(), Slic3r::GUI::selectable(), style, and tooltip().
| void Slic3r::GUI::ImGuiWrapper::set_display_size | ( | float | w, |
| float | h ) |
| void Slic3r::GUI::ImGuiWrapper::set_language | ( | const std::string & | language | ) |
References destroy_font(), m_font_cjk, m_glyph_basic_ranges, m_glyph_ranges, m_is_korean, and m_new_frame_open.
| void Slic3r::GUI::ImGuiWrapper::set_next_window_bg_alpha | ( | float | alpha | ) |
Referenced by Slic3r::GUI::DesignSketchTool::draw_dim_label().
| void Slic3r::GUI::ImGuiWrapper::set_next_window_pos | ( | float | x, |
| float | y, | ||
| int | flag, | ||
| float | pivot_x = 0.0f, | ||
| float | pivot_y = 0.0f ) |
Referenced by Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_assemble_info(), Slic3r::GUI::GLCanvas3D::_render_canvas_toolbar(), Slic3r::GUI::GLCanvas3D::_render_imex_ghost_tooltip(), Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_orient_menu(), Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::GLCanvas3D::_render_plate_switcher(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notification(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::GCodeViewer::SequentialView::GCodeWindow::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::GLCanvas3D::Tooltip::render(), Slic3r::GUI::IMSlider::render(), Slic3r::GUI::NotificationManager::PopNotification::render(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::DesignCanvas::render_hud(), Slic3r::GUI::GCodeViewer::render_legend(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GCodeViewer::render_toolpaths(), and Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog().
| void Slic3r::GUI::ImGuiWrapper::set_next_window_size | ( | float | x, |
| float | y, | ||
| ImGuiCond | cond ) |
Referenced by Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_plate_switcher(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notification(), and Slic3r::GUI::NotificationManager::PopNotification::render().
|
inline |
Referenced by Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::IMSlider::on_mouse_wheel(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::GLCanvas3D::Tooltip::render(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), and request_frames_while_held().
| void Slic3r::GUI::ImGuiWrapper::set_scaling | ( | float | font_size, |
| float | scale_style, | ||
| float | scale_both ) |
References destroy_font(), m_font_size, and m_style_scaling.
| bool Slic3r::GUI::ImGuiWrapper::slider_float | ( | const char * | label, |
| float * | v, | ||
| float | v_min, | ||
| float | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true ) |
References Slic3r::GUI::format().
Referenced by Slic3r::GUI::GCodeViewer::render_overlay(), Slic3r::GUI::GCodeViewer::render_toolpaths(), slider_float(), slider_float(), slider_optional_float(), and slider_optional_int().
| bool Slic3r::GUI::ImGuiWrapper::slider_float | ( | const std::string & | label, |
| float * | v, | ||
| float | v_min, | ||
| float | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true ) |
References Slic3r::GUI::format(), and slider_float().
| bool Slic3r::GUI::ImGuiWrapper::slider_float | ( | const wxString & | label, |
| float * | v, | ||
| float | v_min, | ||
| float | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true ) |
References Slic3r::GUI::format(), Slic3r::GUI::into_u8(), and slider_float().
| bool Slic3r::GUI::ImGuiWrapper::slider_optional_float | ( | const char * | label, |
| std::optional< float > & | v, | ||
| float | v_min, | ||
| float | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true, | ||
| const wxString & | tooltip = {}, | ||
| bool | show_edit_btn = true, | ||
| float | def_val = .0f ) |
References Slic3r::GUI::format(), Slic3r::GUI::input_optional(), slider_float(), and tooltip().
| bool Slic3r::GUI::ImGuiWrapper::slider_optional_int | ( | const char * | label, |
| std::optional< int > & | v, | ||
| int | v_min, | ||
| int | v_max, | ||
| const char * | format = "%.3f", | ||
| float | power = 1.0f, | ||
| bool | clamp = true, | ||
| const wxString & | tooltip = {}, | ||
| bool | show_edit_btn = true, | ||
| int | def_val = 0 ) |
References Slic3r::GUI::format(), Slic3r::GUI::input_optional(), slider_float(), and tooltip().
| void Slic3r::GUI::ImGuiWrapper::sub_title | ( | const std::string & | label | ) |
References text_colored().
|
static |
Suggest loacation of dialog window, dependent on actual visible thing on platter like Gizmo menu size, notifications, ... To be near of polygon interest and not over it. And also not out of visible area.
| dialog_size | Define width and height of diaog window |
| interest | Area of interest. Result should be close to it |
| canvas_size | Available space a.k.a GLCanvas3D::get_current_canvas3D() |
References Slic3r::cast(), Slic3r::BoundingBoxBase< PointType, APointsType >::center(), Slic3r::center(), Slic3r::empty(), Slic3r::intersection(), Slic3r::BoundingBoxBase< PointType, APointsType >::max, Slic3r::BoundingBoxBase< PointType, APointsType >::min, Slic3r::offset(), and Slic3r::MultiPoint::points.
Referenced by anonymous_namespace{GLGizmoEmboss.cpp}::calc_fine_position().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_arrange_menu(), Slic3r::GUI::GLCanvas3D::_render_assemble_control(), Slic3r::GUI::GLCanvas3D::_render_fps_overlay(), Slic3r::GUI::GLCanvas3D::_render_frame(), Slic3r::GUI::GLCanvas3D::_render_imex_ghost_tooltip(), Slic3r::GUI::GLCanvas3D::_render_section_view_panel(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notif_left_sign(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notif_text(), bbl_slider_float(), bold_text(), calc_button_size(), calc_text_size(), calc_text_size(), calc_text_size(), clipboard_get(), clipboard_set(), combo(), contain_all_glyphs(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GLGizmoSVG::draw_depth(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::GLGizmoEmboss::draw_font_list_line(), Slic3r::GUI::GLGizmoSVG::draw_use_surface(), escape_double_hash(), filament_group(), find_widest_text(), Slic3r::GUI::GCodeViewer::SequentialView::GCodeWindow::render(), Slic3r::GUI::GLCanvas3D::Labels::render(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GCodeViewer::render_all_plates_stats(), Slic3r::GUI::NotificationManager::PrintHostUploadNotification::render_bar(), Slic3r::GUI::NotificationManager::ProgressBarNotification::render_bar(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_bar(), Slic3r::GUI::NotificationManager::URLDownloadNotification::render_bar(), Slic3r::GUI::NotificationManager::PrintHostUploadNotification::render_cancel_button(), Slic3r::GUI::GizmoObjectManipulation::render_combo(), Slic3r::GUI::DailyTipsPanel::render_controller_buttons(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::NotificationManager::HintNotification::render_documentation_button(), Slic3r::GUI::NotificationManager::ExportFinishedNotification::render_eject_button(), Slic3r::GUI::IMSlider::render_go_to_layer_dialog(), Slic3r::GUI::NotificationManager::PopNotification::render_hyperlink_action(), Slic3r::GUI::NotificationManager::PopNotification::render_hypertext(), Slic3r::GUI::IMSlider::render_input_custom_gcode(), Slic3r::GUI::GCodeViewer::render_legend(), Slic3r::GUI::GCodeViewer::render_legend_color_arr_recommen(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::NotificationManager::HintNotification::render_preferences_button(), Slic3r::GUI::NotificationManager::SlicingProgressNotification::render_progress_text(), Slic3r::GUI::NotificationManager::HintNotification::render_right_arrow_button(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::DailyTipsDataRenderer::render_text(), Slic3r::GUI::NotificationManager::ExportFinishedNotification::render_text(), Slic3r::GUI::NotificationManager::HintNotification::render_text(), Slic3r::GUI::NotificationManager::OrcaSyncConflictNotification::render_text(), Slic3r::GUI::NotificationManager::PluginMissingNotification::render_text(), Slic3r::GUI::NotificationManager::PopNotification::render_text(), Slic3r::GUI::NotificationManager::ProgressBarNotification::render_text(), Slic3r::GUI::NotificationManager::SharedProfilesNotification::render_text(), Slic3r::GUI::GCodeViewer::render_toolpaths(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog(), Slic3r::GUI::GLGizmoEmboss::revertible(), text(), text(), text_wrapped(), title(), title(), trunc(), and warning_text().
|
static |
|
static |
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_picking_pass(), Slic3r::GUI::GLCanvas3D::_render_assembly_tooltip_button(), Slic3r::GUI::add_strings_row_to_table(), Slic3r::GUI::GLGizmoSVG::draw_distance(), Slic3r::GUI::GLGizmoEmboss::draw_font_list_line(), Slic3r::GUI::GLGizmoSVG::draw_rotation(), Slic3r::GUI::GLGizmoSVG::draw_size(), Slic3r::GUI::GLGizmoEmboss::draw_style_rename_popup(), Slic3r::GUI::GLGizmoEmboss::draw_style_save_as_popup(), filament_group(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GCodeViewer::render_toolpaths(), Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), Slic3r::GUI::GLGizmoEmboss::revertible(), sub_title(), text_colored(), and text_colored().
|
static |
|
static |
References Slic3r::GUI::into_u8(), and text_colored().
| bool Slic3r::GUI::ImGuiWrapper::text_input_active | ( | ) | const |
Referenced by owns_key(), and owns_keyboard().
| void Slic3r::GUI::ImGuiWrapper::text_wrapped | ( | const char * | label, |
| float | wrap_width ) |
References text().
Referenced by Slic3r::GUI::GCodeViewer::render_legend_color_arr_recommen(), Slic3r::GUI::DailyTipsDataRenderer::render_text(), text_wrapped(), and text_wrapped().
| void Slic3r::GUI::ImGuiWrapper::text_wrapped | ( | const std::string & | label, |
| float | wrap_width ) |
References text_wrapped().
| void Slic3r::GUI::ImGuiWrapper::text_wrapped | ( | const wxString & | label, |
| float | wrap_width ) |
References Slic3r::GUI::into_u8(), and text_wrapped().
| void Slic3r::GUI::ImGuiWrapper::title | ( | const std::string & | str | ) |
References bold_font, and text().
Referenced by Slic3r::GUI::GCodeViewer::render_all_plates_stats().
| void Slic3r::GUI::ImGuiWrapper::title | ( | const std::string & | str, |
| bool | suppress_seperator ) |
|
static |
References Slic3r::ColorRGBA::a(), Slic3r::ColorRGBA::b(), Slic3r::ColorRGBA::g(), and Slic3r::ColorRGBA::r().
Referenced by Slic3r::GUI::add_swatch(), Slic3r::GUI::GLGizmoMmuSegmentation::draw_color_button(), Slic3r::GUI::IMSlider::draw_colored_band(), Slic3r::GUI::DesignSketchTool::draw_dim_label(), Slic3r::GUI::IMSlider::render_add_menu(), Slic3r::GUI::GLGizmoCut3D::render_cut_plane_input_window(), Slic3r::GUI::GLGizmoMeasure::render_dimensioning(), Slic3r::GUI::IMSlider::render_edit_menu(), Slic3r::GUI::render_extruders_combo(), and Slic3r::GUI::GCodeViewer::render_legend().
|
static |
References Slic3r::ColorRGB::b(), Slic3r::ColorRGB::g(), and Slic3r::ColorRGB::r().
Referenced by Slic3r::GUI::NotificationManager::PopNotification::PopNotification(), Slic3r::GUI::GLCanvas3D::_render_3d_navigator(), Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), Slic3r::GUI::GLGizmoMmuSegmentation::draw_color_button(), init_style(), Slic3r::GLVolume::load_render_colors(), Slic3r::GUI::Bed3D::load_render_colors(), Slic3r::GUI::GLCanvas3D::load_render_colors(), Slic3r::GUI::GLGizmoBase::load_render_colors(), Slic3r::GUI::PartPlate::load_render_colors(), push_confirm_button_style(), push_radio_style(), Slic3r::GUI::SketchInlineEditor::render(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::GLGizmoMeasure::show_distance_xyz_ui(), and Slic3r::GUI::GLGizmoMeasure::show_selection_ui().
|
static |
References Slic3r::ColorRGBA::a(), Slic3r::ColorRGBA::b(), Slic3r::ColorRGBA::g(), and Slic3r::ColorRGBA::r().
| void Slic3r::GUI::ImGuiWrapper::tooltip | ( | const char * | label, |
| float | wrap_width ) |
Referenced by Slic3r::GUI::GLCanvas3D::_render_canvas_toolbar(), Slic3r::GUI::GLCanvas3D::_render_paint_toolbar(), Slic3r::GUI::GLCanvas3D::_render_plate_switcher(), bbl_button(), bbl_slider_float(), bbl_slider_float_style(), button(), Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window(), image_button(), search_list(), slider_optional_float(), slider_optional_int(), and tooltip().
| void Slic3r::GUI::ImGuiWrapper::tooltip | ( | const std::string & | label, |
| float | wrap_width ) |
| void Slic3r::GUI::ImGuiWrapper::tooltip | ( | const wxString & | label, |
| float | wrap_width ) |
|
static |
Truncate text by ImGui draw function to specific width NOTE 1: ImGui must be initialized NOTE 2: Calculation for actual acive imgui font.
| text | Text to be truncated |
| width | Maximal width before truncate |
| tail | String puted on end of text to be visible truncation |
References calc_text_size(), and text().
Referenced by Slic3r::GUI::GLGizmoSVG::draw_filename(), Slic3r::GUI::GLGizmoEmboss::draw_style_list(), Slic3r::GUI::Emboss::StyleManager::init_trunc_names(), and anonymous_namespace{GLGizmoEmboss.cpp}::init_truncated_names().
| bool Slic3r::GUI::ImGuiWrapper::undo_redo_list | ( | const ImVec2 & | size, |
| const bool | is_undo, | ||
| bool(* | items_getter )(const bool, int, const char **), | ||
| int & | hovered, | ||
| int & | selected, | ||
| int & | mouse_wheel ) |
References Slic3r::GUI::process_mouse_wheel().
| bool Slic3r::GUI::ImGuiWrapper::update_key_data | ( | wxKeyEvent & | evt | ) |
References display_initialized(), new_frame(), want_keyboard(), and want_text_input().
| bool Slic3r::GUI::ImGuiWrapper::update_mouse_data | ( | wxMouseEvent & | evt | ) |
References display_initialized(), m_mouse_buttons, new_frame(), want_mouse(), and Slic3r::GUI::wxMouseEvent.
Referenced by Slic3r::GUI::GLCanvas3D::on_mouse().
| bool Slic3r::GUI::ImGuiWrapper::want_any_input | ( | ) | const |
| bool Slic3r::GUI::ImGuiWrapper::want_keyboard | ( | ) | const |
Referenced by update_key_data().
| bool Slic3r::GUI::ImGuiWrapper::want_mouse | ( | ) | const |
Referenced by update_mouse_data().
| bool Slic3r::GUI::ImGuiWrapper::want_text_input | ( | ) | const |
Referenced by update_key_data().
| void Slic3r::GUI::ImGuiWrapper::warning_text | ( | const char * | all_text | ) |
References COL_WARNING, and text().
| void Slic3r::GUI::ImGuiWrapper::warning_text | ( | const wxString & | all_text | ) |
References Slic3r::GUI::into_u8(), and Slic3r::GUI::warning_text.
|
private |
Referenced by bold_text(), init_font(), pop_bold_font(), push_bold_font(), title(), and title().
|
static |
|
static |
Referenced by init_style().
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by push_common_window_style(), and push_toolbar_style().
Referenced by Slic3r::GUI::GLGizmoSVG::draw_filename(), and init_style().
Referenced by init_style(), and push_toolbar_style().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_picking_pass(), init_style(), Slic3r::GUI::GCodeViewer::SequentialView::GCodeWindow::render(), Slic3r::GUI::GLGizmoCut3D::render_connectors_input_window(), Slic3r::GUI::GLGizmoCut3D::render_cut_plane_input_window(), and Slic3r::GUI::GCodeViewer::render_toolpaths().
|
static |
Referenced by Slic3r::GUI::GLCanvas3D::_render_canvas_toolbar(), Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_plate_switcher(), Slic3r::GUI::GLGizmoMmuSegmentation::draw_color_button(), Slic3r::GUI::GLGizmoEmboss::draw_style_list(), Slic3r::GUI::GLGizmoBrimEars::on_render_input_window(), Slic3r::GUI::GLGizmoFdmSupports::on_render_input_window(), Slic3r::GUI::GLGizmoFuzzySkin::on_render_input_window(), Slic3r::GUI::GLGizmoMmuSegmentation::on_render_input_window(), Slic3r::GUI::GLGizmoSeam::on_render_input_window(), Slic3r::GUI::GLGizmoSimplify::on_render_input_window(), Slic3r::GUI::GLGizmoTextureDisplacement::on_render_input_window(), push_combo_style(), Slic3r::GUI::GLGizmoUtils::push_orca_button_style(), Slic3r::GUI::IMSlider::render(), Slic3r::GUI::GLCanvas3D::CenterOfMass::render_details(), Slic3r::GUI::GLGizmoMmuSegmentation::render_filament_remap_ui(), Slic3r::GUI::DesignCanvas::render_hud(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::GLGizmoTextureDisplacement::render_texture_library_popup(), Slic3r::GUI::GLGizmoMeasure::show_distance_xyz_ui(), and Slic3r::GUI::GLGizmoUtils::toolbar_circular_button().
|
static |
Referenced by push_common_window_style(), and push_toolbar_style().
Referenced by push_common_window_style(), and push_toolbar_style().
Referenced by push_toolbar_style().
|
static |
Referenced by init_style(), Slic3r::GUI::NotificationManager::PrintHostUploadNotification::render_cancel_button(), Slic3r::GUI::NotificationManager::HintNotification::render_documentation_button(), Slic3r::GUI::NotificationManager::ExportFinishedNotification::render_eject_button(), Slic3r::GUI::PartPlateList::render_hover_tooltip(), Slic3r::GUI::NotificationManager::HintNotification::render_preferences_button(), Slic3r::GUI::NotificationManager::HintNotification::render_right_arrow_button(), and Slic3r::GUI::IMSlider::show_tooltip().
|
static |
Referenced by Slic3r::GUI::GLGizmoFdmSupports::on_render_input_window(), push_combo_style(), push_menu_style(), Slic3r::GUI::GLGizmoUtils::push_orca_button_style(), Slic3r::GUI::DailyTipsPanel::push_styles(), push_toolbar_style(), Slic3r::GUI::GLGizmoUtils::render_tooltip_button(), and Slic3r::GUI::GLGizmoUtils::toolbar_circular_button().
|
private |
Referenced by init_font(), and push_font_by_name().
|
private |
Referenced by pop_font_by_name(), and push_font_by_name().
|
private |
Referenced by claim_key_event(), and forget_key_claims().
|
private |
Referenced by clipboard_get().
|
private |
Referenced by GetTextureCustomRect(), and init_font().
|
private |
Referenced by disabled_begin(), and disabled_end().
|
private |
|
private |
Referenced by init_font(), and set_language().
|
private |
Referenced by get_font_size(), init_font(), scaled(), scaled(), and set_scaling().
|
private |
Referenced by destroy_font(), init_font(), and new_frame().
|
private |
Referenced by get_fonts_names().
|
private |
Referenced by set_language().
|
private |
Referenced by get_glyph_ranges(), init_font(), and set_language().
|
private |
Referenced by set_language().
|
private |
Referenced by claim_key_event(), and forget_key_claims().
|
private |
Referenced by new_frame().
|
private |
Referenced by bbl_slider_float(), get_last_slider_status(), and get_last_slider_status().
|
private |
Referenced by update_mouse_data().
|
private |
Referenced by end_frame(), new_frame(), and set_language().
|
private |
Referenced by bbl_combo_with_filter(), get_style_scaling(), and set_scaling().
|
static |
Referenced by Slic3r::GUI::GizmoObjectManipulation::do_render_move_window(), Slic3r::GUI::GizmoObjectManipulation::do_render_rotate_window(), and Slic3r::GUI::GizmoObjectManipulation::do_render_scale_input_window().