Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::GUI::Highlighter Class Referenceabstract

#include <src/slic3r/GUI/wxExtensions.hpp>

+ Inheritance diagram for Slic3r::GUI::Highlighter:

Public Member Functions

 Highlighter ()
 
 ~Highlighter ()
 
void set_timer_owner (wxWindow *owner, int timerid=wxID_ANY)
 
virtual void bind_timer (wxWindow *owner)=0
 
bool init (bool input_failed)
 
void blink ()
 
void invalidate ()
 

Private Attributes

int m_blink_counter { 0 }
 
wxTimer m_timer
 

Detailed Description

Constructor & Destructor Documentation

◆ Highlighter()

Slic3r::GUI::Highlighter::Highlighter ( )
inline
405{}

◆ ~Highlighter()

Slic3r::GUI::Highlighter::~Highlighter ( )
inline
406{}

Member Function Documentation

◆ bind_timer()

virtual void Slic3r::GUI::Highlighter::bind_timer ( wxWindow *  owner)
pure virtual

Implemented in Slic3r::GUI::HighlighterForWx.

Referenced by set_timer_owner().

+ Here is the caller graph for this function:

◆ blink()

void Slic3r::GUI::Highlighter::blink ( )
952{
953 if ((++m_blink_counter) == 11)
954 invalidate();
955}
void invalidate()
Definition wxExtensions.cpp:944
int m_blink_counter
Definition wxExtensions.hpp:401

References invalidate(), and m_blink_counter.

Referenced by Slic3r::GUI::HighlighterForWx::blink().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

bool Slic3r::GUI::Highlighter::init ( bool  input_failed)
937{
938 if (input_failed)
939 return false;
940
941 m_timer.Start(300, false);
942 return true;
943}
wxTimer m_timer
Definition wxExtensions.hpp:402

References m_timer.

Referenced by Slic3r::GUI::HighlighterForWx::init(), and Slic3r::GUI::HighlighterForWx::init().

+ Here is the caller graph for this function:

◆ invalidate()

void Slic3r::GUI::Highlighter::invalidate ( )
945{
946 if (m_timer.IsRunning())
947 m_timer.Stop();
948 m_blink_counter = 0;
949}

References m_blink_counter, and m_timer.

Referenced by blink(), and Slic3r::GUI::HighlighterForWx::invalidate().

+ Here is the caller graph for this function:

◆ set_timer_owner()

void Slic3r::GUI::Highlighter::set_timer_owner ( wxWindow *  owner,
int  timerid = wxID_ANY 
)
931{
932 m_timer.SetOwner(owner, timerid);
933 bind_timer(owner);
934}
virtual void bind_timer(wxWindow *owner)=0

References bind_timer(), and m_timer.

Referenced by Slic3r::GUI::PreferencesDialog::PreferencesDialog(), and Slic3r::GUI::Tab::Tab().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_blink_counter

int Slic3r::GUI::Highlighter::m_blink_counter { 0 }
private

Referenced by blink(), and invalidate().

◆ m_timer

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

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


The documentation for this class was generated from the following files: