KTextEditor

inlinenotedata.h
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 */
25{
26public:
27 KateInlineNoteData() = default;
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;
39 int m_index = -1;
40 bool m_underMouse = false;
41 QFont m_font;
42 int m_lineHeight = -1;
43};
44
45#endif
The Cursor represents a position in a Document.
Definition cursor.h:75
static constexpr Cursor invalid() noexcept
Returns an invalid cursor.
Definition cursor.h:112
A source of inline notes for a document.
A text widget with KXMLGUIClient that represents a Document.
Definition view.h:244
Internal data container for KTextEditor::InlineNote interface.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:53:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.