#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/CAD/SketchInlineEditor.hpp>
Classes | |
| struct | Closed |
Public Member Functions | |
| SketchInlineEditor ()=default | |
| void | open (const wxPoint &canvas_px, double value, const std::string &title, std::function< void(double)> on_commit, std::function< void()> on_cancel) |
| void | close () |
| void | cancel () |
| void | commit () |
| bool | refuse (const std::string &why) |
| bool | is_open () const |
| bool | render (ImGuiWrapper &imgui, float scale) |
| void | bring_to_front () |
| bool | is_mapped () const |
| bool | has_focus () const |
| void | dismiss () |
Public Attributes | |
| std::function< void()> | request_frame |
Private Member Functions | |
| void | do_commit () |
| void | do_cancel () |
Private Attributes | |
| std::function< void(double)> | m_commit |
| std::function< void()> | m_cancel |
| bool | m_open {false} |
| bool | m_focus_pending {false} |
| wxPoint | m_anchor {0, 0} |
| std::string | m_title |
| std::string | m_err |
| char | m_buf [64] {} |
| double | m_prefill_value {0.0} |
| std::string | m_prefill_text |
| bool | m_active {false} |
| Closed | m_last |
| bool | m_in_commit {false} |
| struct Slic3r::GUI::SketchInlineEditor::Closed |
|
default |
| void Slic3r::GUI::SketchInlineEditor::bring_to_front | ( | ) |
| void Slic3r::GUI::SketchInlineEditor::cancel | ( | ) |
| void Slic3r::GUI::SketchInlineEditor::close | ( | ) |
References m_active, m_cancel, m_commit, m_err, m_focus_pending, and m_open.
Referenced by dismiss(), do_cancel(), and do_commit().
| void Slic3r::GUI::SketchInlineEditor::commit | ( | ) |
|
inline |
|
private |
References close(), m_cancel, and m_title.
Referenced by cancel(), and render().
|
private |
References _u8L, close(), m_anchor, m_buf, m_cancel, m_commit, m_err, m_focus_pending, m_in_commit, m_last, m_prefill_text, m_prefill_value, and m_title.
Referenced by commit(), and render().
|
inline |
References m_active, m_focus_pending, and m_open.
|
inline |
|
inline |
| void Slic3r::GUI::SketchInlineEditor::open | ( | const wxPoint & | canvas_px, |
| double | value, | ||
| const std::string & | title, | ||
| std::function< void(double)> | on_commit, | ||
| std::function< void()> | on_cancel ) |
References m_active, m_anchor, m_buf, m_cancel, m_commit, m_err, m_focus_pending, m_open, m_prefill_text, m_prefill_value, and m_title.
| bool Slic3r::GUI::SketchInlineEditor::refuse | ( | const std::string & | why | ) |
References m_anchor, m_buf, m_cancel, m_commit, m_err, m_focus_pending, m_in_commit, m_last, m_open, m_prefill_text, m_prefill_value, and m_title.
| bool Slic3r::GUI::SketchInlineEditor::render | ( | ImGuiWrapper & | imgui, |
| float | scale ) |
References Slic3r::GUI::ImGuiWrapper::begin(), do_cancel(), do_commit(), Slic3r::GUI::ImGuiWrapper::end(), m_active, m_anchor, m_buf, m_err, m_focus_pending, m_open, m_title, Slic3r::GUI::ImGuiWrapper::pop_common_window_style(), Slic3r::GUI::ImGuiWrapper::push_common_window_style(), request_frame, scale(), Slic3r::GUI::ImGuiWrapper::set_next_window_pos(), Slic3r::GUI::ImGuiWrapper::text(), and Slic3r::GUI::ImGuiWrapper::to_ImVec4().
|
private |
Referenced by close(), has_focus(), open(), and render().
|
private |
Referenced by do_commit(), open(), refuse(), and render().
|
private |
Referenced by do_commit(), open(), refuse(), and render().
|
private |
Referenced by close(), do_cancel(), do_commit(), open(), and refuse().
|
private |
Referenced by close(), do_commit(), open(), and refuse().
|
private |
Referenced by close(), do_commit(), open(), refuse(), and render().
|
private |
Referenced by close(), do_commit(), has_focus(), open(), refuse(), and render().
|
private |
Referenced by do_commit(), and refuse().
|
private |
Referenced by do_commit(), and refuse().
|
private |
Referenced by cancel(), close(), commit(), has_focus(), is_mapped(), is_open(), open(), refuse(), and render().
|
private |
Referenced by do_commit(), open(), and refuse().
|
private |
Referenced by do_commit(), open(), and refuse().
|
private |
Referenced by do_cancel(), do_commit(), open(), refuse(), and render().
| std::function<void()> Slic3r::GUI::SketchInlineEditor::request_frame |
Referenced by render().