summaryrefslogtreecommitdiff
path: root/src/text_asset_internal.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-07 23:48:43 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-07 23:48:43 +0100
commitdaceaad12cc73404f93d5aae0dd896fcb7b9d3b9 (patch)
tree7dc80711804d23bdcc0987d1372f326f03124c2a /src/text_asset_internal.h
parentf0cada65396759b4be19601d8537119a1bb4fbfa (diff)
wip: ruby2652-ruby
Diffstat (limited to 'src/text_asset_internal.h')
-rw-r--r--src/text_asset_internal.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/text_asset_internal.h b/src/text_asset_internal.h
index 2dfccce9..be22719d 100644
--- a/src/text_asset_internal.h
+++ b/src/text_asset_internal.h
@@ -46,6 +46,7 @@
#include "h_align.h"
#include "load_variable_z.h"
#include "raw_convert.h"
+#include "ruby.h"
#include "v_align.h"
#include "warnings.h"
LIBDCP_DISABLE_WARNINGS
@@ -144,6 +145,21 @@ private:
};
+class Ruby : public Part
+{
+public:
+ Ruby(std::shared_ptr<Part> parent, Font font, dcp::Ruby ruby)
+ : Part(parent, font)
+ , _ruby(ruby)
+ {}
+
+ virtual xmlpp::Element* as_xml(xmlpp::Element* parent, Context &) const override;
+
+private:
+ dcp::Ruby _ruby;
+};
+
+
class Text : public Part
{
public:
@@ -155,8 +171,7 @@ public:
float v_position,
float z_position,
boost::optional<std::string> variable_z,
- Direction direction,
- std::vector<Ruby> rubies
+ Direction direction
)
: Part (parent)
, _h_align (h_align)
@@ -166,7 +181,6 @@ public:
, _z_position(z_position)
, _variable_z(variable_z)
, _direction (direction)
- , _rubies(rubies)
{}
xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const override;
@@ -183,7 +197,6 @@ private:
float _z_position;
boost::optional<std::string> _variable_z;
Direction _direction;
- std::vector<Ruby> _rubies;
};