Dali 3D User Interface Engine
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::ImageConnector Class Reference

Wrapper class which helps managing intrusive pointer assignments and Connect / Disconnect. More...

#include <image-connector.h>

Collaboration diagram for Dali::Internal::ImageConnector:
Collaboration graph
[legend]

Public Member Functions

 ImageConnector ()
 Constructor. More...
 
 ~ImageConnector ()
 Destructor. More...
 
ImagePtr Get () const
 Returns a smart pointer to the image. More...
 
void Set (ImagePtr image, bool onStage)
 Assigns image, calling Connect and Disconnect methods accordingly, taking onStage into account. More...
 
void OnStageConnect ()
 Manages connection reference count. More...
 
void OnStageDisconnect ()
 Manages connection reference count. More...
 

Private Member Functions

 ImageConnector (const ImageConnector &ptr)
 copy constructor, not defined More...
 
const ImageConnectoroperator= (const ImageConnector &ptr)
 copy assignment operator, not defined More...
 

Private Attributes

ImagePtr mImage
 intrusive pointer to the Image. ImageConnector owns this. More...
 

Detailed Description

Wrapper class which helps managing intrusive pointer assignments and Connect / Disconnect.

Definition at line 36 of file image-connector.h.

Constructor & Destructor Documentation

Dali::Internal::ImageConnector::ImageConnector ( )

Constructor.

Takes no parameters.

Definition at line 30 of file image-connector.cpp.

Dali::Internal::ImageConnector::~ImageConnector ( )

Destructor.

Definition at line 35 of file image-connector.cpp.

Dali::Internal::ImageConnector::ImageConnector ( const ImageConnector ptr)
private

copy constructor, not defined

Member Function Documentation

ImagePtr Dali::Internal::ImageConnector::Get ( ) const

Returns a smart pointer to the image.

Returns
a smart pointer to the image

Definition at line 39 of file image-connector.cpp.

References mImage.

void Dali::Internal::ImageConnector::OnStageConnect ( )

Manages connection reference count.

Must be called from owner when connected to stage.

Definition at line 64 of file image-connector.cpp.

References mImage.

void Dali::Internal::ImageConnector::OnStageDisconnect ( )

Manages connection reference count.

Must be called from owner when disconnecting from stage.

Definition at line 72 of file image-connector.cpp.

References mImage.

const ImageConnector& Dali::Internal::ImageConnector::operator= ( const ImageConnector ptr)
private

copy assignment operator, not defined

void Dali::Internal::ImageConnector::Set ( ImagePtr  image,
bool  onStage 
)

Assigns image, calling Connect and Disconnect methods accordingly, taking onStage into account.

Parameters
[in]imagesmart pointer to new Image
[in]onStagewhether Image is used on stage or not

Definition at line 44 of file image-connector.cpp.

References mImage.

Member Data Documentation

ImagePtr Dali::Internal::ImageConnector::mImage
private

intrusive pointer to the Image. ImageConnector owns this.

Definition at line 80 of file image-connector.h.

Referenced by Get(), OnStageConnect(), OnStageDisconnect(), and Set().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali