aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/cairo/PangoTextLayout.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-06-06 11:27:39 +0800
committercrupest <crupest@outlook.com>2022-06-06 11:27:39 +0800
commit3035bafa40f0814c4a780e38ef37256e3506838a (patch)
tree36eb36dd2afce8a1e8fade4d29592d78acb483bc /include/cru/platform/graphics/cairo/PangoTextLayout.h
parenta49064e065eef5de51ba188f691c610dd0a9fcaf (diff)
downloadcru-3035bafa40f0814c4a780e38ef37256e3506838a.tar.gz
cru-3035bafa40f0814c4a780e38ef37256e3506838a.tar.bz2
cru-3035bafa40f0814c4a780e38ef37256e3506838a.zip
...
Diffstat (limited to 'include/cru/platform/graphics/cairo/PangoTextLayout.h')
-rw-r--r--include/cru/platform/graphics/cairo/PangoTextLayout.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/cru/platform/graphics/cairo/PangoTextLayout.h b/include/cru/platform/graphics/cairo/PangoTextLayout.h
index 992e5b4a..3f3a67b5 100644
--- a/include/cru/platform/graphics/cairo/PangoTextLayout.h
+++ b/include/cru/platform/graphics/cairo/PangoTextLayout.h
@@ -1,11 +1,14 @@
#pragma once
#include "../TextLayout.h"
#include "CairoResource.h"
+#include "PangoFont.h"
+
+#include <pango/pango.h>
namespace cru::platform::graphics::cairo {
class PangoTextLayout : public CairoResource, public virtual ITextLayout {
public:
- explicit PangoTextLayout(CairoGraphicsFactory* factory);
+ PangoTextLayout(CairoGraphicsFactory* factory, std::shared_ptr<IFont> font);
~PangoTextLayout() override;
@@ -34,5 +37,8 @@ class PangoTextLayout : public CairoResource, public virtual ITextLayout {
private:
String text_;
+ std::shared_ptr<PangoFont> font_;
+
+ PangoLayout* pango_layout_;
};
} // namespace cru::platform::graphics::cairo