summaryrefslogtreecommitdiff
path: root/core/fxge
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge')
-rw-r--r--core/fxge/cfx_font.cpp4
-rw-r--r--core/fxge/cfx_font.h5
-rw-r--r--core/fxge/cfx_renderdevice.cpp8
-rw-r--r--core/fxge/cfx_renderdevice.h6
4 files changed, 15 insertions, 8 deletions
diff --git a/core/fxge/cfx_font.cpp b/core/fxge/cfx_font.cpp
index bca711f0bb..6d969a345c 100644
--- a/core/fxge/cfx_font.cpp
+++ b/core/fxge/cfx_font.cpp
@@ -228,6 +228,10 @@ void CFX_Font::SetFace(FXFT_Face face) {
ClearFaceCache();
m_Face = face;
}
+
+void CFX_Font::SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) {
+ m_pSubstFont = std::move(subst);
+}
#endif // PDF_ENABLE_XFA
CFX_Font::~CFX_Font() {
diff --git a/core/fxge/cfx_font.h b/core/fxge/cfx_font.h
index 13cb892c19..c8c4cf7a5f 100644
--- a/core/fxge/cfx_font.h
+++ b/core/fxge/cfx_font.h
@@ -8,7 +8,6 @@
#define CORE_FXGE_CFX_FONT_H_
#include <memory>
-#include <utility>
#include <vector>
#include "core/fxcrt/bytestring.h"
@@ -47,9 +46,7 @@ class CFX_Font {
bool LoadFile(const RetainPtr<IFX_SeekableReadStream>& pFile, int nFaceIndex);
void SetFace(FXFT_Face face);
- void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst) {
- m_pSubstFont = std::move(subst);
- }
+ void SetSubstFont(std::unique_ptr<CFX_SubstFont> subst);
#endif // PDF_ENABLE_XFA
const CFX_GlyphBitmap* LoadGlyphBitmap(uint32_t glyph_index,
diff --git a/core/fxge/cfx_renderdevice.cpp b/core/fxge/cfx_renderdevice.cpp
index 63bf1d9ebd..919a7a98a7 100644
--- a/core/fxge/cfx_renderdevice.cpp
+++ b/core/fxge/cfx_renderdevice.cpp
@@ -429,6 +429,14 @@ CFX_Matrix CFX_RenderDevice::GetCTM() const {
return m_pDeviceDriver->GetCTM();
}
+RetainPtr<CFX_DIBitmap> CFX_RenderDevice::GetBitmap() const {
+ return m_pBitmap;
+}
+
+void CFX_RenderDevice::SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap) {
+ m_pBitmap = pBitmap;
+}
+
bool CFX_RenderDevice::CreateCompatibleBitmap(
const RetainPtr<CFX_DIBitmap>& pDIB,
int width,
diff --git a/core/fxge/cfx_renderdevice.h b/core/fxge/cfx_renderdevice.h
index 0f1cf9b6ca..5b18b2293a 100644
--- a/core/fxge/cfx_renderdevice.h
+++ b/core/fxge/cfx_renderdevice.h
@@ -113,10 +113,8 @@ class CFX_RenderDevice {
int GetRenderCaps() const { return m_RenderCaps; }
int GetDeviceCaps(int id) const;
CFX_Matrix GetCTM() const;
- RetainPtr<CFX_DIBitmap> GetBitmap() const { return m_pBitmap; }
- void SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap) {
- m_pBitmap = pBitmap;
- }
+ RetainPtr<CFX_DIBitmap> GetBitmap() const;
+ void SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap);
bool CreateCompatibleBitmap(const RetainPtr<CFX_DIBitmap>& pDIB,
int width,
int height) const;