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