AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
debug_selector.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 02.01.2021.
   14//
   15
   16#pragma once
   17
   18
   19#include <AUI/Util/kAUI.h>
   20#include <AUI/View/AView.h>
   21#include <AUI/ASS/AAssHelper.h>
   22
   23#include "hovered.h"
   24#include "activated.h"
   25#include "focused.h"
   26#include "disabled.h"
   27
   28namespace ass {
   29
   30    namespace detail {
   31        struct debug_selector : virtual IAssSubSelector {
   32        public:
   33            debug_selector() = default;
   34
   35            bool isStateApplicable(AView* view) override {
   36                return false;
   37            }
   38
   39            bool isPossiblyApplicable(AView* view) override {
   40                return false;
   41            }
   42        };
   43    }
   44
   45    struct debug_selector: detail::debug_selector { // ignore ass_selectors
   46    public:
   47        debug_selector() = default;
   48
   49        using hover = ass::hovered<detail::debug_selector>;
   50        using active = ass::activated<detail::debug_selector>;
   51        using focus = ass::focused<detail::debug_selector>;
   52        using disabled = ass::disabled<detail::debug_selector>;
   53    };
   54
   55}
Definition activated.h:21
Definition disabled.h:20
Definition focused.h:21
Definition hovered.h:21