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

Concrete implementation of the platform abstraction class. More...

#include <tizen-platform-abstraction.h>

Inheritance diagram for Dali::TizenPlatform::TizenPlatformAbstraction:
Inheritance graph
[legend]
Collaboration diagram for Dali::TizenPlatform::TizenPlatformAbstraction:
Collaboration graph
[legend]

Public Member Functions

 TizenPlatformAbstraction ()
 Constructor. More...
 
virtual ~TizenPlatformAbstraction ()
 Destructor. More...
 
virtual void Suspend ()
  More...
 
virtual void Resume ()
  More...
 
virtual ImageDimensions GetClosestImageSize (const std::string &filename, ImageDimensions size, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, bool orientationCorrection)
 : Rename GetClosestImageSize() functions. Make them use the orientation correction and scaling information. Requires jpeg loader to tell us about reorientation. [Is there still a requirement for this functionality at all?] More...
 
virtual ImageDimensions GetClosestImageSize (Integration::ResourcePointer resourceBuffer, ImageDimensions size, FittingMode::Type fittingMode, SamplingMode::Type samplingMode, bool orientationCorrection)
 : Rename GetClosestImageSize() functions. Make them use the orientation correction and scaling information. Requires jpeg loader to tell us about reorientation. [Is there still a requirement for this functionality at all?] More...
 
virtual void LoadResource (const Integration::ResourceRequest &request)
  More...
 
virtual
Integration::ResourcePointer 
LoadResourceSynchronously (const Integration::ResourceType &resourceType, const std::string &resourcePath)
  More...
 
virtual Integration::BitmapPtr DecodeBuffer (const Integration::ResourceType &resourceType, uint8_t *buffer, size_t size)
  More...
 
virtual void CancelLoad (Integration::ResourceId id, Integration::ResourceTypeId typeId)
  More...
 
virtual void GetResources (Integration::ResourceCache &cache)
  More...
 
virtual void JoinLoaderThreads ()
  More...
 
virtual int GetDefaultFontSize () const
  More...
 
virtual bool LoadFile (const std::string &filename, Dali::Vector< unsigned char > &buffer) const
  More...
 
virtual std::string LoadFile (const std::string &filename)
  More...
 
virtual bool LoadShaderBinaryFile (const std::string &filename, Dali::Vector< unsigned char > &buffer) const
  More...
 
virtual bool SaveShaderBinaryFile (const std::string &filename, const unsigned char *buffer, unsigned int numBytes) const
  More...
 
void SetDataStoragePath (const std::string &path)
 Sets path for data/resource storage. More...
 
- Public Member Functions inherited from Dali::Integration::PlatformAbstraction
virtual ~PlatformAbstraction ()
 Virtual destructor. More...
 

Private Attributes

ResourceLoadermResourceLoader
 
std::string mDataStoragePath
 

Detailed Description

Concrete implementation of the platform abstraction class.

Definition at line 43 of file tizen-platform-abstraction.h.

Constructor & Destructor Documentation

Dali::TizenPlatform::TizenPlatformAbstraction::TizenPlatformAbstraction ( )

Constructor.

Definition at line 46 of file tizen-platform-abstraction.cpp.

Dali::TizenPlatform::TizenPlatformAbstraction::~TizenPlatformAbstraction ( )
virtual

Destructor.

Definition at line 52 of file tizen-platform-abstraction.cpp.

References mResourceLoader.

Member Function Documentation

void Dali::TizenPlatform::TizenPlatformAbstraction::CancelLoad ( Integration::ResourceId  id,
Integration::ResourceTypeId  typeId 
)
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 134 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ResourceLoader::CancelLoad(), and mResourceLoader.

Here is the call graph for this function:

Integration::BitmapPtr Dali::TizenPlatform::TizenPlatformAbstraction::DecodeBuffer ( const Integration::ResourceType resourceType,
uint8_t *  buffer,
size_t  size 
)
virtual
ImageDimensions Dali::TizenPlatform::TizenPlatformAbstraction::GetClosestImageSize ( const std::string &  filename,
ImageDimensions  size,
FittingMode::Type  fittingMode,
SamplingMode::Type  samplingMode,
bool  orientationCorrection 
)
virtual

: Rename GetClosestImageSize() functions. Make them use the orientation correction and scaling information. Requires jpeg loader to tell us about reorientation. [Is there still a requirement for this functionality at all?]

