CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UILayer Class Reference

#include <CeresEngine/UI/Layer/UILayer.hpp>

Inheritance diagram for CeresEngine::UILayer:
CeresEngine::RefCounted< UILayer >

Public Member Functions

 UILayer () noexcept=default
 
virtual ~UILayer () noexcept=default
 
UILayer * getSuperLayer () const noexcept
 
const Vector< UILayerPtr > & getSubLayers () const noexcept
 
void addSublayer (UILayer *layer)
 
void replaceSublayer (UILayer *layer, UILayer *other)
 
void removeFromSuperlayer ()
 
void display (UIGraphicsContext &context)
 
void displayIfNeeded (UIGraphicsContext &context)
 
virtual void draw (UIGraphicsContext &context)
 
bool getNeedsDisplay ()
 
void setNeedsDisplay ()
 
void setNeedsDisplay (const UIRect &rect)
 
- Public Member Functions inherited from CeresEngine::RefCounted< UILayer >
 RefCounted (Args &&... args)
 Creates a new RefCounted object and constructs a new Deleter by forwarding Args to it.
 
void retain () noexcept
 Retains the object by increment it's reference count by one.
 
bool release () noexcept
 Relases the object by decrementing it's reference count by one.
 

Private Attributes

UILayer * mSuperLayer
 
Vector< UILayerPtr > mSubLayers
 
UIPoint mAnchorPoint
 
UIPoint mPosition
 
UIRect mBounds
 
UIRect mFrame
 
double mOpacity = 1.0
 
bool mOpaque = true
 
AffineTransform mTransform
 
AffineTransform mSubLayerTransform
 
UIBackingStorePtr mBackingStore
 A backing store for the view contents.
 

Constructor & Destructor Documentation

◆ UILayer()

CeresEngine::UILayer::UILayer ( )
defaultnoexcept

◆ ~UILayer()

virtual CeresEngine::UILayer::~UILayer ( )
virtualdefaultnoexcept

Member Function Documentation

◆ addSublayer()

void CeresEngine::UILayer::addSublayer ( UILayer *  layer)

◆ display()

void CeresEngine::UILayer::display ( UIGraphicsContext &  context)

◆ displayIfNeeded()

void CeresEngine::UILayer::displayIfNeeded ( UIGraphicsContext &  context)

◆ draw()

virtual void CeresEngine::UILayer::draw ( UIGraphicsContext &  context)
virtual

◆ getNeedsDisplay()

bool CeresEngine::UILayer::getNeedsDisplay ( )

◆ getSubLayers()

const Vector< UILayerPtr > & CeresEngine::UILayer::getSubLayers ( ) const
inlinenoexcept

◆ getSuperLayer()

UILayer * CeresEngine::UILayer::getSuperLayer ( ) const
inlinenoexcept

◆ removeFromSuperlayer()

void CeresEngine::UILayer::removeFromSuperlayer ( )

◆ replaceSublayer()

void CeresEngine::UILayer::replaceSublayer ( UILayer *  layer,
UILayer *  other 
)

◆ setNeedsDisplay() [1/2]

void CeresEngine::UILayer::setNeedsDisplay ( )

◆ setNeedsDisplay() [2/2]

void CeresEngine::UILayer::setNeedsDisplay ( const UIRect &  rect)

Member Data Documentation

◆ mAnchorPoint

UIPoint CeresEngine::UILayer::mAnchorPoint
private

◆ mBackingStore

UIBackingStorePtr CeresEngine::UILayer::mBackingStore
private

A backing store for the view contents.

The contents of the view and all it's children will be rendered to this backing store and cached.

◆ mBounds

UIRect CeresEngine::UILayer::mBounds
private

◆ mFrame

UIRect CeresEngine::UILayer::mFrame
private

◆ mOpacity

double CeresEngine::UILayer::mOpacity = 1.0
private

◆ mOpaque

bool CeresEngine::UILayer::mOpaque = true
private

◆ mPosition

UIPoint CeresEngine::UILayer::mPosition
private

◆ mSubLayers

Vector<UILayerPtr> CeresEngine::UILayer::mSubLayers
private

◆ mSubLayerTransform

AffineTransform CeresEngine::UILayer::mSubLayerTransform
private

◆ mSuperLayer

UILayer* CeresEngine::UILayer::mSuperLayer
private

◆ mTransform

AffineTransform CeresEngine::UILayer::mTransform
private

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