summaryrefslogtreecommitdiffstats
path: root/win/C#/Model
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-06-06 14:14:19 +0000
committersr55 <[email protected]>2010-06-06 14:14:19 +0000
commit833e294b1339e9843a3f82fe1b6779be9f7c7093 (patch)
treef2e8fc2276e26365c16519ba29b62baba1ab908e /win/C#/Model
parent62d42d9f7a808d0f5f5432b26f88f977f13269dc (diff)
WinGui:
- Some changes / improvements to the current models / parsing models. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3359 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Model')
-rw-r--r--win/C#/Model/Cropping.cs56
-rw-r--r--win/C#/Model/SubtitleType.cs18
2 files changed, 74 insertions, 0 deletions
diff --git a/win/C#/Model/Cropping.cs b/win/C#/Model/Cropping.cs
new file mode 100644
index 000000000..63a84afb1
--- /dev/null
+++ b/win/C#/Model/Cropping.cs
@@ -0,0 +1,56 @@
+/* Cropping.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
+
+namespace Handbrake.Model
+{
+ /// <summary>
+ /// Cropping T B L R
+ /// </summary>
+ public class Cropping
+ {
+ /// <summary>
+ /// Gets or sets Top.
+ /// </summary>
+ public int Top { get; set; }
+
+ /// <summary>
+ /// Gets or sets Bottom.
+ /// </summary>
+ public int Bottom { get; set; }
+
+ /// <summary>
+ /// Gets or sets Left.
+ /// </summary>
+ public int Left { get; set; }
+
+ /// <summary>
+ /// Gets or sets Right.
+ /// </summary>
+ public int Right { get; set; }
+
+ /// <summary>
+ /// Create a cropping object
+ /// </summary>
+ /// <param name="top">
+ /// The top.
+ /// </param>
+ /// <param name="bottom">
+ /// The bottom.
+ /// </param>
+ /// <param name="left">
+ /// The left.
+ /// </param>
+ /// <param name="right">
+ /// The right.
+ /// </param>
+ /// <returns>
+ /// A Cropping object
+ /// </returns>
+ public static Cropping CreateCroppingObject(int top, int bottom, int left, int right)
+ {
+ return new Cropping { Top = top, Bottom = bottom, Left = left, Right = right };
+ }
+ }
+}
diff --git a/win/C#/Model/SubtitleType.cs b/win/C#/Model/SubtitleType.cs
new file mode 100644
index 000000000..a9c8609f3
--- /dev/null
+++ b/win/C#/Model/SubtitleType.cs
@@ -0,0 +1,18 @@
+/* SubtitleType.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
+
+namespace Handbrake.Model
+{
+ /// <summary>
+ /// Subtitle Type.
+ /// 0: Picture
+ /// 1: Text
+ /// </summary>
+ public enum SubtitleType
+ {
+ Picture,
+ Text
+ }
+}