Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Member Functions | List of all members
castor3d::StylesHolder Class Reference

#include <StylesHolder.hpp>

Inheritance diagram for castor3d::StylesHolder:
Inheritance graph
[legend]

Public Member Functions

virtual C3D_API ~StylesHolder () noexcept=default
 
 StylesHolder (castor::String name, Engine &engine)
 
castor::FontResPtr getDefaultFont () const
 Retrieves the default font used by controls.
 
void setDefaultFont (castor::FontResPtr font)
 sets the default font used by controls
 
C3D_API ButtonStyleRPtr createButtonStyle (castor::String name, Scene *scene)
 
C3D_API ComboBoxStyleRPtr createComboBoxStyle (castor::String name, Scene *scene)
 
C3D_API EditStyleRPtr createEditStyle (castor::String name, Scene *scene)
 
C3D_API ExpandablePanelStyleRPtr createExpandablePanelStyle (castor::String name, Scene *scene)
 
C3D_API FrameStyleRPtr createFrameStyle (castor::String name, Scene *scene)
 
C3D_API ListBoxStyleRPtr createListBoxStyle (castor::String name, Scene *scene)
 
C3D_API PanelStyleRPtr createPanelStyle (castor::String name, Scene *scene)
 
C3D_API ProgressStyleRPtr createProgressStyle (castor::String name, Scene *scene)
 
C3D_API ScrollBarStyleRPtr createScrollBarStyle (castor::String name, Scene *scene)
 
C3D_API SliderStyleRPtr createSliderStyle (castor::String name, Scene *scene)
 
C3D_API StaticStyleRPtr createStaticStyle (castor::String name, Scene *scene)
 
virtual C3D_API ButtonStyleRPtr getButtonStyle (castor::String const &name) const
 
virtual C3D_API ComboBoxStyleRPtr getComboBoxStyle (castor::String const &name) const
 
virtual C3D_API EditStyleRPtr getEditStyle (castor::String const &name) const
 
virtual C3D_API ExpandablePanelStyleRPtr getExpandablePanelStyle (castor::String const &name) const
 
virtual C3D_API FrameStyleRPtr getFrameStyle (castor::String const &name) const
 
virtual C3D_API ListBoxStyleRPtr getListBoxStyle (castor::String const &name) const
 
virtual C3D_API PanelStyleRPtr getPanelStyle (castor::String const &name) const
 
virtual C3D_API ProgressStyleRPtr getProgressStyle (castor::String const &name) const
 
virtual C3D_API ScrollBarStyleRPtr getScrollBarStyle (castor::String const &name) const
 
virtual C3D_API SliderStyleRPtr getSliderStyle (castor::String const &name) const
 
virtual C3D_API StaticStyleRPtr getStaticStyle (castor::String const &name) const
 
template<typename StyleT >
StyleT * getStyle (castor::String const &name) const
 
auto & getButtonStyles () const noexcept
 
auto & getComboBoxStyles () const noexcept
 
auto & getEditStyles () const noexcept
 
auto & getExpandablePanelStyles () const noexcept
 
auto & getFrameStyles () const noexcept
 
auto & getListBoxStyles () const noexcept
 
auto & getPanelStyles () const noexcept
 
auto & getProgressStyles () const noexcept
 
auto & getScrollBarStyles () const noexcept
 
auto & getSliderStyles () const noexcept
 
auto & getStaticStyles () const noexcept
 
bool isEmpty () const noexcept
 

Protected Member Functions

auto & getHolderName () const noexcept
 
void cleanupStyles () noexcept
 

Constructor & Destructor Documentation

◆ ~StylesHolder()

virtual C3D_API castor3d::StylesHolder::~StylesHolder ( )
virtualdefaultnoexcept

◆ StylesHolder()

castor3d::StylesHolder::StylesHolder ( castor::String name,
Engine & engine )
inlineexplicit

Member Function Documentation

◆ cleanupStyles()

void castor3d::StylesHolder::cleanupStyles ( )
inlineprotectednoexcept

◆ createButtonStyle()

C3D_API ButtonStyleRPtr castor3d::StylesHolder::createButtonStyle ( castor::String name,
Scene * scene )

◆ createComboBoxStyle()

C3D_API ComboBoxStyleRPtr castor3d::StylesHolder::createComboBoxStyle ( castor::String name,
Scene * scene )

◆ createEditStyle()

C3D_API EditStyleRPtr castor3d::StylesHolder::createEditStyle ( castor::String name,
Scene * scene )

◆ createExpandablePanelStyle()

C3D_API ExpandablePanelStyleRPtr castor3d::StylesHolder::createExpandablePanelStyle ( castor::String name,
Scene * scene )

◆ createFrameStyle()

