ELinks 0.18.0
domrect.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.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 "intl/charsets.h"
#include "terminal/event.h"
Include dependency graph for domrect.c:

Data Structures

struct  eljs_domrect

Macros

#define countof(x)

Functions

static JSValue js_domRect_get_property_bottom (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_height (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_left (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_right (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_top (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_width (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_x (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_get_property_y (JSContext *ctx, JSValueConst this_val)
static JSValue js_domRect_set_property_bottom (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_height (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_left (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_right (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_top (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_width (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_x (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_domRect_set_property_y (JSContext *ctx, JSValueConst this_val, JSValue val)
static void js_domRect_finalizer (JSRuntime *rt, JSValue val)
JSValue getDomRect (JSContext *ctx)

Variables

JSClassID js_domRect_class_id
static JSClassDef js_domRect_class
static const JSCFunctionListEntry js_domRect_proto_funcs []

Macro Definition Documentation

◆ countof

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

Function Documentation

◆ getDomRect()

JSValue getDomRect ( JSContext * ctx)

◆ js_domRect_finalizer()

void js_domRect_finalizer ( JSRuntime * rt,
JSValue val )
static

◆ js_domRect_get_property_bottom()

JSValue js_domRect_get_property_bottom ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_height()

JSValue js_domRect_get_property_height ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_left()

JSValue js_domRect_get_property_left ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_right()

JSValue js_domRect_get_property_right ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_top()

JSValue js_domRect_get_property_top ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_width()

JSValue js_domRect_get_property_width ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_x()

JSValue js_domRect_get_property_x ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_get_property_y()

JSValue js_domRect_get_property_y ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_domRect_set_property_bottom()

JSValue js_domRect_set_property_bottom ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_height()

JSValue js_domRect_set_property_height ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_left()

JSValue js_domRect_set_property_left ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_right()

JSValue js_domRect_set_property_right ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_top()

JSValue js_domRect_set_property_top ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_width()

JSValue js_domRect_set_property_width ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_x()

JSValue js_domRect_set_property_x ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

◆ js_domRect_set_property_y()

JSValue js_domRect_set_property_y ( JSContext * ctx,
JSValueConst this_val,
JSValue val )
static

Variable Documentation

◆ js_domRect_class

JSClassDef js_domRect_class
static
Initial value:
= {
"DOMRect",
}
static void js_domRect_finalizer(JSRuntime *rt, JSValue val)
Definition domrect.c:55

◆ js_domRect_class_id

JSClassID js_domRect_class_id

◆ js_domRect_proto_funcs

const JSCFunctionListEntry js_domRect_proto_funcs[]
static
Initial value:
= {
}
static JSValue js_domRect_set_property_left(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:263
static JSValue js_domRect_get_property_left(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:119
static JSValue js_domRect_get_property_width(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:173
static JSValue js_domRect_get_property_right(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:137
static JSValue js_domRect_get_property_top(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:155
static JSValue js_domRect_set_property_width(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:317
static JSValue js_domRect_get_property_y(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:209
static JSValue js_domRect_get_property_bottom(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:83
static JSValue js_domRect_set_property_height(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:245
static JSValue js_domRect_set_property_y(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:353
static JSValue js_domRect_set_property_x(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:335
static JSValue js_domRect_get_property_height(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:101
static JSValue js_domRect_set_property_right(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:281
static JSValue js_domRect_get_property_x(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:191
static JSValue js_domRect_set_property_top(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:299
static JSValue js_domRect_set_property_bottom(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:227