ShishGL  1.0
A simple modular cross-platform graphics library
Sh::Window Class Reference

#include <Window.hpp>

Inheritance diagram for Sh::Window:
Collaboration diagram for Sh::Window:

Public Member Functions

 Window ()=delete
 
 ~Window () override=default
 
 Window (const Window &other)=delete
 
Windowoperator= (const Window &other)=delete
 
const WindowgetParent () const
 
template<typename SomeWindow , typename... Args>
SomeWindow * attach (Args &&... args)
 
template<typename SomeWindow >
SomeWindow * attach (SomeWindow *child)
 
Windowdetach (Window *child)
 
const FramegetFrame () const
 
const Vector2< double > & getSize () const
 
const Vector2< double > & getPos () const
 
virtual bool contains (const Vector2< double > &point) const
 
virtual void setPos (const Vector2< double > &pos)
 
virtual void translate (const Vector2< double > &delta)
 
const std::list< Window * > & getChildren ()
 
- Public Member Functions inherited from Sh::Listener
virtual ~Listener ()
 

Protected Member Functions

 Window (const Frame &frame)
 
virtual void onRender ()
 
virtual void setParent (Window *new_parent)
 

Friends

class WindowManager
 

Constructor & Destructor Documentation

◆ Window() [1/3]

Sh::Window::Window ( )
delete

◆ ~Window()

Sh::Window::~Window ( )
overridedefault

◆ Window() [2/3]

Sh::Window::Window ( const Window other)
delete

◆ Window() [3/3]

Window::Window ( const Frame frame)
explicitprotected

Member Function Documentation

◆ attach() [1/2]

template<typename SomeWindow , typename... Args>
SomeWindow * Sh::Window::attach ( Args &&...  args)

◆ attach() [2/2]

template<typename SomeWindow >
SomeWindow * Sh::Window::attach ( SomeWindow *  child)

◆ contains()

bool Window::contains ( const Vector2< double > &  point) const
virtual

Reimplemented in Sh::UIWindow.

◆ detach()

Window * Window::detach ( Window child)

◆ getChildren()

const std::list<Window*>& Sh::Window::getChildren ( )
inline

◆ getFrame()

const Frame & Window::getFrame ( ) const

◆ getParent()

const Window * Window::getParent ( ) const

◆ getPos()

const Vector2< double > & Window::getPos ( ) const

◆ getSize()

const Vector2< double > & Window::getSize ( ) const

◆ onRender()

void Window::onRender ( )
protectedvirtual

Reimplemented in Sh::UIWindow, Sh::UICanvas, and Sh::FpsLabel.

◆ operator=()

Window& Sh::Window::operator= ( const Window other)
delete

◆ setParent()

void Window::setParent ( Window new_parent)
protectedvirtual

Reimplemented in Sh::UIWindow.

◆ setPos()

void Window::setPos ( const Vector2< double > &  pos)
virtual

Reimplemented in Sh::UIWindow.

◆ translate()

void Window::translate ( const Vector2< double > &  delta)
virtual

Reimplemented in Sh::UIWindow.

Friends And Related Function Documentation

◆ WindowManager

friend class WindowManager
friend

The documentation for this class was generated from the following files: