// EXTERNAL INCLUDES
#include <stdint.h>
-#include <string>
// INTERNAL INCLUDES
-#include <dali/public-api/common/dali-common.h>
-#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/images/image-operations.h>
#include <dali/public-api/math/uint-16-pair.h>
-#include <dali/public-api/math/vector2.h>
namespace Dali
{
namespace Integration
{
-// Resource Types
-
-/**
- * Extendable set of resource types
- */
-enum ResourceTypeId
-{
- ResourceBitmap
-};
-
-/**
- * The abstract base class for resource types.
- */
-struct ResourceType
-{
- /**
- * Constructor.
- * @param[in] typeId resource type id
- */
- ResourceType(ResourceTypeId typeId)
- : id(typeId) {}
-
- /**
- * Destructor.
- */
- virtual ~ResourceType() {}
-
- /**
- * Create a copy of the resource type with the same attributes.
- * @return pointer to the new ResourceType.
- */
- virtual ResourceType* Clone() const = 0;
-
- const ResourceTypeId id;
-
-private:
-
- // Undefined copy constructor.
- ResourceType(const ResourceType& typePath);
-
- // Undefined assignment operator.
- ResourceType& operator=(const ResourceType& rhs);
-};
-
/**
- * BitmapResourceType describes a bitmap resource, which can be requested
- * from ResourceLoader::LoadResource() or AllocateBitmapImage.
+ * BitmapResourceType describes a bitmap resource.
*/
-struct BitmapResourceType : public ResourceType
+struct BitmapResourceType
{
/**
* Constructor.
FittingMode::Type scalingMode = FittingMode::DEFAULT,
SamplingMode::Type samplingMode = SamplingMode::DEFAULT,
bool orientationCorrection = true )
- : ResourceType(ResourceBitmap),
- size(size), scalingMode(scalingMode), samplingMode(samplingMode), orientationCorrection(orientationCorrection) {}
+ : size( size ),
+ scalingMode( scalingMode ),
+ samplingMode( samplingMode ),
+ orientationCorrection( orientationCorrection )
+ {}
/**
* Destructor.
*/
- virtual ~BitmapResourceType() {}
-
- /**
- * @copydoc ResourceType::Clone
- */
- virtual ResourceType* Clone() const
- {
- return new BitmapResourceType( size, scalingMode, samplingMode, orientationCorrection );
- }
+ ~BitmapResourceType()
+ {}
/**
* Attributes are copied from the request.
// Undefined assignment operator.
BitmapResourceType& operator=(const BitmapResourceType& rhs);
+
};
} // namespace Integration