TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::GUIApplication::Scope< EndFn > Class Template Reference

A container's scope: its End runs when the scope leaves (or at End()). More...

#include <gui_controls/gui_application.h>

Public Member Functions

 Scope (GUIApplication &app, bool open)
 Made by the scope functions below.
 Scope (Scope &&other) noexcept
 Scope (const Scope &)=delete
Scope & operator= (const Scope &)=delete
Scope & operator= (Scope &&)=delete
 ~Scope ()
void End ()
 Ends the container now instead of when the scope leaves.
 operator bool () const

Detailed Description

template<void(GUIApplication::*)() EndFn>
class tachyon::GUIApplication::Scope< EndFn >

A container's scope: its End runs when the scope leaves (or at End()).

True when the container's content is to be built, as its Begin returned.

if (auto menu = app.Menu("File")) { ...items... } 

Constructor & Destructor Documentation

◆ Scope() [1/3]

template<void(GUIApplication::*)() EndFn>
tachyon::GUIApplication::Scope< EndFn >::Scope ( GUIApplication & app,
bool open )
inline

Made by the scope functions below.

◆ Scope() [2/3]

template<void(GUIApplication::*)() EndFn>
tachyon::GUIApplication::Scope< EndFn >::Scope ( Scope< EndFn > && other)
inlinenoexcept

◆ Scope() [3/3]

template<void(GUIApplication::*)() EndFn>
tachyon::GUIApplication::Scope< EndFn >::Scope ( const Scope< EndFn > & )
delete

◆ ~Scope()

template<void(GUIApplication::*)() EndFn>
tachyon::GUIApplication::Scope< EndFn >::~Scope ( )
inline

Member Function Documentation

◆ operator=() [1/2]

template<void(GUIApplication::*)() EndFn>
Scope & tachyon::GUIApplication::Scope< EndFn >::operator= ( const Scope< EndFn > & )
delete

◆ operator=() [2/2]

template<void(GUIApplication::*)() EndFn>
Scope & tachyon::GUIApplication::Scope< EndFn >::operator= ( Scope< EndFn > && )
delete

◆ End()

template<void(GUIApplication::*)() EndFn>
void tachyon::GUIApplication::Scope< EndFn >::End ( )
inline

Ends the container now instead of when the scope leaves.

◆ operator bool()

template<void(GUIApplication::*)() EndFn>
tachyon::GUIApplication::Scope< EndFn >::operator bool ( ) const
inlineexplicit

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