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.
26 lines
699 B
26 lines
699 B
#pragma once
|
|
|
|
#include "guecs/sfml/components.hpp"
|
|
#include "guecs/ui.hpp"
|
|
#include "slides_ui.hpp"
|
|
#include "control.hpp"
|
|
|
|
struct ControlUI {
|
|
bool $full_screen = true;
|
|
guecs::UI $gui;
|
|
guecs::Text* $status;
|
|
sf::RenderWindow& $presenter;
|
|
sf::RenderWindow& $controller;
|
|
sf::Vector2u $window_size;
|
|
CtrlSocket $ctrl_sock;
|
|
|
|
ControlUI(sf::RenderWindow& presenter, sf::RenderWindow& controller, unsigned short port);
|
|
|
|
void init();
|
|
void render(SlideDeck& deck);
|
|
void update(std::shared_ptr<SlidesUI> slides);
|
|
void render_slide(const std::string& name, Slide& slide);
|
|
void full_screen(bool do_it);
|
|
void process_commands(std::shared_ptr<SlidesUI> slides);
|
|
void move(int dir);
|
|
};
|
|
|