projects
/
platform
/
core
/
uifw
/
dali-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Revert "Renamed KeyEvent enum values to comply with coding standards.""
[platform/core/uifw/dali-demo.git]
/
examples
/
bezier-curve
/
bezier-curve-example.cpp
diff --git
a/examples/bezier-curve/bezier-curve-example.cpp
b/examples/bezier-curve/bezier-curve-example.cpp
index
677152e
..
d92bab9
100644
(file)
--- a/
examples/bezier-curve/bezier-curve-example.cpp
+++ b/
examples/bezier-curve/bezier-curve-example.cpp
@@
-300,7
+300,7
@@
public:
Property::Map curveVertexFormat;
curveVertexFormat["aPosition"] = Property::VECTOR2;
Property::Map curveVertexFormat;
curveVertexFormat["aPosition"] = Property::VECTOR2;
- mCurveVertices =
Property
Buffer::New( curveVertexFormat );
+ mCurveVertices =
Vertex
Buffer::New( curveVertexFormat );
Vector2 vertexData[2] = { Vector2(-0.5f, 0.5f), Vector2( 0.5f, -0.5f ) };
mCurveVertices.SetData( vertexData, 2 );
Vector2 vertexData[2] = { Vector2(-0.5f, 0.5f), Vector2( 0.5f, -0.5f ) };
mCurveVertices.SetData( vertexData, 2 );
@@
-334,7
+334,7
@@
public:
return actor;
}
return actor;
}
- Actor CreateControlLine(
Property
Buffer vertexBuffer )
+ Actor CreateControlLine(
Vertex
Buffer vertexBuffer )
{
Actor line = Actor::New();
line.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
{
Actor line = Actor::New();
line.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
@@
-364,8
+364,8
@@
public:
Property::Map lineVertexFormat;
lineVertexFormat["aPosition"] = Property::VECTOR2;
Property::Map lineVertexFormat;
lineVertexFormat["aPosition"] = Property::VECTOR2;
- mLine1Vertices =
Property
Buffer::New( lineVertexFormat );
- mLine2Vertices =
Property
Buffer::New( lineVertexFormat );
+ mLine1Vertices =
Vertex
Buffer::New( lineVertexFormat );
+ mLine2Vertices =
Vertex
Buffer::New( lineVertexFormat );
mControlLine1 = CreateControlLine( mLine1Vertices );
mControlLine2 = CreateControlLine( mLine2Vertices );
mControlLine1 = CreateControlLine( mLine1Vertices );
mControlLine2 = CreateControlLine( mLine2Vertices );
@@
-573,7
+573,7
@@
public:
void OnKeyEvent(const KeyEvent& event)
{
void OnKeyEvent(const KeyEvent& event)
{
- if( event.
state == KeyEvent::Down
&& (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK )) )
+ if( event.
GetState() == KeyEvent::DOWN
&& (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK )) )
{
mApplication.Quit();
}
{
mApplication.Quit();
}
@@
-595,9
+595,9
@@
private:
Timer mTimer;
Animation mDragAnimation;
Animation mBezierAnimation;
Timer mTimer;
Animation mDragAnimation;
Animation mBezierAnimation;
-
Property
Buffer mCurveVertices;
-
Property
Buffer mLine1Vertices;
-
Property
Buffer mLine2Vertices;
+
Vertex
Buffer mCurveVertices;
+
Vertex
Buffer mLine1Vertices;
+
Vertex
Buffer mLine2Vertices;
Vector2 mRelativeDragPoint;
Vector2 mLastControlPointPosition1;
Vector2 mLastControlPointPosition2;
Vector2 mRelativeDragPoint;
Vector2 mLastControlPointPosition1;
Vector2 mLastControlPointPosition2;