File indexing completed on 2024-04-14 03:55:33
0001 /* 0002 SPDX-FileCopyrightText: 2018 Sven Brauch <mail@svenbrauch.de> 0003 SPDX-FileCopyrightText: 2018 Michal Srb <michalsrb@gmail.com> 0004 SPDX-FileCopyrightText: 2018 Dominik Haumann <dhaumann@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef KATE_INLINENOTE_DATA_H 0010 #define KATE_INLINENOTE_DATA_H 0011 0012 #include <QFont> 0013 #include <ktexteditor/cursor.h> 0014 0015 namespace KTextEditor 0016 { 0017 class InlineNoteProvider; 0018 class View; 0019 } 0020 0021 /** 0022 * Internal data container for KTextEditor::InlineNote interface. 0023 */ 0024 class KateInlineNoteData 0025 { 0026 public: 0027 KateInlineNoteData() = default; 0028 KateInlineNoteData(KTextEditor::InlineNoteProvider *provider, 0029 const KTextEditor::View *view, 0030 const KTextEditor::Cursor position, 0031 int index, 0032 bool underMouse, 0033 const QFont &font, 0034 int lineHeight); 0035 0036 KTextEditor::InlineNoteProvider *m_provider = nullptr; 0037 const KTextEditor::View *m_view = nullptr; 0038 KTextEditor::Cursor m_position = KTextEditor::Cursor::invalid(); 0039 int m_index = -1; 0040 bool m_underMouse = false; 0041 QFont m_font; 0042 int m_lineHeight = -1; 0043 }; 0044 0045 #endif