/*!
 *
 * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    Line.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      18-Mar-2020
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  13-Jan-2020
 *
 */

// Qt
import QtQuick 2.12

// Project
import "qrc:/globals"

Rectangle { id: _root
    enum Orientation {
        Horizontal,
        Vertical
    }

    property alias bgColor    : _root.color
    property alias bgOpacity  : _root.opacity

    property int   orientation: Line.Orientation.Horizontal
    property int   length     : 20
    property int   thickness  : 1

    width : orientation === Line.Orientation.Horizontal ? length : thickness
    height: orientation === Line.Orientation.Vertical   ? length : thickness
    color: Colors.line
}