Implements Dali::Integration::PlatformAbstraction.

Definition at line 84 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ImageLoader::GetClosestImageSize().

Here is the call graph for this function:

ImageDimensions Dali::TizenPlatform::TizenPlatformAbstraction::GetClosestImageSize ( Integration::ResourcePointer  resourceBuffer,
ImageDimensions  size,
FittingMode::Type  fittingMode,
SamplingMode::Type  samplingMode,
bool  orientationCorrection 
)
virtual

: Rename GetClosestImageSize() functions. Make them use the orientation correction and scaling information. Requires jpeg loader to tell us about reorientation. [Is there still a requirement for this functionality at all?]

Implements Dali::Integration::PlatformAbstraction.

Definition at line 93 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ImageLoader::GetClosestImageSize().

Here is the call graph for this function:

int Dali::TizenPlatform::TizenPlatformAbstraction::GetDefaultFontSize ( ) const
virtual
void Dali::TizenPlatform::TizenPlatformAbstraction::GetResources ( Integration::ResourceCache cache)
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 142 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ResourceLoader::GetResources(), and mResourceLoader.

Here is the call graph for this function:

void Dali::TizenPlatform::TizenPlatformAbstraction::JoinLoaderThreads ( )
virtual
bool Dali::TizenPlatform::TizenPlatformAbstraction::LoadFile ( const std::string &  filename,
Dali::Vector< unsigned char > &  buffer 
) const
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 150 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ResourceLoader::LoadFile(), and mResourceLoader.

Here is the call graph for this function:

std::string Dali::TizenPlatform::TizenPlatformAbstraction::LoadFile ( const std::string &  filename)
virtual

Definition at line 162 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ResourceLoader::LoadFile(), and mResourceLoader.

Here is the call graph for this function:

void Dali::TizenPlatform::TizenPlatformAbstraction::LoadResource ( const Integration::ResourceRequest request)
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 102 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ResourceLoader::LoadResource(), and mResourceLoader.

Here is the call graph for this function:

Integration::ResourcePointer Dali::TizenPlatform::TizenPlatformAbstraction::LoadResourceSynchronously ( const Integration::ResourceType resourceType,
const std::string &  resourcePath 
)
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 110 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ImageLoader::LoadResourceSynchronously().

Here is the call graph for this function:

bool Dali::TizenPlatform::TizenPlatformAbstraction::LoadShaderBinaryFile ( const std::string &  filename,
Dali::Vector< unsigned char > &  buffer 
) const
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 179 of file tizen-platform-abstraction.cpp.

References Dali::TizenPlatform::ResourceLoader::LoadFile(), mDataStoragePath, and mResourceLoader.

Here is the call graph for this function:

void Dali::TizenPlatform::TizenPlatformAbstraction::Resume ( )
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 65 of file tizen-platform-abstraction.cpp.

References mResourceLoader, and Dali::TizenPlatform::ResourceLoader::Resume().

Here is the call graph for this function:

bool Dali::TizenPlatform::TizenPlatformAbstraction::SaveShaderBinaryFile ( const std::string &  filename,
const unsigned char *  buffer,
unsigned int  numBytes 
) const
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 207 of file tizen-platform-abstraction.cpp.

References mDataStoragePath, mResourceLoader, and Dali::TizenPlatform::ResourceLoader::SaveFile().

Here is the call graph for this function:

void Dali::TizenPlatform::TizenPlatformAbstraction::SetDataStoragePath ( const std::string &  path)

Sets path for data/resource storage.

Parameters
[in]pathdata/resource storage path

Definition at line 226 of file tizen-platform-abstraction.cpp.

References mDataStoragePath.

Referenced by Dali::Internal::Adaptor::Adaptor::Initialize().

Here is the caller graph for this function:

void Dali::TizenPlatform::TizenPlatformAbstraction::Suspend ( )
virtual

Implements Dali::Integration::PlatformAbstraction.

Definition at line 57 of file tizen-platform-abstraction.cpp.

References mResourceLoader, and Dali::TizenPlatform::ResourceLoader::Pause().

Here is the call graph for this function:

Member Data Documentation

std::string Dali::TizenPlatform::TizenPlatformAbstraction::mDataStoragePath
private
ResourceLoader* Dali::TizenPlatform::TizenPlatformAbstraction::mResourceLoader
private

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