// #region Imports
import { GridLength } from './GridLength';
/**
 * The `ColumnDefinition` class.
 *
 * @public
 */
export class ColumnDefinition {
    // #region Fields
    _width;
    _minWidth;
    _maxWidth;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `ColumnDefinition` class.
     *
     * @public
     */
    constructor(width = new GridLength(1, 'star'), minWidth = 0, maxWidth = Number.MAX_SAFE_INTEGER) {
        this._width = width instanceof GridLength ? width : new GridLength(width.value, width.type);
        this._minWidth = minWidth;
        this._maxWidth = maxWidth;
    }
    // #endregion
    // #region Properties
    /**
     * Gets or sets the `width` property.
     *
     * @public
     */
    get width() {
        return this._width;
    }
    set width(value) {
        this._width = value;
    }
    /**
     * Gets or sets the `minWidth` property.
     *
     * @public
     */
    get minWidth() {
        return this._minWidth;
    }
    set minWidth(value) {
        this._minWidth = value;
    }
    /**
     * Gets or sets the `maxWidth` property.
     *
     * @public
     */
    get maxWidth() {
        return this._maxWidth;
    }
    set maxWidth(value) {
        this._maxWidth = value;
    }
}
//# sourceMappingURL=ColumnDefinition.js.map