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

The IndicatorBuffer class uses the best available implementation for rendering indicator data. More...

#include <indicator-buffer.h>

Inheritance diagram for Dali::Internal::Adaptor::IndicatorBuffer:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::IndicatorBuffer:
Collaboration graph
[legend]

Public Member Functions

 IndicatorBuffer (Adaptor *adaptor, unsigned int width, unsigned int height, Pixel::Format pixelFormat)
 Constructor. More...
 
bool UpdatePixels (const unsigned char *src, size_t size)
 Copy bitmap data to pixel buffer. More...
 
NativeImageInterfaceGetNativeImage () const
 Returns the NativeImage used internally. More...
 
void SetAdaptor (Adaptor *adaptor)
 Set currently used Adaptor. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Private Attributes

NativeImageInterfacePtr mNativeImage
 Image buffer created for shared file copy. More...
 
NativeBitmapBufferPtr mBitmapBuffer
 Image buffer created for shared file copy if extension not available. More...
 
AdaptormAdaptor
 
int mImageWidth
 
int mImageHeight
 
Pixel::Format mPixelFormat
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Detailed Description

The IndicatorBuffer class uses the best available implementation for rendering indicator data.

On platforms where EglImage is available it uses either SharedGlBuffer or NativeImageSource, on older platforms it falls back to using a bitmap buffer based solution.

Definition at line 46 of file indicator-buffer.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::IndicatorBuffer::IndicatorBuffer ( Adaptor adaptor,
unsigned int  width,
unsigned int  height,
Pixel::Format  pixelFormat 
)

Constructor.

Definition at line 28 of file indicator-buffer.cpp.

References DALI_ASSERT_ALWAYS, mBitmapBuffer, mImageHeight, mImageWidth, mNativeImage, and mPixelFormat.

Member Function Documentation

NativeImageInterface & Dali::Internal::Adaptor::IndicatorBuffer::GetNativeImage ( ) const

Returns the NativeImage used internally.

Returns
the NativeImage used internally

Definition at line 48 of file indicator-buffer.cpp.

References DALI_ASSERT_DEBUG, Dali::IntrusivePtr< T >::Get(), and mNativeImage.

Here is the call graph for this function:

void Dali::Internal::Adaptor::IndicatorBuffer::SetAdaptor ( Adaptor adaptor)

Set currently used Adaptor.

Parameters
adaptor

Definition at line 54 of file indicator-buffer.cpp.

References mAdaptor.

bool Dali::Internal::Adaptor::IndicatorBuffer::UpdatePixels ( const unsigned char *  src,
size_t  size 
)

Copy bitmap data to pixel buffer.

Parameters
srcbitmap data source
sizesize of bitmap data
Returns
true if successful, false otherwise

Definition at line 41 of file indicator-buffer.cpp.

References mBitmapBuffer.

Member Data Documentation

Adaptor* Dali::Internal::Adaptor::IndicatorBuffer::mAdaptor
private

Definition at line 80 of file indicator-buffer.h.

Referenced by SetAdaptor().

NativeBitmapBufferPtr Dali::Internal::Adaptor::IndicatorBuffer::mBitmapBuffer
private

Image buffer created for shared file copy if extension not available.

Definition at line 78 of file indicator-buffer.h.

Referenced by IndicatorBuffer(), and UpdatePixels().

int Dali::Internal::Adaptor::IndicatorBuffer::mImageHeight
private

Definition at line 83 of file indicator-buffer.h.

Referenced by IndicatorBuffer().

int Dali::Internal::Adaptor::IndicatorBuffer::mImageWidth
private

Definition at line 82 of file indicator-buffer.h.

Referenced by IndicatorBuffer().

NativeImageInterfacePtr Dali::Internal::Adaptor::IndicatorBuffer::mNativeImage
private

Image buffer created for shared file copy.

Definition at line 76 of file indicator-buffer.h.

Referenced by GetNativeImage(), and IndicatorBuffer().

Pixel::Format Dali::Internal::Adaptor::IndicatorBuffer::mPixelFormat
private

Definition at line 84 of file indicator-buffer.h.

Referenced by IndicatorBuffer().


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