You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
806 B

/*
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "item.h"
namespace KWin
{
class Deleted;
class Shadow;
class Window;
/**
* The ShadowItem class represents a nine-tile patch server-side drop-shadow.
*/
class KWIN_EXPORT ShadowItem : public Item
{
Q_OBJECT
public:
explicit ShadowItem(Shadow *shadow, Window *window, Item *parent = nullptr);
~ShadowItem() override;
Shadow *shadow() const;
protected:
WindowQuadList buildQuads() const override;
private Q_SLOTS:
void handleTextureChanged();
void updateGeometry();
void handleWindowClosed(Window *original, Deleted *deleted);
private:
Window *m_window;
Shadow *m_shadow = nullptr;
};
} // namespace KWin