OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / interop / Model / SourceSubtitle.cs
1 // --------------------------------------------------------------------------------------------------------------------\r
2 // <copyright file="SourceSubtitle.cs" company="HandBrake Project (http://handbrake.fr)">\r
3 //   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
4 // </copyright>\r
5 // <summary>\r
6 //   Defines the SourceSubtitle type.\r
7 // </summary>\r
8 // --------------------------------------------------------------------------------------------------------------------\r
9 \r
10 namespace HandBrake.Interop.Model\r
11 {\r
12     /// <summary>\r
13     /// A Source Subtitle\r
14     /// </summary>\r
15     public class SourceSubtitle\r
16     {\r
17         /// <summary>\r
18         /// Gets or sets the 1-based subtitle track number. 0 means foriegn audio search.\r
19         /// </summary>\r
20         public int TrackNumber { get; set; }\r
21 \r
22         /// <summary>\r
23         /// Gets or sets a value indicating whether the subtitle is Default.\r
24         /// </summary>\r
25         public bool Default { get; set; }\r
26 \r
27         /// <summary>\r
28         /// Gets or sets a value indicating whether the subtitle is Forced.\r
29         /// </summary>\r
30         public bool Forced { get; set; }\r
31 \r
32         /// <summary>\r
33         /// Gets or sets a value indicating whether the subtitle is BurnedIn.\r
34         /// </summary>\r
35         public bool BurnedIn { get; set; }\r
36 \r
37         /// <summary>\r
38         /// Clone the Source Subtitle\r
39         /// </summary>\r
40         /// <returns>\r
41         /// A Source Subtitle\r
42         /// </returns>\r
43         public SourceSubtitle Clone()\r
44         {\r
45             return new SourceSubtitle\r
46             {\r
47                 TrackNumber = this.TrackNumber,\r
48                 Default = this.Default,\r
49                 Forced = this.Forced,\r
50                 BurnedIn = this.BurnedIn\r
51             };\r
52         }\r
53     }\r
54 }\r