ELinks 0.18.0
style.c File Reference
#include <stdio.h>
#include "elinks.h"
#include "document/libdom/corestrings.h"
#include "js/ecmascript.h"
#include "js/quickjs/mapa.h"
#include "js/quickjs/style.h"
#include "js/quickjs.h"
Include dependency graph for style.c:

Macros

#define countof(x)

Functions

static JSValue js_style (JSContext *ctx, JSValueConst this_val, const char *property)
static JSValue js_style_get_property_cssText (JSContext *ctx, JSValueConst this_val)
static JSValue js_set_style (JSContext *ctx, JSValueConst this_val, JSValue val, const char *property)
static JSValue js_style_set_property_cssText (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_get_property_background (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_backgroundClip (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_backgroundColor (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_color (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_display (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_fontStyle (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_fontWeight (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_height (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_left (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_lineStyle (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_lineStyleType (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_textAlign (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_textDecoration (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_top (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_get_property_whiteSpace (JSContext *ctx, JSValueConst this_val)
static JSValue js_style_set_property_background (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_backgroundClip (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_backgroundColor (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_color (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_display (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_fontStyle (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_fontWeight (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_height (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_left (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_lineStyle (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_lineStyleType (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_textAlign (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_textDecoration (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_top (JSContext *ctx, JSValueConst this_val, JSValue val)
static JSValue js_style_set_property_whiteSpace (JSContext *ctx, JSValueConst this_val, JSValue val)
void js_style_finalizer (JSRuntime *rt, JSValue val)
static JSValue js_style_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
JSValue getStyle (JSContext *ctx, void *node)

Variables

static JSClassID js_style_class_id
static const JSCFunctionListEntry js_style_proto_funcs []
static JSClassDef js_style_class

Macro Definition Documentation

◆ countof

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

Function Documentation

◆ getStyle()

JSValue getStyle ( JSContext * ctx,
void * node )

◆ js_set_style()

JSValue js_set_style ( JSContext * ctx,
JSValueConst this_val,
JSValue val,
const char * property )
static

◆ js_style()

JSValue js_style ( JSContext * ctx,
JSValueConst this_val,
const char * property )
static

◆ js_style_finalizer()

void js_style_finalizer ( JSRuntime * rt,
JSValue val )

◆ js_style_get_property_background()

JSValue js_style_get_property_background ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_backgroundClip()

JSValue js_style_get_property_backgroundClip ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_backgroundColor()

JSValue js_style_get_property_backgroundColor ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_color()

JSValue js_style_get_property_color ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_cssText()

JSValue js_style_get_property_cssText ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_display()

JSValue js_style_get_property_display ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_fontStyle()

JSValue js_style_get_property_fontStyle ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_fontWeight()

JSValue js_style_get_property_fontWeight ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_height()

JSValue js_style_get_property_height ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_left()

JSValue js_style_get_property_left ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_lineStyle()

JSValue js_style_get_property_lineStyle ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_lineStyleType()

JSValue js_style_get_property_lineStyleType ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_textAlign()

JSValue js_style_get_property_textAlign ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_textDecoration()

JSValue js_style_get_property_textDecoration ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_top()

JSValue js_style_get_property_top ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_get_property_whiteSpace()

JSValue js_style_get_property_whiteSpace ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_style_set_property_background()

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

◆ js_style_set_property_backgroundClip()

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

◆ js_style_set_property_backgroundColor()

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

◆ js_style_set_property_color()

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

◆ js_style_set_property_cssText()

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

◆ js_style_set_property_display()

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

◆ js_style_set_property_fontStyle()

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

◆ js_style_set_property_fontWeight()

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

◆ js_style_set_property_height()

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

◆ js_style_set_property_left()

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

◆ js_style_set_property_lineStyle()

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

◆ js_style_set_property_lineStyleType()

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

◆ js_style_set_property_textAlign()

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

◆ js_style_set_property_textDecoration()

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

◆ js_style_set_property_top()

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

◆ js_style_set_property_whiteSpace()

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

◆ js_style_toString()

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

Variable Documentation

◆ js_style_class

JSClassDef js_style_class
static
Initial value:
= {
"style",
}
void js_style_finalizer(JSRuntime *rt, JSValue val)
Definition style.c:486

◆ js_style_class_id

JSClassID js_style_class_id
static

◆ js_style_proto_funcs

const JSCFunctionListEntry js_style_proto_funcs[]
static
Initial value:
= {
}
static JSValue js_style_get_property_left(JSContext *ctx, JSValueConst this_val)
Definition style.c:289
static JSValue js_style_get_property_lineStyle(JSContext *ctx, JSValueConst this_val)
Definition style.c:298
static JSValue js_style_set_property_backgroundColor(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:370
static JSValue js_style_set_property_left(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:424
static JSValue js_style_set_property_lineStyle(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:433
static JSValue js_style_set_property_lineStyleType(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:442
static JSValue js_style_get_property_lineStyleType(JSContext *ctx, JSValueConst this_val)
Definition style.c:307
static JSValue js_style_get_property_height(JSContext *ctx, JSValueConst this_val)
Definition style.c:280
static JSValue js_style_get_property_background(JSContext *ctx, JSValueConst this_val)
Definition style.c:217
static JSValue js_style_get_property_cssText(JSContext *ctx, JSValueConst this_val)
Definition style.c:76
static JSValue js_style_get_property_fontWeight(JSContext *ctx, JSValueConst this_val)
Definition style.c:271
static JSValue js_style_get_property_fontStyle(JSContext *ctx, JSValueConst this_val)
Definition style.c:262
static JSValue js_style_get_property_backgroundClip(JSContext *ctx, JSValueConst this_val)
Definition style.c:226
static JSValue js_style_get_property_backgroundColor(JSContext *ctx, JSValueConst this_val)
Definition style.c:235
static JSValue js_style_get_property_top(JSContext *ctx, JSValueConst this_val)
Definition style.c:334
static JSValue js_style_set_property_whiteSpace(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:478
static JSValue js_style_get_property_whiteSpace(JSContext *ctx, JSValueConst this_val)
Definition style.c:343
static JSValue js_style_get_property_textDecoration(JSContext *ctx, JSValueConst this_val)
Definition style.c:325
static JSValue js_style_get_property_textAlign(JSContext *ctx, JSValueConst this_val)
Definition style.c:316
static JSValue js_style_set_property_textDecoration(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:460
static JSValue js_style_set_property_fontStyle(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:397
static JSValue js_style_set_property_backgroundClip(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:361
static JSValue js_style_set_property_top(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:469
static JSValue js_style_set_property_textAlign(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:451
static JSValue js_style_set_property_fontWeight(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:406
static JSValue js_style_set_property_color(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:379
static JSValue js_style_get_property_color(JSContext *ctx, JSValueConst this_val)
Definition style.c:244
static JSValue js_style_set_property_height(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:415
static JSValue js_style_set_property_cssText(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:162
static JSValue js_style_get_property_display(JSContext *ctx, JSValueConst this_val)
Definition style.c:253
static JSValue js_style_set_property_background(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:352
static JSValue js_style_set_property_display(JSContext *ctx, JSValueConst this_val, JSValue val)
Definition style.c:388