KWin
Loading...
Searching...
No Matches
dndiconitem.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "core/output.h"
10#include "effect/globals.h"
11#include "scene/item.h"
12
13namespace KWin
14{
15
16class DragAndDropIcon;
17class SurfaceInterface;
18class SurfaceItemWayland;
19class PresentationFeedback;
20
22{
23 Q_OBJECT
24
25public:
26 explicit DragAndDropIconItem(DragAndDropIcon *icon, Scene *scene, Item *parent = nullptr);
27 ~DragAndDropIconItem() override;
28
30
31 void setOutput(Output *output);
32
33private:
34 std::unique_ptr<SurfaceItemWayland> m_surfaceItem;
35 Output *m_output = nullptr;
36};
37
38} // namespace KWin
DragAndDropIconItem(DragAndDropIcon *icon, Scene *scene, Item *parent=nullptr)
void setOutput(Output *output)
SurfaceInterface * surface() const
Scene * scene() const
Definition item.cpp:32
Resource representing a wl_surface.
Definition surface.h:80