#pragma once #include "ui/effects/widget_slide_wrap.h" #include "media/player/media_player_widget.h" namespace Ui { class PlainShadow; } // namespace Ui namespace Window { class PlayerWrapWidget : public Ui::WidgetSlideWrap { using Parent = Ui::WidgetSlideWrap; public: PlayerWrapWidget(QWidget *parent, base::lambda &&updateCallback); void updateAdaptiveLayout() { updateShadowGeometry(); } void showShadow() { entity()->showShadow(); } void hideShadow() { entity()->hideShadow(); } int contentHeight() const { return qMax(height() - st::lineWidth, 0); } protected: void resizeEvent(QResizeEvent *e) override; private: void updateShadowGeometry(); }; } // namespace Window