Krita Source Code Documentation
Loading...
Searching...
No Matches
LineHeightModel.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#ifndef LINEHEIGHTMODEL_H
7
#define LINEHEIGHTMODEL_H
8
9
#include <QObject>
10
#include <
KoSvgText.h
>
11
#include <lager/state.hpp>
12
#include <lager/cursor.hpp>
13
#include <lager/extra/qt.hpp>
14
15
#include <kritaflake_export.h>
16
17
class
KRITAFLAKE_EXPORT
LineHeightModel
:
public
QObject
18
{
19
Q_OBJECT
20
public
:
21
LineHeightModel
(lager::cursor<KoSvgText::LineHeightInfo> _data = lager::make_state(
KoSvgText::LineHeightInfo
(), lager::automatic_tag{}));
22
23
enum
LineHeightType
{
24
Absolute
,
25
Em
,
26
Ex
,
27
Cap
,
28
Ch
,
29
Ic
,
30
Lh
,
31
Percentage
,
32
Lines
33
};
34
Q_ENUM(LineHeightType)
35
36
lager::cursor<
KoSvgText
::LineHeightInfo> data;
37
38
LAGER_QT_CURSOR(
bool
, isNormal);
39
LAGER_QT_CURSOR(qreal,
value
);
40
LAGER_QT_CURSOR(
LineHeightType
, unit);
41
};
42
43
#endif
// LINEHEIGHTMODEL_H
value
float value(const T *src, size_t ch)
Definition
JPEGXLImport.cpp:93
KoSvgText.h
LineHeightModel
Definition
LineHeightModel.h:18
LineHeightModel::LineHeightType
LineHeightType
Definition
LineHeightModel.h:23
LineHeightModel::Lh
@ Lh
Definition
LineHeightModel.h:30
LineHeightModel::Ex
@ Ex
Definition
LineHeightModel.h:26
LineHeightModel::Ch
@ Ch
Definition
LineHeightModel.h:28
LineHeightModel::Em
@ Em
Definition
LineHeightModel.h:25
LineHeightModel::Ic
@ Ic
Definition
LineHeightModel.h:29
LineHeightModel::Absolute
@ Absolute
Definition
LineHeightModel.h:24
LineHeightModel::Cap
@ Cap
Definition
LineHeightModel.h:27
LineHeightModel::Percentage
@ Percentage
Definition
LineHeightModel.h:31
KoSvgText
Definition
KoSvgText.cpp:105
KoSvgText::LineHeightInfo
Definition
KoSvgText.h:692
libs
flake
text
lager
LineHeightModel.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52