C3D_API FrameStyleRPtr castor3d::StylesHolder::createFrameStyle ( castor::String name,
Scene * scene )

◆ createListBoxStyle()

C3D_API ListBoxStyleRPtr castor3d::StylesHolder::createListBoxStyle ( castor::String name,
Scene * scene )

◆ createPanelStyle()

C3D_API PanelStyleRPtr castor3d::StylesHolder::createPanelStyle ( castor::String name,
Scene * scene )

◆ createProgressStyle()

C3D_API ProgressStyleRPtr castor3d::StylesHolder::createProgressStyle ( castor::String name,
Scene * scene )

◆ createScrollBarStyle()

C3D_API ScrollBarStyleRPtr castor3d::StylesHolder::createScrollBarStyle ( castor::String name,
Scene * scene )

◆ createSliderStyle()

C3D_API SliderStyleRPtr castor3d::StylesHolder::createSliderStyle ( castor::String name,
Scene * scene )

◆ createStaticStyle()

C3D_API StaticStyleRPtr castor3d::StylesHolder::createStaticStyle ( castor::String name,
Scene * scene )

◆ getButtonStyle()

virtual C3D_API ButtonStyleRPtr castor3d::StylesHolder::getButtonStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getButtonStyles()

auto & castor3d::StylesHolder::getButtonStyles ( ) const
inlinenoexcept

◆ getComboBoxStyle()

virtual C3D_API ComboBoxStyleRPtr castor3d::StylesHolder::getComboBoxStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getComboBoxStyles()

auto & castor3d::StylesHolder::getComboBoxStyles ( ) const
inlinenoexcept

◆ getDefaultFont()

castor::FontResPtr castor3d::StylesHolder::getDefaultFont ( ) const
inline

Retrieves the default font used by controls.

Returns
The font

◆ getEditStyle()

virtual C3D_API EditStyleRPtr castor3d::StylesHolder::getEditStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getEditStyles()

auto & castor3d::StylesHolder::getEditStyles ( ) const
inlinenoexcept

◆ getExpandablePanelStyle()

virtual C3D_API ExpandablePanelStyleRPtr castor3d::StylesHolder::getExpandablePanelStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getExpandablePanelStyles()

auto & castor3d::StylesHolder::getExpandablePanelStyles ( ) const
inlinenoexcept

◆ getFrameStyle()

virtual C3D_API FrameStyleRPtr castor3d::StylesHolder::getFrameStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getFrameStyles()

auto & castor3d::StylesHolder::getFrameStyles ( ) const
inlinenoexcept

◆ getHolderName()

auto & castor3d::StylesHolder::getHolderName ( ) const
inlineprotectednoexcept

Referenced by castor3d::Theme::getName().

Here is the caller graph for this function:

◆ getListBoxStyle()

virtual C3D_API ListBoxStyleRPtr castor3d::StylesHolder::getListBoxStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getListBoxStyles()

auto & castor3d::StylesHolder::getListBoxStyles ( ) const
inlinenoexcept

◆ getPanelStyle()

virtual C3D_API PanelStyleRPtr castor3d::StylesHolder::getPanelStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getPanelStyles()

auto & castor3d::StylesHolder::getPanelStyles ( ) const
inlinenoexcept

◆ getProgressStyle()

virtual C3D_API ProgressStyleRPtr castor3d::StylesHolder::getProgressStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getProgressStyles()

auto & castor3d::StylesHolder::getProgressStyles ( ) const
inlinenoexcept

◆ getScrollBarStyle()

virtual C3D_API ScrollBarStyleRPtr castor3d::StylesHolder::getScrollBarStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getScrollBarStyles()

auto & castor3d::StylesHolder::getScrollBarStyles ( ) const
inlinenoexcept

◆ getSliderStyle()

virtual C3D_API SliderStyleRPtr castor3d::StylesHolder::getSliderStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getSliderStyles()

auto & castor3d::StylesHolder::getSliderStyles ( ) const
inlinenoexcept

◆ getStaticStyle()

virtual C3D_API StaticStyleRPtr castor3d::StylesHolder::getStaticStyle ( castor::String const & name) const
virtual

Reimplemented in castor3d::ControlsManager.

Referenced by getStyle().

Here is the caller graph for this function:

◆ getStaticStyles()

auto & castor3d::StylesHolder::getStaticStyles ( ) const
inlinenoexcept

◆ getStyle()

template<typename StyleT >
StyleT * castor3d::StylesHolder::getStyle ( castor::String const & name) const
inline

◆ isEmpty()

bool castor3d::StylesHolder::isEmpty ( ) const
inlinenoexcept

◆ setDefaultFont()

void castor3d::StylesHolder::setDefaultFont ( castor::FontResPtr font)
inline

sets the default font used by controls

Parameters
[in]fontThe font

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