AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AOverflow.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 04.01.2021.
   14//
   15
   16#pragma once
   17
   18#include <AUI/Reflect/AEnumerate.h>
   19
   24enum class AOverflow {
   29
   35    HIDDEN,
   36
   41};
   42
   48    NONE,
   49    ELLIPSIS,
   50    CLIP
   51};
   52
   54                ATextOverflow::ELLIPSIS,
   55                ATextOverflow::CLIP)
   56
   57
   65enum class AOverflowMask {
   69    ROUNDED_RECT,
   70
   76    BACKGROUND_IMAGE_ALPHA,
   77};
   78
   79AUI_ENUM_VALUES(AOverflowMask,
   80                AOverflowMask::ROUNDED_RECT,
   81                AOverflowMask::BACKGROUND_IMAGE_ALPHA)
AOverflow
Controls visibility of the overflowed contents of AView with AView::drawStencilMask.
Definition AOverflow.h:24
ATextOverflow
Controls behavior of the overflowed text. Relevant to AAbstractLabel and its derivatives only.
Definition AOverflow.h:47
@ HIDDEN_FROM_THIS
Like HIDDEN, but view's ASS-styled background is also affected by mask.
Definition AOverflow.h:40
@ HIDDEN
Overflowed contents are hidden. Suitable for lists with scroll.
Definition AOverflow.h:35
@ VISIBLE
Overflowed contents are visible.
Definition AOverflow.h:28
@ NONE
Definition AFloat.h:23
#define AUI_ENUM_VALUES(enum_t,...)
Defines all enum values for AEnumerate.
Definition AEnumerate.h:208