diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-20 23:17:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-03 09:31:53 +0100 |
| commit | 5048e3e1d91858c2a4132e616438e1943f820124 (patch) | |
| tree | 5ef98efb29690e8320d4e9e36266f41e1214e174 /src/subtitle_string.h | |
| parent | 80fc63959caa039401a4d7e33bc72cd3c6ec2fe3 (diff) | |
Add Z position to subtitles; existing tests pass.
Diffstat (limited to 'src/subtitle_string.h')
| -rw-r--r-- | src/subtitle_string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/subtitle_string.h b/src/subtitle_string.h index 0ffa6ec5..98ff960b 100644 --- a/src/subtitle_string.h +++ b/src/subtitle_string.h @@ -70,6 +70,8 @@ public: * @param h_align Horizontal alignment point * @param v_position Vertical position as a fraction of the screen height (between 0 and 1) from v_align * @param v_align Vertical alignment point + * @param z_position Z position as a proportion of the primary picture width between -1 and +1; + * +ve moves the image away from the viewer, -ve moves it toward the viewer, 0 is in the plane of the screen. * @param direction Direction of text * @param text The text to display * @param effect Effect to use @@ -92,6 +94,7 @@ public: HAlign h_align, float v_position, VAlign v_align, + float z_position, Direction direction, std::string text, Effect effect, |
