X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fvertical_reference.h;h=27c4ca4b7fbd3c828509b0fdc578b285e7846b01;hb=2115170a6f8c3fa0cec8c15fc3f3b81282a6e87f;hp=8f5d89916d55f8aa4c2cae11b7e996c9ac32aafa;hpb=5877be91301e5dd54ca125c0acd7bfb1ecc3dcd6;p=libsub.git diff --git a/src/vertical_reference.h b/src/vertical_reference.h index 8f5d899..27c4ca4 100644 --- a/src/vertical_reference.h +++ b/src/vertical_reference.h @@ -26,9 +26,15 @@ namespace sub { enum VerticalReference { + /** distance is from the top of the screen to the top of the subtitle, positive moves down */ TOP_OF_SCREEN, - CENTRE_OF_SCREEN, + /** distance is from the centre of the screen to the centre of the subtitle, positive moves down */ + VERTICAL_CENTRE_OF_SCREEN, + /** distance is from the bottom of the screen to the bottom of the subtitle, positive moves up */ BOTTOM_OF_SCREEN, + /** position on screen is not known, so we are referring + * to the top of the subtitle; positive distances move down from there + */ TOP_OF_SUBTITLE };