Fcitx
fcitx-utils
textformatflags.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2017-2017 CSSlayer <wengxt@gmail.com>
3
*
4
* SPDX-License-Identifier: LGPL-2.1-or-later
5
*
6
*/
7
#ifndef _FCITX_UTILS_TEXTFORMATFLAGS_H_
8
#define _FCITX_UTILS_TEXTFORMATFLAGS_H_
9
10
/// \addtogroup FcitxUtils
11
/// \{
12
/// \file
13
/// \brief Enum flag for text formatting.
14
15
#include <
fcitx-utils/flags.h
>
16
17
namespace
fcitx
{
18
19
/// \brief Enum flag for text formatting.
20
enum class
TextFormatFlag
: int {
21
Underline
= (1 << 3),
/**< underline is a flag */
22
HighLight
= (1 << 4),
/**< highlight the preedit */
23
DontCommit = (1 << 5),
24
Bold = (1 << 6),
25
Strike = (1 << 7),
26
Italic = (1 << 8),
27
NoFlag = 0,
28
};
29
30
using
TextFormatFlags
=
Flags<TextFormatFlag>
;
31
}
// namespace fcitx
32
33
#endif // _FCITX_UTILS_TEXTFORMATFLAGS_H_
fcitx
Definition:
action.cpp:17
fcitx::TextFormatFlag
TextFormatFlag
Enum flag for text formatting.
Definition:
textformatflags.h:20
fcitx::Flags
Class provides bit flag support for Enum.
Definition:
flags.h:33
flags.h
Helper template class to make easier to use type safe enum flags.
fcitx::TextFormatFlag::Underline
underline is a flag
fcitx::TextFormatFlag::HighLight
highlight the preedit
Generated by
1.8.13