MeshLib Documentation
Loading...
Searching...
No Matches
MR::CommandLoop Class Reference

#include <MRCommandLoop.h>

Public Types

enum class  StartPosition {
  AfterWindowInit , AfterSplashAppear , AfterPluginInit , AfterSplashHide ,
  AfterWindowAppear
}
 
using CommandFunc = std::function<void()>
 

Static Public Member Functions

static MRVIEWER_API void setMainThreadId (const std::thread::id &id)
 
static MRVIEWER_API std::thread::id getMainThreadId ()
 
static MRVIEWER_API void setState (StartPosition state)
 
static MRVIEWER_API void appendCommand (CommandFunc func, StartPosition state=StartPosition::AfterSplashHide)
 
static MRVIEWER_API void runCommandFromGUIThread (CommandFunc func)
 
static MRVIEWER_API void processCommands ()
 
static MRVIEWER_API void removeCommands (bool closeLoop)
 

Member Typedef Documentation

◆ CommandFunc

using MR::CommandLoop::CommandFunc = std::function<void()>

Member Enumeration Documentation

◆ StartPosition

enum class MR::CommandLoop::StartPosition
strong
Enumerator
AfterWindowInit 
AfterSplashAppear 
AfterPluginInit 
AfterSplashHide 
AfterWindowAppear 

Member Function Documentation

◆ appendCommand()

static MRVIEWER_API void MR::CommandLoop::appendCommand ( CommandFunc func,
StartPosition state = StartPosition::AfterSplashHide )
static

◆ getMainThreadId()

static MRVIEWER_API std::thread::id MR::CommandLoop::getMainThreadId ( )
static

◆ processCommands()

static MRVIEWER_API void MR::CommandLoop::processCommands ( )
static

◆ removeCommands()

static MRVIEWER_API void MR::CommandLoop::removeCommands ( bool closeLoop)
static

◆ runCommandFromGUIThread()

static MRVIEWER_API void MR::CommandLoop::runCommandFromGUIThread ( CommandFunc func)
static

◆ setMainThreadId()

static MRVIEWER_API void MR::CommandLoop::setMainThreadId ( const std::thread::id & id)
static

◆ setState()

static MRVIEWER_API void MR::CommandLoop::setState ( StartPosition state)
static

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