X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer_text.h;h=38affd5ef1cc0953e8bee3ad87b1df8dcc8fc94f;hb=dba7e1137282b52a1bd6ad1d56fe6371a8c97e30;hp=93b6cd9706d99a07ca298b10da3e3eb0682d3c92;hpb=ae95d9cab28e414245e15ddeae20e96735594a8b;p=dcpomatic.git diff --git a/src/lib/player_text.h b/src/lib/player_text.h index 93b6cd970..38affd5ef 100644 --- a/src/lib/player_text.h +++ b/src/lib/player_text.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,25 +18,28 @@ */ -#ifndef DCPOMATIC_PLAYER_TEXT_H -#define DCPOMATIC_PLAYER_TEXT_H + +#ifndef DCPOMATIC_PLAYER_CAPTION_H +#define DCPOMATIC_PLAYER_CAPTION_H + #include "bitmap_text.h" -#include "dcpomatic_time.h" -#include "plain_text.h" +#include "string_text.h" + + +namespace dcpomatic { + class Font; +} -class Font; /** A set of text (subtitle/CCAP) which span the same time period */ class PlayerText { public: - void add_fonts (std::list > fonts_); - std::list > fonts; - /** BitmapTexts, with their rectangles transformed as specified by their content */ - std::list image; - std::list text; + std::list<BitmapText> bitmap; + std::list<StringText> string; }; + #endif