~aleteoryx/muditaos

ref: b4814861b02051c9b402627577eec80aeb258830 muditaos/module-gui/gui/widgets/TextConstants.hpp -rw-r--r-- 896 bytes
b4814861 — Roman Kubiak [EGD-4318] enable service desktop (#973) 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <limits>

namespace gui
{
    namespace text
    {
        const unsigned int npos = std::numeric_limits<unsigned int>().max();
        const char newline      = '\n';
    }; // namespace text

    enum class ExpandMode
    {
        EXPAND_UP,
        EXPAND_DOWN,
        EXPAND_NONE // defult
    };

    enum class EditMode
    {
        BROWSE,
        EDIT,
        SCROLL,
    };

    enum class TextType
    {
        SINGLE_LINE = 1,
        MULTI_LINE
    };

    enum class InputBound
    {
        UNDEFINED = 0x000,

        CANT_PROCESS = 0x100,
        NO_DATA      = 0x101,
        HIT_BOUND    = 0x110,

        CAN_ADD    = 0x1000,
        CAN_MOVE   = 0x10000,
        CAN_REMOVE = 0x100000
    };

} // namespace gui