C# Class SubLib.Core.Domain.Frames

Represents the frames of a subtitle.
Frames and Times always exist for any Subtitle. This class is automatically constructed when constructing a Subtitle.
ファイルを表示 Open project: GNOME/gnome-subtitles Class Usage Examples

Private Properties

Property Type Description
Frames SubLib.Core.Timing
Frames SubLib.Core.Timing
Scale void
SetFieldsForDeepClone void

Public Methods

Method Description
Clone ( Subtitle subtitleClone ) : Frames
Shift ( int frames ) : void

Shifts the subtitle with a specified amount of frames.

ToString ( ) : string

Private Methods

Method Description
Frames ( Subtitle subtitle ) : SubLib.Core.Timing
Frames ( Subtitle subtitle, int start, int end ) : SubLib.Core.Timing
Scale ( double factor, int baseFrame ) : void
SetFieldsForDeepClone ( Subtitle subtitle ) : void

Method Details

Clone() public method

public Clone ( Subtitle subtitleClone ) : Frames
subtitleClone Subtitle
return Frames

Shift() public method

Shifts the subtitle with a specified amount of frames.
public Shift ( int frames ) : void
frames int The number of frames to shift the subtitle with, which can be positive or negative.
return void

ToString() public method

public ToString ( ) : string
return string