1 #ifndef __DALI_TOOLKIT_RENDERER_FACTORY_IMPL_H__
2 #define __DALI_TOOLKIT_RENDERER_FACTORY_IMPL_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali/public-api/object/base-object.h>
24 #include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
25 #include <dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h>
36 class RendererFactoryCache;
37 typedef IntrusivePtr<RendererFactoryCache> RendererFactoryCachePtr;
40 * @copydoc Toolkit::RendererFactory
42 class RendererFactory : public BaseObject
53 * @copydoc Toolkit::RenderFactory::GetControlRenderer
55 Toolkit::ControlRenderer GetControlRenderer( const Property::Map& propertyMap );
60 * A reference counted object may only be deleted by calling Unreference()
62 virtual ~RendererFactory();
66 RendererFactoryCachePtr mFactoryCache;
69 } // namespace Internal
71 inline const Internal::RendererFactory& GetImplementation(const Toolkit::RendererFactory& factory)
73 DALI_ASSERT_ALWAYS( factory && "RendererFactory handle is empty" );
75 const BaseObject& handle = factory.GetBaseObject();
77 return static_cast<const Internal::RendererFactory&>(handle);
80 inline Internal::RendererFactory& GetImplementation(Toolkit::RendererFactory& factory)
82 DALI_ASSERT_ALWAYS( factory && "RendererFactory handle is empty" );
84 BaseObject& handle = factory.GetBaseObject();
86 return static_cast<Internal::RendererFactory&>(handle);
89 } // namespace Toolkit
93 #endif /* __DALI_TOOLKIT_RENDERER_FACTORY_IMPL_H__ */