Castor3D 0.16.0
Multiplatform 3D engine
|
#include <Overlay.hpp>
Public Types | |
using | iterator = OverlayPtrArray::iterator |
using | const_iterator = OverlayPtrArray::const_iterator |
Public Member Functions | |
C3D_API | Overlay (castor::String const &name, Engine &engine, OverlayType type, Scene *scene, OverlayRPtr parent, uint32_t level=0u) |
Constructor. | |
C3D_API | Overlay (Engine &engine, OverlayType type, Scene *scene, OverlayRPtr parent, uint32_t level=0u) |
Constructor. | |
C3D_API | Overlay (Engine &engine, OverlayType type, uint32_t level=0u) |
Constructor. | |
C3D_API uint32_t | getChildrenCount (uint32_t level) const |
C3D_API PanelOverlayRPtr | getPanelOverlay () const noexcept |
C3D_API BorderPanelOverlayRPtr | getBorderPanelOverlay () const noexcept |
C3D_API TextOverlayRPtr | getTextOverlay () const noexcept |
C3D_API bool | isVisible () const |
C3D_API bool | isDisplayable () const |
C3D_API uint32_t | computeLevel () const |
Getters. | |
OverlayCategory & | getCategory () const noexcept |
castor::Position | getAbsolutePosition (castor::Size const &size) const noexcept |
castor::Size | getAbsoluteSize (castor::Size const &size) const noexcept |
castor::Point2d | getAbsolutePosition () const noexcept |
castor::Point2d | getAbsoluteSize () const noexcept |
bool | isSizeChanged () const noexcept |
bool | isPositionChanged () const noexcept |
castor::String const & | getName () const noexcept |
castor::Point2d const & | getRelativePosition () const noexcept |
castor::Point2d const & | getRelativeSize () const noexcept |
OverlayType | getType () const noexcept |
OverlayRPtr | getParent () const noexcept |
MaterialObs | getMaterial () const noexcept |
SceneRPtr | getScene () const noexcept |
uint32_t | getIndex () const noexcept |
uint32_t | getLevel () const noexcept |
Array access to childs. | |
size_t | size () const noexcept |
bool | empty () const noexcept |
iterator | begin () |
const_iterator | begin () const noexcept |
iterator | end () |
const_iterator | end () const noexcept |
Mutators. | |
void | setVisible (bool val) |
void | setMaterial (MaterialObs material) |
void | setRelativePosition (castor::Point2d const &position) |
void | setRelativeSize (castor::Point2d const &size) |
void | setPixelPosition (castor::Position const &position) |
void | setPixelSize (castor::Size const &size) |
void | rename (castor::StringView name) |
void | reparent (OverlayRPtr parent) |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
Engine * | getOwner () const |
Friends | |
class | castor::ResourceCacheT< Overlay, castor::String, OverlayCacheTraits > |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Engine > | |
OwnedBy (Engine &owner) | |
Constructor. | |
using castor3d::Overlay::const_iterator = OverlayPtrArray::const_iterator |
using castor3d::Overlay::iterator = OverlayPtrArray::iterator |
C3D_API castor3d::Overlay::Overlay | ( | castor::String const & | name, |
Engine & | engine, | ||
OverlayType | type, | ||
Scene * | scene, | ||
OverlayRPtr | parent, | ||
uint32_t | level = 0u ) |
Constructor.
[in] | name | The overlay name. |
[in] | engine | The engine. |
[in] | type | The overlay type. |
[in] | scene | The scene holding the overlay. |
[in] | parent | The parent overlay (if any). |
[in] | level | The overlay base level. |
C3D_API castor3d::Overlay::Overlay | ( | Engine & | engine, |
OverlayType | type, | ||
Scene * | scene, | ||
OverlayRPtr | parent, | ||
uint32_t | level = 0u ) |
Constructor.
[in] | engine | The engine. |
[in] | type | The overlay type. |
[in] | scene | The scene holding the overlay. |
[in] | parent | The parent overlay (if any). |
[in] | level | The overlay base level. |
C3D_API castor3d::Overlay::Overlay | ( | Engine & | engine, |
OverlayType | type, | ||
uint32_t | level = 0u ) |
Constructor.
[in] | engine | The engine. |
[in] | type | The overlay type. |
[in] | level | The overlay base level. |
|
inline |
|
inlinenoexcept |
C3D_API uint32_t castor3d::Overlay::computeLevel | ( | ) | const |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
C3D_API uint32_t castor3d::Overlay::getChildrenCount | ( | uint32_t | level | ) | const |
[in] | level | The wanted level |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
C3D_API bool castor3d::Overlay::isDisplayable | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API bool castor3d::Overlay::isVisible | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Referenced by getAbsolutePosition(), getAbsoluteSize(), setPixelSize(), and setRelativeSize().
|
friend |