ELinks 0.19.1
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, int x, int y, int width, int height, int top, int right, int bottom, int left)

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,
int x,
int y,
int width,
int height,
int top,
int right,
int bottom,
int left )

◆ 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:274
static JSValue js_domRect_get_property_left(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:122
static JSValue js_domRect_get_property_width(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:179
static JSValue js_domRect_get_property_right(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:141
static JSValue js_domRect_get_property_top(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:160
static JSValue js_domRect_set_property_width(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:331
static JSValue js_domRect_get_property_y(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:217
static JSValue js_domRect_get_property_bottom(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:84
static JSValue js_domRect_set_property_height(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:255
static JSValue js_domRect_set_property_y(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:369
static JSValue js_domRect_set_property_x(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:350
static JSValue js_domRect_get_property_height(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:103
static JSValue js_domRect_set_property_right(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:293
static JSValue js_domRect_get_property_x(JSContext *ctx, JSValueConst this_val)
Definition domrect.c:198
static JSValue js_domRect_set_property_top(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:312
static JSValue js_domRect_set_property_bottom(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition domrect.c:236