projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use modern construct '= default' for special functions.
[platform/core/uifw/dali-core.git]
/
dali
/
public-api
/
actors
/
camera-actor.cpp
diff --git
a/dali/public-api/actors/camera-actor.cpp
b/dali/public-api/actors/camera-actor.cpp
index
d763bcd
..
93c1cfd
100644
(file)
--- a/
dali/public-api/actors/camera-actor.cpp
+++ b/
dali/public-api/actors/camera-actor.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 20
15
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
20
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.
@@
-23,18
+23,16
@@
namespace Dali
{
namespace Dali
{
-
CameraActor CameraActor::New()
{
CameraActor CameraActor::New()
{
- Internal::CameraActorPtr internal = Internal::CameraActor::New(
Size::ZERO
);
+ Internal::CameraActorPtr internal = Internal::CameraActor::New(
Size::ZERO
);
return CameraActor(internal.Get());
}
return CameraActor(internal.Get());
}
-
-CameraActor CameraActor::New( const Size& size )
+CameraActor CameraActor::New(const Size& size)
{
{
- Internal::CameraActorPtr internal = Internal::CameraActor::New(
size
);
+ Internal::CameraActorPtr internal = Internal::CameraActor::New(
size
);
return CameraActor(internal.Get());
}
return CameraActor(internal.Get());
}
@@
-44,23
+42,16
@@
CameraActor::CameraActor(Internal::CameraActor* internal)
{
}
{
}
-CameraActor CameraActor::DownCast(
BaseHandle handle
)
+CameraActor CameraActor::DownCast(
BaseHandle handle
)
{
{
- return CameraActor(
dynamic_cast<Dali::Internal::CameraActor*>(handle.GetObjectPtr())
);
+ return CameraActor(
dynamic_cast<Dali::Internal::CameraActor*>(handle.GetObjectPtr())
);
}
}
-CameraActor::CameraActor()
-{
-}
+CameraActor::CameraActor() = default;
-CameraActor::~CameraActor()
-{
-}
+CameraActor::~CameraActor() = default;
-CameraActor::CameraActor(const CameraActor& copy)
-: Actor(copy)
-{
-}
+CameraActor::CameraActor(const CameraActor& copy) = default;
CameraActor& CameraActor::operator=(const CameraActor& rhs)
{
CameraActor& CameraActor::operator=(const CameraActor& rhs)
{
@@
-68,7
+59,7
@@
CameraActor& CameraActor::operator=(const CameraActor& rhs)
return *this;
}
return *this;
}
-void CameraActor::SetType(
Dali::Camera::Type type
)
+void CameraActor::SetType(
Dali::Camera::Type type
)
{
GetImplementation(*this).SetType(type);
}
{
GetImplementation(*this).SetType(type);
}
@@
-78,9
+69,9
@@
Dali::Camera::Type CameraActor::GetType() const
return GetImplementation(*this).GetType();
}
return GetImplementation(*this).GetType();
}
-void CameraActor::SetProjectionMode(
Dali::Camera::ProjectionMode mode
)
+void CameraActor::SetProjectionMode(
Dali::Camera::ProjectionMode mode
)
{
{
- GetImplementation(*this).SetProjectionMode(
mode
);
+ GetImplementation(*this).SetProjectionMode(
mode
);
}
Dali::Camera::ProjectionMode CameraActor::GetProjectionMode() const
}
Dali::Camera::ProjectionMode CameraActor::GetProjectionMode() const
@@
-88,54
+79,54
@@
Dali::Camera::ProjectionMode CameraActor::GetProjectionMode() const
return GetImplementation(*this).GetProjectionMode();
}
return GetImplementation(*this).GetProjectionMode();
}
-void CameraActor::SetFieldOfView(
float fieldOfView
)
+void CameraActor::SetFieldOfView(
float fieldOfView
)
{
GetImplementation(*this).SetFieldOfView(fieldOfView);
}
{
GetImplementation(*this).SetFieldOfView(fieldOfView);
}
-float CameraActor::GetFieldOfView(
)
+float CameraActor::GetFieldOfView()
{
return GetImplementation(*this).GetFieldOfView();
}
{
return GetImplementation(*this).GetFieldOfView();
}
-void CameraActor::SetAspectRatio(
float aspectRatio
)
+void CameraActor::SetAspectRatio(
float aspectRatio
)
{
GetImplementation(*this).SetAspectRatio(aspectRatio);
}
{
GetImplementation(*this).SetAspectRatio(aspectRatio);
}
-float CameraActor::GetAspectRatio(
)
+float CameraActor::GetAspectRatio()
{
return GetImplementation(*this).GetAspectRatio();
}
{
return GetImplementation(*this).GetAspectRatio();
}
-void CameraActor::SetNearClippingPlane(
float nearClippingPlane
)
+void CameraActor::SetNearClippingPlane(
float nearClippingPlane
)
{
GetImplementation(*this).SetNearClippingPlane(nearClippingPlane);
}
{
GetImplementation(*this).SetNearClippingPlane(nearClippingPlane);
}
-float CameraActor::GetNearClippingPlane(
)
+float CameraActor::GetNearClippingPlane()
{
return GetImplementation(*this).GetNearClippingPlane();
}
{
return GetImplementation(*this).GetNearClippingPlane();
}
-void CameraActor::SetFarClippingPlane(
float farClippingPlane
)
+void CameraActor::SetFarClippingPlane(
float farClippingPlane
)
{
GetImplementation(*this).SetFarClippingPlane(farClippingPlane);
}
{
GetImplementation(*this).SetFarClippingPlane(farClippingPlane);
}
-float CameraActor::GetFarClippingPlane(
)
+float CameraActor::GetFarClippingPlane()
{
return GetImplementation(*this).GetFarClippingPlane();
}
{
return GetImplementation(*this).GetFarClippingPlane();
}
-void CameraActor::SetTargetPosition(
const Vector3& targetPosition
)
+void CameraActor::SetTargetPosition(
const Vector3& targetPosition
)
{
{
- GetImplementation(*this).SetTarget
Position
(targetPosition);
+ GetImplementation(*this).SetTarget(targetPosition);
}
Vector3 CameraActor::GetTargetPosition() const
{
}
Vector3 CameraActor::GetTargetPosition() const
{
- return GetImplementation(*this).GetTarget
Position
();
+ return GetImplementation(*this).GetTarget();
}
void CameraActor::SetInvertYAxis(bool invertYAxis)
}
void CameraActor::SetInvertYAxis(bool invertYAxis)
@@
-148,19
+139,19
@@
bool CameraActor::GetInvertYAxis()
return GetImplementation(*this).GetInvertYAxis();
}
return GetImplementation(*this).GetInvertYAxis();
}
-void CameraActor::SetPerspectiveProjection(
const Size& size
)
+void CameraActor::SetPerspectiveProjection(
const Size& size
)
{
{
- GetImplementation(*this).SetPerspectiveProjection(
size
);
+ GetImplementation(*this).SetPerspectiveProjection(
size
);
}
}
-void CameraActor::SetOrthographicProjection(
const Vector2& size
)
+void CameraActor::SetOrthographicProjection(
const Vector2& size
)
{
{
- GetImplementation(*this).SetOrthographicProjection(
size
);
+ GetImplementation(*this).SetOrthographicProjection(
size
);
}
}
-void CameraActor::SetOrthographicProjection(
float left, float right, float top, float bottom, float near, float far
)
+void CameraActor::SetOrthographicProjection(
float left, float right, float top, float bottom, float near, float far
)
{
{
- GetImplementation(*this).SetOrthographicProjection(
left, right, top, bottom, near, far
);
+ GetImplementation(*this).SetOrthographicProjection(
left, right, top, bottom, near, far
);
}
} // namespace Dali
}
} // namespace Dali