Middle Europe Productions Library  alpha 1.3.3
Public Member Functions | Protected Attributes | List of all members
MEP::WindowView Class Reference

#include <WindowView.h>

Inheritance diagram for MEP::WindowView:
MEP::BaseWindow MEP::Template::Hub MEP::Template::Loading

Public Member Functions

 WindowView ()=default
 
 WindowView (const sf::View &view, const sf::View &master)
 
void grabWindow ()
 
void releaseWindow ()
 
void moveViewChange (const sf::Vector2i &change)
 
bool isGrabbed () const
 
bool customView () const
 
const sf::View & getView () const
 
void setView (const sf::View &view)
 
virtual void moveView (sf::RenderWindow &Window)
 
const sf::View & getMasterView () const
 

Protected Attributes

sf::Vector2i m_windowPossChange
 
bool m_grabbedWindow = false
 
sf::View m_view
 
const sf::View * m_appView = nullptr
 
bool isCustomViewEnabled = false
 

Constructor & Destructor Documentation

◆ WindowView() [1/2]

MEP::WindowView::WindowView ( )
default

◆ WindowView() [2/2]

MEP::WindowView::WindowView ( const sf::View &  view,
const sf::View &  master 
)
inline

Enables WindowView class.

Member Function Documentation

◆ customView()

bool MEP::WindowView::customView ( ) const
inline

Sets a new connection with a window.

Returns
: true if a custom view is enabled for the window, false otherwise.

◆ getMasterView()

const sf::View& MEP::WindowView::getMasterView ( ) const
inline

Outputs the view parameter of a main app.

Parameters
[in]const sf::View&

◆ getView()

const sf::View& MEP::WindowView::getView ( ) const
inline

Outputs the view parameter.

Returns
: const sf::View&

◆ grabWindow()

void MEP::WindowView::grabWindow ( )
inline

◆ isGrabbed()

bool MEP::WindowView::isGrabbed ( ) const
inline

◆ moveView()

virtual void MEP::WindowView::moveView ( sf::RenderWindow &  Window)
inlinevirtual

Moves the view.

◆ moveViewChange()

void MEP::WindowView::moveViewChange ( const sf::Vector2i &  change)
inline

◆ releaseWindow()

void MEP::WindowView::releaseWindow ( )
inline

◆ setView()

void MEP::WindowView::setView ( const sf::View &  view)
inline

Sets the view parameter.

Parameters
[in]const sf::View&

Member Data Documentation

◆ isCustomViewEnabled

bool MEP::WindowView::isCustomViewEnabled = false
protected

◆ m_appView

const sf::View* MEP::WindowView::m_appView = nullptr
protected

◆ m_grabbedWindow

bool MEP::WindowView::m_grabbedWindow = false
protected

◆ m_view

sf::View MEP::WindowView::m_view
protected

◆ m_windowPossChange

sf::Vector2i MEP::WindowView::m_windowPossChange
protected