Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjs_style.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"fxjs/cjs_style.h"
8
9
const
JSConstSpec
CJS_Style::ConstSpecs[] = {
10
{
"ch"
,
JSConstSpec
::
String
, 0,
"check"
},
11
{
"cr"
,
JSConstSpec
::
String
, 0,
"cross"
},
12
{
"di"
,
JSConstSpec
::
String
, 0,
"diamond"
},
13
{
"ci"
,
JSConstSpec
::
String
, 0,
"circle"
},
14
{
"st"
,
JSConstSpec
::
String
, 0,
"star"
},
15
{
"sq"
,
JSConstSpec
::
String
, 0,
"square"
}};
16
17
uint32_t CJS_Style::ObjDefnID = 0;
18
19
// static
20
void
CJS_Style::
DefineJSObjects
(
CFXJS_Engine
* pEngine) {
21
ObjDefnID = pEngine->DefineObj(
"style"
,
FXJSOBJTYPE_STATIC
,
nullptr
,
nullptr
);
22
DefineConsts
(pEngine, ObjDefnID, ConstSpecs);
23
}
FXJSOBJTYPE_STATIC
@ FXJSOBJTYPE_STATIC
Definition
cfxjs_engine.h:37
CFXJS_Engine
Definition
cfxjs_engine.h:83
CJS_Object::DefineConsts
static void DefineConsts(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSConstSpec > consts)
Definition
cjs_object.cpp:12
CJS_Style::DefineJSObjects
static void DefineJSObjects(CFXJS_Engine *pEngine)
Definition
cjs_style.cpp:20
JSConstSpec
Definition
cjs_object.h:16
JSConstSpec::String
@ String
Definition
cjs_object.h:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
cjs_style.cpp
Generated on Thu Nov 14 2024 01:02:40 for Qt by
1.12.0