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
cfgas_gemodule.cpp
Go to the documentation of this file.
1
// Copyright 2020 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
#
include
"xfa/fgas/font/cfgas_gemodule.h"
6
7
#
include
"third_party/base/check.h"
8
#
include
"xfa/fgas/font/cfgas_fontmgr.h"
9
10
namespace
{
11
12
CFGAS_GEModule
* g_module =
nullptr
;
13
14
}
// namespace
15
16
// static
17
void
CFGAS_GEModule
::
Create
() {
18
DCHECK(!g_module);
19
g_module =
new
CFGAS_GEModule
();
20
g_module
->
GetFontMgr
(
)
->
EnumFonts
(
)
;
21
}
22
23
// static
24
void
CFGAS_GEModule
::
Destroy
() {
25
DCHECK(g_module);
26
delete
g_module;
27
g_module =
nullptr
;
28
}
29
30
// static
31
CFGAS_GEModule
*
CFGAS_GEModule
::
Get
() {
32
DCHECK(g_module);
33
return
g_module;
34
}
35
36
CFGAS_GEModule
::CFGAS_GEModule()
37
: font_mgr_(std::make_unique<CFGAS_FontMgr>()) {}
38
39
CFGAS_GEModule
::~CFGAS_GEModule() =
default
;
CFGAS_FontMgr::EnumFonts
bool EnumFonts()
Definition
cfgas_fontmgr.cpp:648
CFGAS_GEModule
Definition
cfgas_gemodule.h:12
CFGAS_GEModule::Get
static CFGAS_GEModule * Get()
Definition
cfgas_gemodule.cpp:31
CFGAS_GEModule::Destroy
static void Destroy()
Definition
cfgas_gemodule.cpp:24
CFGAS_GEModule::GetFontMgr
CFGAS_FontMgr * GetFontMgr()
Definition
cfgas_gemodule.h:18
CFGAS_GEModule::Create
static void Create()
Definition
cfgas_gemodule.cpp:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fgas
font
cfgas_gemodule.cpp
Generated on Wed Nov 13 2024 01:03:59 for Qt by
1.12.0