EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
UserInterface.hpp
Go to the documentation of this file.
1
2/*
3 * UI.hpp
4 * sfeMovie project
5 *
6 * Copyright (C) 2010-2015 Lucas Soltic
7 * lucas.soltic@orange.fr
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 */
24
25
26#ifndef SFEMOVIE_SAMPLE_UI_HPP
27#define SFEMOVIE_SAMPLE_UI_HPP
28
29#include <SFML/Graphics/RenderWindow.hpp>
30#include <sfeMovie/Movie.hpp>
31
33{
34public:
35 UserInterface(sf::RenderWindow& window, const sfe::Movie& movie);
36
39 void toggleVisible();
40
43 void applyProperties();
44
48 void draw() const;
49
50private:
51 sf::RenderWindow& m_window;
52 const sfe::Movie& m_movie;
53 bool m_visible;
54};
55
56#endif
void draw() const
Draw the user interface on the window and from the movie given at construction time.
Definition UserInterface.cpp:54
void toggleVisible()
Definition UserInterface.cpp:42
UserInterface(sf::RenderWindow &window, const sfe::Movie &movie)
Definition UserInterface.cpp:35
void applyProperties()
Explicitely re-apply visiblity properties to the window and movie.
Definition UserInterface.cpp:49