Oolite 1.91.0.7645-241119-222d325
|
Go to the source code of this file.
Classes | |
category | OOJSTimer(Private) |
Macros | |
#define | kMinInterval 0.25 |
Enumerations | |
enum | { kTimer_nextTime , kTimer_interval , kTimer_isRunning } |
Functions | |
static JSBool | TimerGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | TimerSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static void | TimerFinalize (JSContext *context, JSObject *this) |
static JSBool | TimerConstruct (JSContext *context, uintN argc, jsval *vp) |
static JSBool | TimerStart (JSContext *context, uintN argc, jsval *vp) |
static JSBool | TimerStop (JSContext *context, uintN argc, jsval *vp) |
DEFINE_JS_OBJECT_GETTER (JSTimerGetTimer, &sTimerClass, sTimerPrototype, OOJSTimer) | |
void | InitOOJSTimer (JSContext *context, JSObject *global) |
Variables | |
static JSObject * | sTimerPrototype |
static JSClass | sTimerClass |
static JSPropertySpec | sTimerProperties [] |
static JSFunctionSpec | sTimerMethods [] |
#define kMinInterval 0.25 |
Definition at line 32 of file OOJSTimer.m.
Referenced by TimerConstruct().
anonymous enum |
Enumerator | |
---|---|
kTimer_nextTime | |
kTimer_interval | |
kTimer_isRunning |
Definition at line 222 of file OOJSTimer.m.
DEFINE_JS_OBJECT_GETTER | ( | JSTimerGetTimer | , |
& | sTimerClass, | ||
sTimerPrototype | , | ||
OOJSTimer | ) |
void InitOOJSTimer | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 254 of file OOJSTimer.m.
References OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), sTimerClass, sTimerMethods, sTimerProperties, sTimerPrototype, and TimerConstruct().
|
static |
Definition at line 358 of file OOJSTimer.m.
References EXPECT_NOT, kMinInterval, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJSReportBadArguments(), OOJSReportError(), and OOScriptTimer::scheduleTimer.
Referenced by InitOOJSTimer().
|
static |
Definition at line 336 of file OOJSTimer.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT_VOID, and OOLogWARN.
|
static |
Definition at line 261 of file OOJSTimer.m.
References EXPECT_NOT, kTimer_interval, kTimer_isRunning, kTimer_nextTime, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), and sTimerProperties.
|
static |
Definition at line 292 of file OOJSTimer.m.
References EXPECT_NOT, kTimer_interval, kTimer_nextTime, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOJSReportWarning(), OOScriptTimer::setInterval:, and sTimerProperties.
|
static |
Definition at line 429 of file OOJSTimer.m.
References EXPECT_NOT, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, and OOJS_THIS.
|
static |
Definition at line 444 of file OOJSTimer.m.
|
static |
Definition at line 36 of file OOJSTimer.m.
Referenced by InitOOJSTimer().
|
static |
Definition at line 241 of file OOJSTimer.m.
Referenced by InitOOJSTimer().
|
static |
Definition at line 231 of file OOJSTimer.m.
Referenced by InitOOJSTimer(), TimerGetProperty(), and TimerSetProperty().
|
static |
Definition at line 35 of file OOJSTimer.m.
Referenced by InitOOJSTimer().