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_position.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_position.h"
8
9
const
JSConstSpec
CJS_Position::ConstSpecs[] = {
10
{
"textOnly"
,
JSConstSpec
::
Number
, 0,
nullptr
},
11
{
"iconOnly"
,
JSConstSpec
::
Number
, 1,
nullptr
},
12
{
"iconTextV"
,
JSConstSpec
::
Number
, 2,
nullptr
},
13
{
"textIconV"
,
JSConstSpec
::
Number
, 3,
nullptr
},
14
{
"iconTextH"
,
JSConstSpec
::
Number
, 4,
nullptr
},
15
{
"textIconH"
,
JSConstSpec
::
Number
, 5,
nullptr
},
16
{
"overlay"
,
JSConstSpec
::
Number
, 6,
nullptr
}};
17
18
uint32_t CJS_Position::ObjDefnID = 0;
19
20
// static
21
void
CJS_Position::
DefineJSObjects
(
CFXJS_Engine
* pEngine) {
22
ObjDefnID =
23
pEngine->DefineObj(
"position"
,
FXJSOBJTYPE_STATIC
,
nullptr
,
nullptr
);
24
DefineConsts
(pEngine, ObjDefnID, ConstSpecs);
25
}
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_Position::DefineJSObjects
static void DefineJSObjects(CFXJS_Engine *pEngine)
Definition
cjs_position.cpp:21
JSConstSpec
Definition
cjs_object.h:16
JSConstSpec::Number
@ Number
Definition
cjs_object.h:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
cjs_position.cpp
Generated on Sat Sep 21 2024 00:59:02 for Qt by
1.12.0