1 #ifndef __DALI_TOOLKIT_INTERNAL_DEBUG_RENDERER_H__
2 #define __DALI_TOOLKIT_INTERNAL_DEBUG_RENDERER_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.
22 #include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
34 * The renderer which renders a wireframe outline to the control's quad for debugging
37 class DebugRenderer: public ControlRenderer
44 * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
46 DebugRenderer( RendererFactoryCache& factoryCache );
49 * @brief A reference counted object may only be deleted by calling Unreference().
51 virtual ~DebugRenderer();
56 * @copydoc ControlRenderer::DoSetOnStage
58 virtual void DoSetOnStage( Actor& actor );
61 * @copydoc ControlRenderer::CreatePropertyMap
63 virtual void DoCreatePropertyMap( Property::Map& map ) const;
68 * Create the geometry which presents the quad wireframe.
69 * @return The border geometry
71 Geometry CreateQuadWireframeGeometry();
74 * @brief Initialise the renderer from the cache, if not available, create and save to the cache for sharing.
76 void InitializeRenderer();
81 DebugRenderer( const DebugRenderer& debugRenderer );
84 DebugRenderer& operator=( const DebugRenderer& debugRenderer );
88 } // namespace Internal
90 } // namespace Toolkit
94 #endif /* __DALI_TOOLKIT_INTERNAL_DEBUG_RENDERER_H__ */