AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AWindowMenuProvider.h
    1/*
    2 * AUI Framework - Declarative UI toolkit for modern C++20
    3 * Copyright (C) 2020-2025 Alex2772 and Contributors
    4 *
    5 * SPDX-License-Identifier: MPL-2.0
    6 *
    7 * This Source Code Form is subject to the terms of the Mozilla Public
    8 * License, v. 2.0. If a copy of the MPL was not distributed with this
    9 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
   10 */
   11
   12//
   13// Created by alex2 on 5/13/2021.
   14//
   15
   16
   17#pragma once
   18
   19
   20#include "IMenuProvider.h"
   21#include <AUI/Platform/AWindow.h>
   22
   23class AMenuContainer;
   24
   26private:
   27    AWindowBase* mWindow;
   28
   29    _weak<AMenuContainer> mMenuContainer;
   30
   31public:
   32    void createMenu(const AVector<AMenuItem>& vector) override;
   33
   34    bool isOpen() override;
   35
   36    void closeMenu() override;
   37};
   38
   39
A std::vector with AUI extensions.
Definition AVector.h:39
Definition AWindowBase.h:33
Definition AWindowMenuProvider.h:25
Definition IMenuProvider.h:17
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:52