#include <ut_worker.h>
Public Types | |
enum | ConstructMode { NONE = 0x00, IDLE = 0x01, TIMER = 0x02 } |
Static Public Member Functions | |
static UT_Worker * | static_constructor (UT_WorkerCallback cb, void *data, int wantMode, UT_WorkerFactory::ConstructMode &outMode) |
Private Member Functions | |
UT_WorkerFactory () | |
~UT_WorkerFactory () |
Class which is used to construct new instances of UT_Workers based on a passed mode, whose choices can be ORed together
UT_WorkerFactory::UT_WorkerFactory | ( | ) | [private] |
Private c'tor
UT_WorkerFactory::~UT_WorkerFactory | ( | ) | [private] |
Private d'tor
UT_Worker * UT_WorkerFactory::static_constructor | ( | UT_WorkerCallback | cb, | |
void * | data, | |||
int | mode, | |||
UT_WorkerFactory::ConstructMode & | outMode | |||
) | [static] |
Constructs a new UT_Worker object with the callback
cb | and | |
data. | It will try to create the type of UT_Worker specified by | |
mode. | The mode values can be ORed together. IDLE is given preference over TIMER. |
outMode | will be set to the type of object constructed, so that you can static_cast<> it to the proper type for further manipulation, should it be needed |
References IDLE, TIMER, UT_ASSERT, and UT_DEBUGMSG.
Referenced by FV_VisualDragText::_autoScroll(), FV_View::_autoScroll(), FV_VisualInlineImage::_autoScroll(), FV_FrameEdit::_autoScroll(), Defun(), Defun1(), GR_Caret::GR_Caret(), and fl_DocSectionLayout::setHdrFtrHeightChange().