#define DALI_TOOLKIT_VISUAL_FACTORY_IMPL_H
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class VisualFactoryCache;
typedef IntrusivePtr<VisualFactoryCache> VisualFactoryCachePtr;
-class ImageAtlasManager;
-typedef IntrusivePtr<ImageAtlasManager> ImageAtlasManagerPtr;
-
/**
* @copydoc Toolkit::VisualFactory
*/
{
public:
- enum RendererType
- {
- COLOR,
- BORDER,
- GRADIENT,
- IMAGE,
- N_PATCH,
- SVG,
- MESH,
- PRIMITIVE,
- UNDEFINED
- };
-
/**
* @brief Constructor
*
*/
Toolkit::Visual::Base CreateVisual( const std::string& image, ImageDimensions size );
-public:
- /**
- * @brief Returns an image to be used when a renderer has failed to correctly render
- */
- static Image GetBrokenRendererImage();
protected:
private:
/**
- * Get the visual type from the property map.
- *
- * @param[in] propertyMap The map contains the properties of the visual
- * @return The rendererType
- */
- RendererType GetRendererType( const Property::Map& propertyMap );
-
- /**
- * Prepare the atlas manager
- */
- void CreateAtlasManager();
-
- /**
* Undefined copy constructor.
*/
VisualFactory(const VisualFactory&);
private:
VisualFactoryCachePtr mFactoryCache;
- ImageAtlasManagerPtr mAtlasManager;
bool mDebugEnabled;
};