22 #ifndef VIDEO_SUBTITLES_H 23 #define VIDEO_SUBTITLES_H 25 #include "common/str.h" 26 #include "common/array.h" 27 #include "common/hashmap.h" 28 #include "common/rect.h" 52 seq = seq_; start = start_; end = end_; parts = parts_;
57 seq = seq_; start = start_; end = end_;
83 void close() { _loaded =
false; _subtitle.clear(); _fname.clear(); _srtParser.cleanup(); }
84 void setFont(
const char *fontname,
int height = 18,
Common::String type =
"regular");
86 void setColor(byte r, byte g, byte b);
87 void setPadding(uint16 horizontal, uint16 vertical);
88 bool drawSubtitle(uint32 timestamp,
bool force =
false,
bool showSFX =
false);
89 bool isLoaded()
const {
return _loaded || _subtitleDev; }
92 void renderSubtitle()
const;
97 bool _overlayHasAlpha;
107 mutable int16 _lastOverlayWidth, _lastOverlayHeight;
114 uint32 _transparentColor;
Definition: subtitles.h:37
Definition: subtitles.h:77
void push_back(const T &element)
Definition: array.h:183
Definition: formatinfo.h:28
Definition: subtitles.h:44
Definition: subtitles.h:62
Definition: avi_frames.h:36