/* * Copyright (c) 2022, kleines Filmröllchen * Copyright (c) 2023, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "SlideObject.h" #include #include // A single slide of a presentation. class Slide final { public: static ErrorOr parse_slide(JsonObject const& slide_json, unsigned slide_index); unsigned frame_count() const { return m_frame_count; } StringView title() const { return m_title; } ErrorOr render(Presentation const&) const; private: Slide(unsigned frame_count, Vector> slide_objects, ByteString title); unsigned m_frame_count; Vector> m_slide_objects; ByteString m_title; };