libdcp
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dcp::Subtitle Class Reference
Inheritance diagram for dcp::Subtitle:
dcp::SubtitleImage dcp::SubtitleString

Public Member Functions

Time in () const
 
Time out () const
 
float h_position () const
 
HAlign h_align () const
 
float v_position () const
 
VAlign v_align () const
 
Time fade_up_time () const
 
Time fade_down_time () const
 
void set_in (Time i)
 
void set_out (Time o)
 
void set_h_position (float p)
 
void set_v_position (float p)
 
void set_fade_up_time (Time t)
 
void set_fade_down_time (Time t)
 

Protected Member Functions

 Subtitle (Time in, Time out, float h_position, HAlign h_align, float v_position, VAlign v_align, Time fade_up_time, Time fade_down_time)
 

Protected Attributes

Time _in
 
Time _out
 
float _h_position = 0
 
HAlign _h_align = HAlign::CENTER
 
float _v_position = 0
 
VAlign _v_align = VAlign::CENTER
 
Time _fade_up_time
 
Time _fade_down_time
 

Detailed Description

Definition at line 50 of file subtitle.h.

Constructor & Destructor Documentation

◆ Subtitle()

Subtitle::Subtitle ( Time  in,
Time  out,
float  h_position,
HAlign  h_align,
float  v_position,
VAlign  v_align,
Time  fade_up_time,
Time  fade_down_time 
)
protected
Parameters
v_positionVertical position as a fraction of the screen height (between 0 and 1) from v_align

Definition at line 48 of file subtitle.cc.

Member Function Documentation

◆ in()

Time dcp::Subtitle::in ( ) const
inline
Returns
subtitle start time (relative to the start of the reel)

Definition at line 56 of file subtitle.h.

◆ out()

Time dcp::Subtitle::out ( ) const
inline
Returns
subtitle finish time (relative to the start of the reel)

Definition at line 61 of file subtitle.h.

◆ set_v_position()

void dcp::Subtitle::set_v_position ( float  p)
inline
Parameters
pNew vertical position as a proportion of the screen height from the top (between 0 and 1)

Definition at line 108 of file subtitle.h.

◆ v_position()

float dcp::Subtitle::v_position ( ) const
inline
Returns
vertical position as a proportion of the screen height from the vertical alignment point. (between 0 and 1)

Definition at line 77 of file subtitle.h.

Member Data Documentation

◆ _h_position

float dcp::Subtitle::_h_position = 0
protected

Horizontal position as a proportion of the screen width from the _h_align (between 0 and 1)

Definition at line 139 of file subtitle.h.

◆ _v_position

float dcp::Subtitle::_v_position = 0
protected

Vertical position as a proportion of the screen height from the _v_align (between 0 and 1)

Definition at line 144 of file subtitle.h.


The documentation for this class was generated from the following files: