/* * Copyright (c) 2022, kleines Filmröllchen * Copyright (c) 2023, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "SlideObject.h" #include #include #include // A single slide of a presentation. class Slide final { public: static ErrorOr parse_slide(JsonObject const& slide_json); // FIXME: shouldn't be hard-coded to 1. unsigned frame_count() const { return 1; } StringView title() const { return m_title; } ErrorOr render(Presentation const&) const; private: Slide(NonnullRefPtrVector slide_objects, DeprecatedString title); NonnullRefPtrVector m_slide_objects; DeprecatedString m_title; };