22 #ifndef M4_SUBTITLES_H 23 #define M4_SUBTITLES_H 25 #include "common/hashmap.h" 26 #include "video/subtitles.h" 29 class TranslationManager;
40 void clearSubtitle()
const override;
41 void updateSubtitleOverlay()
const override;
42 bool shouldShowSubtitle()
const override;
46 void setupSubtitles();
48 int16 nudgeSubtitle()
const;
51 bool _subtitlesEnabled;
52 mutable int16 _subtitleYOffset = 0;
55 const int MIN_FONT_SIZE = 8;
56 const float BASE_FONT_SIZE_PERCENT = 0.023f;
58 #ifdef USE_TRANSLATION Definition: subtitles.h:34
Definition: subtitles.h:77
Definition: algorithm.h:29
Definition: translation.h:87
Definition: database.h:28