projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create Renderer when the Visual is created
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
visuals
/
border
/
border-visual.h
diff --git
a/dali-toolkit/internal/visuals/border/border-visual.h
b/dali-toolkit/internal/visuals/border/border-visual.h
index
c9d6465
..
15cb5bf
100644
(file)
--- a/
dali-toolkit/internal/visuals/border/border-visual.h
+++ b/
dali-toolkit/internal/visuals/border/border-visual.h
@@
-2,7
+2,7
@@
#define DALI_TOOLKIT_INTERNAL_BORDER_VISUAL_H
/*
#define DALI_TOOLKIT_INTERNAL_BORDER_VISUAL_H
/*
- * Copyright (c) 20
16
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
21
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-76,53
+76,38
@@
protected:
virtual ~BorderVisual();
/**
virtual ~BorderVisual();
/**
- * @copydoc Visual::Base::
DoSetProperties
+ * @copydoc Visual::Base::
OnInitialize
*/
*/
- v
irtual void DoSetProperties( const Property::Map& propertyMap )
;
+ v
oid OnInitialize() override
;
/**
/**
- * @copydoc Visual::Base::DoSetOnStage
- */
- virtual void DoSetOnStage( Actor& actor );
-
- /**
- * @copydoc Visual::Base::CreatePropertyMap
+ * @copydoc Visual::Base::DoSetProperties
*/
*/
- v
irtual void DoCreatePropertyMap( Property::Map& map ) const
;
+ v
oid DoSetProperties( const Property::Map& propertyMap ) override
;
/**
/**
- * @copydoc Visual::Base::
OnSetTransform
+ * @copydoc Visual::Base::
DoSetOnScene
*/
*/
- virtual void OnSetTransform();
-
-public:
+ void DoSetOnScene( Actor& actor ) override;
/**
/**
- * Set the color of the border.
- * @param[in] color The border color.
+ * @copydoc Visual::Base::CreatePropertyMap
*/
*/
- void
SetBorderColor( const Vector4& color)
;
+ void
DoCreatePropertyMap( Property::Map& map ) const override
;
/**
/**
- * Set the size of the border.
- * @param[in] size The border size.
+ * @copydoc Visual::Base::CreateInstancePropertyMap
*/
*/
- void
SetBorderSize( float size )
;
+ void
DoCreateInstancePropertyMap( Property::Map& map ) const override
;
/**
/**
- * Enable/Disable the anti-aliasing.
- * @param[in] enable Whether the anti-aliasing be enabled or not.
+ * @copydoc Visual::Base::OnSetTransform
*/
*/
- void
RequireAntiAliasing( bool antiAliasing )
;
+ void
OnSetTransform() override
;
private:
/**
private:
/**
- * @brief Initialize the renderer with the geometry and shader from the cache, if not available, create and save to the cache for sharing.
- */
- void InitializeRenderer();
-
- /**
* Request the border shader from the factory cache. If fail, create tha shader and add it to cache.
* @return The border shader.
*/
* Request the border shader from the factory cache. If fail, create tha shader and add it to cache.
* @return The border shader.
*/
@@
-134,6
+119,13
@@
private:
*/
Geometry CreateBorderGeometry();
*/
Geometry CreateBorderGeometry();
+ /**
+ * Helper method to set individual values by index key.
+ * @param[in] index The index key of the value
+ * @param[in] value The value
+ */
+ void DoSetProperty( Property::Index index, const Property::Value& value );
+
// Undefined
BorderVisual( const BorderVisual& borderRenderer );
// Undefined
BorderVisual( const BorderVisual& borderRenderer );