File indexing completed on 2024-05-19 16:34:45
0001 /* 0002 SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "scene/item.h" 0010 0011 namespace KWaylandServer 0012 { 0013 class DragAndDropIcon; 0014 } 0015 0016 namespace KWin 0017 { 0018 0019 class SurfaceItemWayland; 0020 0021 class DragAndDropIconItem : public Item 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit DragAndDropIconItem(KWaylandServer::DragAndDropIcon *icon, Scene *scene, Item *parent = nullptr); 0027 ~DragAndDropIconItem() override; 0028 0029 void frameRendered(quint32 timestamp); 0030 0031 private: 0032 std::unique_ptr<SurfaceItemWayland> m_surfaceItem; 0033 }; 0034 0035 } // namespace KWin