// Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once

#include "Api.h"
#include "Stack.h"

OMNIUI_NAMESPACE_OPEN_SCOPE

/**
 * @brief Shortcut for Stack{eBackToFront}. The widgets are placed sorted in a Z-order in top right corner with suitable
 * sizes.
 *
 * @see Stack
 */
class OMNIUI_CLASS_API ZStack : public Stack
{
    OMNIUI_OBJECT(ZStack)

public:
    OMNIUI_API
    ~ZStack() override;

protected:
    /**
     * @brief Construct a stack with the widgets placed in a Z-order with sorting from background to foreground.
     */
    OMNIUI_API
    ZStack();
};

OMNIUI_NAMESPACE_CLOSE_SCOPE
