namespace Dali
{
-
namespace Toolkit
{
-
namespace Internal
{
-
class WireframeVisual;
-typedef IntrusivePtr< WireframeVisual > WireframeVisualPtr;
+typedef IntrusivePtr<WireframeVisual> WireframeVisualPtr;
/**
* @brief Renders a wireframe outline to the control's quad.
*/
-class WireframeVisual: public Visual::Base
+class WireframeVisual : public Visual::Base
{
public:
-
/**
* @brief Create a new wireframe visual.
*
* @param[in] properties A Property::Map containing settings for this visual
* @return A smart-pointer to the newly allocated visual.
*/
- static WireframeVisualPtr New( VisualFactoryCache& factoryCache, const Property::Map& properties );
+ static WireframeVisualPtr New(VisualFactoryCache& factoryCache, const Property::Map& properties);
/**
* @brief Create a new wireframe visual with an encapsulated actual visual.
* @param[in] actualVisual The encapsulated actual visual.
* @return A smart-pointer to the newly allocated visual.
*/
- static WireframeVisualPtr New( VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual );
+ static WireframeVisualPtr New(VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual);
/**
* @brief Create a new wireframe visual with an encapsulated actual visual.
* @param[in] properties A Property::Map containing settings for this visual
* @return A smart-pointer to the newly allocated visual.
*/
- static WireframeVisualPtr New( VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual, const Property::Map& properties );
-
+ static WireframeVisualPtr New(VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual, const Property::Map& properties);
protected:
-
/**
* @brief Constructor.
*
* @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
* @param[in] actualVisual The encapsulated actual visual.
*/
- WireframeVisual( VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual );
+ WireframeVisual(VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual);
/**
* @brief A reference counted object may only be deleted by calling Unreference().
/**
* @copydoc Visual::Base::GetHeightForWidth()
*/
- float GetHeightForWidth( float width ) override;
+ float GetHeightForWidth(float width) override;
/**
* @copydoc Visual::Base::GetNaturalSize()
*/
- void GetNaturalSize( Vector2& naturalSize ) override;
+ void GetNaturalSize(Vector2& naturalSize) override;
/**
* @copydoc Visual::Base::CreatePropertyMap()
*/
- void DoCreatePropertyMap( Property::Map& map ) const override;
+ void DoCreatePropertyMap(Property::Map& map) const override;
/**
* @copydoc Visual::Base::CreateInstancePropertyMap
*/
- void DoCreateInstancePropertyMap( Property::Map& map ) const override;
+ void DoCreateInstancePropertyMap(Property::Map& map) const override;
/**
* @copydoc Visual::Base::DoSetProperties()
*/
- void DoSetProperties( const Property::Map& propertyMap ) override;
+ void DoSetProperties(const Property::Map& propertyMap) override;
/**
* @copydoc Visual::Base::DoSetOnScene
*/
- void DoSetOnScene( Actor& actor ) override;
+ void DoSetOnScene(Actor& actor) override;
/**
* @copydoc Visual::Base::OnSetTransform
Geometry CreateQuadWireframeGeometry();
// Undefined
- WireframeVisual( const WireframeVisual& visual);
+ WireframeVisual(const WireframeVisual& visual);
// Undefined
- WireframeVisual& operator=( const WireframeVisual& visual );
+ WireframeVisual& operator=(const WireframeVisual& visual);
private:
-
Visual::BasePtr mActualVisual;
-
};
} // namespace Internal