If Amazon used this Bezos wouldn't have banned PowerPoint.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bezos-loves-slides/src/control_ui.hpp

21 lines
573 B

#pragma once
#include "guecs/sfml/components.hpp"
#include "guecs/ui.hpp"
#include "slides_ui.hpp"
struct ControlUI {
bool $full_screen = true;
guecs::UI $gui;
guecs::Text* $status;
sf::RenderWindow& $presenter;
sf::RenderWindow& $controller;
sf::Vector2u $window_size;
ControlUI(sf::RenderWindow& presenter, sf::RenderWindow& controller);
void init();
void render(sf::RenderWindow& window, SlideDeck& deck);
void handle_events(std::shared_ptr<SlidesUI> slides, const sf::Event& event);
void render_slide(const std::string& name, Slide& slide);
};