OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Tab::Highlighter Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Tab.hpp>

Collaboration diagram for Slic3r::GUI::Tab::Highlighter:

Public Member Functions

void set_timer_owner (wxEvtHandler *owner, int timerid=wxID_ANY)
void init (std::pair< OG_CustomCtrl *, bool * >)
void blink ()
void invalidate ()

Private Attributes

OG_CustomCtrl * m_custom_ctrl {nullptr}
bool * m_show_blink_ptr {nullptr}
int m_blink_counter {0}
wxTimer m_timer

Detailed Description

Member Function Documentation

◆ blink()

void Slic3r::GUI::Tab::Highlighter::blink ( )
194{
197 m_custom_ctrl->Refresh();
198 }
199 else
200 return;
201
202 if ((++m_blink_counter) == 11)
203 invalidate();
204}
void invalidate()
Definition Tab.cpp:179
int m_blink_counter
Definition Tab.hpp:296
bool * m_show_blink_ptr
Definition Tab.hpp:295
OG_CustomCtrl * m_custom_ctrl
Definition Tab.hpp:294

References invalidate(), m_blink_counter, m_custom_ctrl, and m_show_blink_ptr.

Here is the call graph for this function:

◆ init()

void Slic3r::GUI::Tab::Highlighter::init ( std::pair< OG_CustomCtrl *, bool * > params)
164{
165 if (m_timer.IsRunning())
166 invalidate();
167 if (!params.first || !params.second)
168 return;
169
170 m_timer.Start(300, false);
171
172 m_custom_ctrl = params.first;
173 m_show_blink_ptr = params.second;
174
175 *m_show_blink_ptr = true;
176 m_custom_ctrl->Refresh();
177}
wxTimer m_timer
Definition Tab.hpp:297

References invalidate(), m_custom_ctrl, m_show_blink_ptr, and m_timer.

Here is the call graph for this function:

◆ invalidate()

void Slic3r::GUI::Tab::Highlighter::invalidate ( )
180{
181 m_timer.Stop();
182
184 *m_show_blink_ptr = false;
185 m_custom_ctrl->Refresh();
186 m_show_blink_ptr = nullptr;
187 m_custom_ctrl = nullptr;
188 }
189
190 m_blink_counter = 0;
191}

References m_blink_counter, m_custom_ctrl, m_show_blink_ptr, and m_timer.

Referenced by blink(), and init().

Here is the caller graph for this function:

◆ set_timer_owner()

void Slic3r::GUI::Tab::Highlighter::set_timer_owner ( wxEvtHandler * owner,
int timerid = wxID_ANY )
159{
160 m_timer.SetOwner(owner, timerid);
161}

References m_timer.

Member Data Documentation

◆ m_blink_counter

int Slic3r::GUI::Tab::Highlighter::m_blink_counter {0}
private
296{0};

Referenced by blink(), and invalidate().

◆ m_custom_ctrl

OG_CustomCtrl* Slic3r::GUI::Tab::Highlighter::m_custom_ctrl {nullptr}
private
294{nullptr};

Referenced by blink(), init(), and invalidate().

◆ m_show_blink_ptr

bool* Slic3r::GUI::Tab::Highlighter::m_show_blink_ptr {nullptr}
private
295{nullptr};

Referenced by blink(), init(), and invalidate().

◆ m_timer

wxTimer Slic3r::GUI::Tab::Highlighter::m_timer
private

Referenced by init(), invalidate(), and set_timer_owner().


The documentation for this struct was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Tab.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Tab.cpp