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

// 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
}
