ELinks 0.18.0
screen.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "document/view.h"
#include "js/ecmascript.h"
#include "js/quickjs.h"
#include "js/quickjs/screen.h"
#include "session/session.h"
Include dependency graph for screen.c:

Macros

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

Functions

static JSValue js_screen_get_property_availHeight (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_screen_get_property_availWidth (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_screen_get_property_height (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_screen_get_property_width (JSContext *ctx, JSValueConst this_val)
 
static JSValue js_screen_toString (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
 
int js_screen_init (JSContext *ctx)
 

Variables

static JSClassID js_screen_class_id
 
static const JSCFunctionListEntry js_screen_proto_funcs []
 
static JSClassDef js_screen_class
 

Macro Definition Documentation

◆ countof

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

Function Documentation

◆ js_screen_get_property_availHeight()

static JSValue js_screen_get_property_availHeight ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_screen_get_property_availWidth()

static JSValue js_screen_get_property_availWidth ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_screen_get_property_height()

static JSValue js_screen_get_property_height ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_screen_get_property_width()

static JSValue js_screen_get_property_width ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_screen_init()

int js_screen_init ( JSContext * ctx)

◆ js_screen_toString()

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

Variable Documentation

◆ js_screen_class

JSClassDef js_screen_class
static
Initial value:
= {
"screen",
}

◆ js_screen_class_id

JSClassID js_screen_class_id
static

◆ js_screen_proto_funcs

const JSCFunctionListEntry js_screen_proto_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("availHeight", js_screen_get_property_availHeight, NULL),
JS_CGETSET_DEF("availWidth", js_screen_get_property_availWidth, NULL),
JS_CGETSET_DEF("height", js_screen_get_property_height, NULL),
JS_CGETSET_DEF("width", js_screen_get_property_width, NULL),
}
#define NULL
Definition explodename.c:35
static JSValue js_screen_get_property_width(JSContext *ctx, JSValueConst this_val)
Definition screen.c:100
static JSValue js_screen_get_property_availWidth(JSContext *ctx, JSValueConst this_val)
Definition screen.c:48
static JSValue js_screen_get_property_availHeight(JSContext *ctx, JSValueConst this_val)
Definition screen.c:24
static JSValue js_screen_get_property_height(JSContext *ctx, JSValueConst this_val)
Definition screen.c:72