Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOJSFont.h File Reference
import <Foundation/Foundation.h>
#include <jsapi.h>
+ Include dependency graph for OOJSFont.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitOOJSFont (JSContext *context, JSObject *global)
 

Function Documentation

◆ InitOOJSFont()

void InitOOJSFont ( JSContext * context,
JSObject * global )

Definition at line 38 of file OOJSFont.m.

39{
40 JSObject *fontObject = JS_DefineObject(context, global, "defaultFont", NULL, NULL, OOJS_PROP_READONLY);
41 JS_DefineFunction(context, fontObject, "measureString", FontMeasureString, 1, OOJS_METHOD_READONLY);
42}
static JSBool FontMeasureString(JSContext *context, uintN argc, jsval *vp)
Definition OOJSFont.m:47
#define OOJS_PROP_READONLY
#define OOJS_METHOD_READONLY

References FontMeasureString(), OOJS_METHOD_READONLY, and OOJS_PROP_READONLY.

+ Here is the call graph for this function: