Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes | Private Member Functions
Dali::Integration::BitmapResourceType Struct Reference

BitmapResourceType describes a bitmap resource, which can be requested from ResourceLoader::LoadResource() or AllocateBitmapImage. More...

#include <resource-types.h>

Inheritance diagram for Dali::Integration::BitmapResourceType:
Inheritance graph
[legend]
Collaboration diagram for Dali::Integration::BitmapResourceType:
Collaboration graph
[legend]

Public Member Functions

 BitmapResourceType (ImageDimensions size=ImageDimensions(0, 0), FittingMode::Type scalingMode=FittingMode::DEFAULT, SamplingMode::Type samplingMode=SamplingMode::DEFAULT, bool orientationCorrection=true)
 Constructor. More...
 
virtual ~BitmapResourceType ()
 Destructor. More...
 
virtual ResourceTypeClone () const
 Create a copy of the resource type with the same attributes. More...
 
- Public Member Functions inherited from Dali::Integration::ResourceType
 ResourceType (ResourceTypeId typeId)
 Constructor. More...
 
virtual ~ResourceType ()
 Destructor. More...
 

Public Attributes

ImageDimensions size
 Attributes are copied from the request. More...
 
FittingMode::Type scalingMode
 
SamplingMode::Type samplingMode
 
bool orientationCorrection
 
- Public Attributes inherited from Dali::Integration::ResourceType
const ResourceTypeId id
 

Private Member Functions

 BitmapResourceType (const BitmapResourceType &typePath)
 
BitmapResourceTypeoperator= (const BitmapResourceType &rhs)
 

Detailed Description

BitmapResourceType describes a bitmap resource, which can be requested from ResourceLoader::LoadResource() or AllocateBitmapImage.

Definition at line 91 of file resource-types.h.

Constructor & Destructor Documentation

Dali::Integration::BitmapResourceType::BitmapResourceType ( ImageDimensions  size = ImageDimensions( 0, 0 ),
FittingMode::Type  scalingMode = FittingMode::DEFAULT,
SamplingMode::Type  samplingMode = SamplingMode::DEFAULT,
bool  orientationCorrection = true 
)
inline

Constructor.

Parameters
[in]sizeThe requested size for the bitmap.
[in]scalingModeThe method to use to map the source bitmap to the desired dimensions.
[in]samplingModeThe filter to use if the bitmap needs to be downsampled to the requested size.
[in]orientationCorrectionWhether to use bitmap metadata to rotate or flip the bitmap, e.g., from portrait to landscape.

Definition at line 103 of file resource-types.h.

Referenced by Clone().

Here is the caller graph for this function:

virtual Dali::Integration::BitmapResourceType::~BitmapResourceType ( )
inlinevirtual

Destructor.

Definition at line 113 of file resource-types.h.

Dali::Integration::BitmapResourceType::BitmapResourceType ( const BitmapResourceType typePath)
private

Member Function Documentation

virtual ResourceType* Dali::Integration::BitmapResourceType::Clone ( ) const
inlinevirtual

Create a copy of the resource type with the same attributes.

Returns
pointer to the new ResourceType.

Implements Dali::Integration::ResourceType.

Definition at line 118 of file resource-types.h.

References BitmapResourceType(), orientationCorrection, samplingMode, scalingMode, and size.

Here is the call graph for this function:

BitmapResourceType& Dali::Integration::BitmapResourceType::operator= ( const BitmapResourceType rhs)
private

Member Data Documentation

bool Dali::Integration::BitmapResourceType::orientationCorrection
SamplingMode::Type Dali::Integration::BitmapResourceType::samplingMode
FittingMode::Type Dali::Integration::BitmapResourceType::scalingMode
ImageDimensions Dali::Integration::BitmapResourceType::size

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