Public Types | Static Public Member Functions | Private Member Functions

UT_WorkerFactory Class Reference

#include <ut_worker.h>

List of all members.

Public Types

enum  ConstructMode { NONE = 0x00, IDLE = 0x01, TIMER = 0x02 }

Static Public Member Functions

static UT_Workerstatic_constructor (UT_WorkerCallback cb, void *data, int wantMode, UT_WorkerFactory::ConstructMode &outMode)

Private Member Functions

 UT_WorkerFactory ()
 ~UT_WorkerFactory ()

Detailed Description

Class which is used to construct new instances of UT_Workers based on a passed mode, whose choices can be ORed together


Member Enumeration Documentation

Enumerator:
NONE 
IDLE 
TIMER 

Constructor & Destructor Documentation

UT_WorkerFactory::UT_WorkerFactory (  )  [private]

Private c'tor

UT_WorkerFactory::~UT_WorkerFactory (  )  [private]

Private d'tor


Member Function Documentation

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

Parameters:
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.
Returns:
a valid UT_Worker on success, NULL on failure.
Parameters:
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().


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