mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 08:28:29 -04:00
50 lines
896 B
C++
50 lines
896 B
C++
// 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
|