Fcitx
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 
31 } // namespace fcitx
32 
33 #endif // _FCITX_UTILS_TEXTFORMATFLAGS_H_
Definition: action.cpp:17
TextFormatFlag
Enum flag for text formatting.
Class provides bit flag support for Enum.
Definition: flags.h:33
Helper template class to make easier to use type safe enum flags.
highlight the preedit