1/*
2 SPDX-FileCopyrightText: 2018 Sven Brauch <mail@svenbrauch.de>
3 SPDX-FileCopyrightText: 2018 Michal Srb <michalsrb@gmail.com>
4 SPDX-FileCopyrightText: 2018 Dominik Haumann <dhaumann@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef KATE_INLINENOTE_DATA_H
10#define KATE_INLINENOTE_DATA_H
11
12#include <QFont>
13#include <ktexteditor/cursor.h>
14
15namespace KTextEditor
16{
17class InlineNoteProvider;
18class View;
19}
20
21/**
22 * Internal data container for KTextEditor::InlineNote interface.
23 */
24class KateInlineNoteData
25{
26public:
27 KateInlineNoteData() = default;
28 KateInlineNoteData(KTextEditor::InlineNoteProvider *provider,
29 const KTextEditor::View *view,
30 const KTextEditor::Cursor position,
31 int index,
32 bool underMouse,
33 const QFont &font,
34 int lineHeight);
35
36 KTextEditor::InlineNoteProvider *m_provider = nullptr;
37 const KTextEditor::View *m_view = nullptr;
38 KTextEditor::Cursor m_position = KTextEditor::Cursor::invalid();
39 int m_index = -1;
40 bool m_underMouse = false;
41 QFont m_font;
42 int m_lineHeight = -1;
43};
44
45#endif
46

source code of ktexteditor/src/view/inlinenotedata.h