diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-12-01 21:09:28 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-12-01 21:16:51 +0800 |
| commit | d54732324827bcfdc75e684b6636c53c109757c4 (patch) | |
| tree | 1d82f4963b2e934769a9ab143d2c9c4b3e1990cb /include/cru/ui/document/TextDocumentElement.h | |
| parent | 2fb9c12f9277a2c601cc2820884f9c5c1fd4e5c5 (diff) | |
| download | cru-d54732324827bcfdc75e684b6636c53c109757c4.tar.gz cru-d54732324827bcfdc75e684b6636c53c109757c4.tar.bz2 cru-d54732324827bcfdc75e684b6636c53c109757c4.zip | |
Clean up Bitmask.
Diffstat (limited to 'include/cru/ui/document/TextDocumentElement.h')
| -rw-r--r-- | include/cru/ui/document/TextDocumentElement.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/cru/ui/document/TextDocumentElement.h b/include/cru/ui/document/TextDocumentElement.h index 85ea6f2e..8cdf5b1f 100644 --- a/include/cru/ui/document/TextDocumentElement.h +++ b/include/cru/ui/document/TextDocumentElement.h @@ -6,13 +6,7 @@ #include "cru/base/Bitmask.h" namespace cru::ui::document { -namespace details { -struct TextStyleTag {}; -} // namespace details - -using TextStyle = Bitmask<details::TextStyleTag>; - -struct TextStyles { +CRU_DEFINE_BITMASK(TextStyle) { static constexpr TextStyle Normal{0x0}; static constexpr TextStyle Bold{0x1}; static constexpr TextStyle Italic{0x2}; |
