ELinks 0.18.0
customevent.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "document/document.h"
#include "document/view.h"
#include "js/ecmascript.h"
#include "js/libdom/dom.h"
#include "js/quickjs.h"
#include "js/quickjs/element.h"
#include "js/quickjs/event.h"
#include "js/quickjs/node.h"
#include "intl/charsets.h"
#include "terminal/event.h"
#include "viewer/text/vs.h"
Include dependency graph for customevent.c:

Macros

#define countof(x)

Functions

static JSValue js_customEvent_get_property_bubbles (JSContext *ctx, JSValueConst this_val)
static JSValue js_customEvent_get_property_cancelable (JSContext *ctx, JSValueConst this_val)
static JSValue js_customEvent_get_property_defaultPrevented (JSContext *ctx, JSValueConst this_val)
static JSValue js_customEvent_get_property_detail (JSContext *ctx, JSValueConst this_val)
static JSValue js_customEvent_get_property_target (JSContext *ctx, JSValueConst this_val)
static JSValue js_customEvent_get_property_type (JSContext *ctx, JSValueConst this_val)
static JSValue js_customEvent_preventDefault (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
static void js_customEvent_finalizer (JSRuntime *rt, JSValue val)
static JSValue js_customEvent_constructor (JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv)
static void JS_NewGlobalCConstructor2 (JSContext *ctx, JSValue func_obj, const char *name, JSValueConst proto)
static JSValueConst JS_NewGlobalCConstructor (JSContext *ctx, const char *name, JSCFunction *func, int length, JSValueConst proto)
int js_customEvent_init (JSContext *ctx)

Variables

static JSClassID js_customEvent_class_id
static JSClassDef js_customEvent_class
static const JSCFunctionListEntry js_customEvent_proto_funcs []

Macro Definition Documentation

◆ countof

#define countof ( x)
Value:
(sizeof(x) / sizeof((x)[0]))

Function Documentation

◆ js_customEvent_constructor()

JSValue js_customEvent_constructor ( JSContext * ctx,
JSValueConst new_target,
int argc,
JSValueConst * argv )
static

◆ js_customEvent_finalizer()

void js_customEvent_finalizer ( JSRuntime * rt,
JSValue val )
static

◆ js_customEvent_get_property_bubbles()

JSValue js_customEvent_get_property_bubbles ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_customEvent_get_property_cancelable()

JSValue js_customEvent_get_property_cancelable ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_customEvent_get_property_defaultPrevented()

JSValue js_customEvent_get_property_defaultPrevented ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_customEvent_get_property_detail()

JSValue js_customEvent_get_property_detail ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_customEvent_get_property_target()

JSValue js_customEvent_get_property_target ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_customEvent_get_property_type()

JSValue js_customEvent_get_property_type ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_customEvent_init()

int js_customEvent_init ( JSContext * ctx)

◆ js_customEvent_preventDefault()

JSValue js_customEvent_preventDefault ( JSContext * ctx,
JSValueConst this_val,
int argc,
JSValueConst * argv )
static

◆ JS_NewGlobalCConstructor()

JSValueConst JS_NewGlobalCConstructor ( JSContext * ctx,
const char * name,
JSCFunction * func,
int length,
JSValueConst proto )
static

◆ JS_NewGlobalCConstructor2()

void JS_NewGlobalCConstructor2 ( JSContext * ctx,
JSValue func_obj,
const char * name,
JSValueConst proto )
static

Variable Documentation

◆ js_customEvent_class

JSClassDef js_customEvent_class
static
Initial value:
= {
"CustomEvent",
}
static void js_customEvent_finalizer(JSRuntime *rt, JSValue val)
Definition customevent.c:40

◆ js_customEvent_class_id

JSClassID js_customEvent_class_id
static

◆ js_customEvent_proto_funcs

const JSCFunctionListEntry js_customEvent_proto_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("bubbles", js_customEvent_get_property_bubbles, NULL),
JS_CGETSET_DEF("cancelable", js_customEvent_get_property_cancelable, NULL),
JS_CGETSET_DEF("defaultPrevented", js_customEvent_get_property_defaultPrevented, NULL),
JS_CGETSET_DEF("detail", js_customEvent_get_property_detail, NULL),
JS_CGETSET_DEF("target", js_customEvent_get_property_target, NULL),
JS_CGETSET_DEF("type", js_customEvent_get_property_type, NULL),
JS_CFUNC_DEF("preventDefault", 0, js_customEvent_preventDefault),
}
#define NULL
Definition explodename.c:35
static JSValue js_customEvent_get_property_target(JSContext *ctx, JSValueConst this_val)
Definition customevent.c:189
static JSValue js_customEvent_preventDefault(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
Definition customevent.c:248
static JSValue js_customEvent_get_property_cancelable(JSContext *ctx, JSValueConst this_val)
Definition customevent.c:97
static JSValue js_customEvent_get_property_detail(JSContext *ctx, JSValueConst this_val)
Definition customevent.c:162
static JSValue js_customEvent_get_property_type(JSContext *ctx, JSValueConst this_val)
Definition customevent.c:219
static JSValue js_customEvent_get_property_defaultPrevented(JSContext *ctx, JSValueConst this_val)
Definition customevent.c:140
static JSValue js_customEvent_get_property_bubbles(JSContext *ctx, JSValueConst this_val)
Definition customevent.c:75