OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp} Namespace Reference

Functions

bool input_pending ()
bool yielding ()

Variables

constexpr int tick_ms = 250
constexpr int quiet_ms = 500
constexpr int slice_ms = 40
constexpr int next_slice_ms = 5

Function Documentation

◆ input_pending()

bool Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp}::input_pending ( )
38{
39#ifdef _WIN32
40 // Windows synthesizes a mouse move whenever a window appears under the cursor, so those
41 // do not count.
42 return (GetQueueStatus(QS_INPUT & ~QS_MOUSEMOVE) >> 16) != 0;
43#else
44 return false;
45#endif
46}

References input_pending().

Referenced by input_pending().

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

◆ yielding()

bool Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp}::yielding ( )
50{
51 const wxEventLoopBase* loop = wxEventLoopBase::GetActive();
52 return loop != nullptr && loop->IsYielding();
53}

References yielding().

Referenced by yielding().

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

Variable Documentation

◆ next_slice_ms

int Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp}::next_slice_ms = 5
constexpr

◆ quiet_ms

int Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp}::quiet_ms = 500
constexpr

◆ slice_ms

int Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp}::slice_ms = 40
constexpr

◆ tick_ms

int Slic3r::GUI::anonymous_namespace{IdleScheduler.cpp}::tick_ms = 250
constexpr