/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "ui/layers/layer_widget.h" #include "editor/photo_editor_common.h" #include "base/unique_qptr.h" namespace Window { class Controller; } // namespace Window namespace Editor { class PhotoEditor; class LayerWidget : public Ui::LayerWidget { public: LayerWidget( not_null parent, not_null window, std::shared_ptr photo, PhotoModifications modifications, Fn &&doneCallback); void parentResized() override; bool closeByOutsideClick() const override; protected: int resizeGetHeight(int newWidth) override; private: const base::unique_qptr _content; }; } // namespace Editor