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

#include <Style.hpp>

Inheritance diagram for Sh::StylePack:
Collaboration diagram for Sh::StylePack:

Public Member Functions

 StylePack ()=default
 
template<typename... Args>
 StylePack (Args &&... args)
 
void apply (Frame &viewport, const Shape2D &shape) override
 
 ~StylePack () override
 
template<typename SomeStyle , typename... Args>
void add (const SomeStyle &style, Args &&... args)
 
template<typename SomeStyle >
void add (const SomeStyle &style)
 
- Public Member Functions inherited from Sh::Style
 Style ()=default
 
virtual ~Style ()=default
 

Constructor & Destructor Documentation

◆ StylePack() [1/2]

Sh::StylePack::StylePack ( )
default

◆ StylePack() [2/2]

template<typename... Args>
Sh::StylePack::StylePack ( Args &&...  args)
inlineexplicit

◆ ~StylePack()

Sh::StylePack::~StylePack ( )
inlineoverride

Member Function Documentation

◆ add() [1/2]

template<typename SomeStyle >
void Sh::StylePack::add ( const SomeStyle &  style)
inline

◆ add() [2/2]

template<typename SomeStyle , typename... Args>
void Sh::StylePack::add ( const SomeStyle &  style,
Args &&...  args 
)
inline

◆ apply()

void Sh::StylePack::apply ( Frame viewport,
const Shape2D shape 
)
inlineoverridevirtual

Implements Sh::Style.


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