// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Defines the Size type. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrake.ApplicationServices.Interop.Model { /// /// The size. /// public class Size { /// /// Initializes a new instance of the class. /// /// /// The width. /// /// /// The height. /// public Size(int width, int height) { this.Width = width; this.Height = height; } /// /// Gets the height. /// public int Height { get; private set; } /// /// Gets the width. /// public int Width { get; private set; } /// /// Gets a value indicating whether is empty. /// public bool IsEmpty { get { if (this.Width <= 0 && this.Height <= 0) { return true; } else { return false; } } } } }