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
Add new layouting support for TextLabel and ImageView.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
devel-api
/
visual-factory
/
visual-base.cpp
diff --git
a/dali-toolkit/devel-api/visual-factory/visual-base.cpp
b/dali-toolkit/devel-api/visual-factory/visual-base.cpp
index
c5b822d
..
7b20c60
100644
(file)
--- a/
dali-toolkit/devel-api/visual-factory/visual-base.cpp
+++ b/
dali-toolkit/devel-api/visual-factory/visual-base.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
5
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
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.
@@
-56,24
+56,24
@@
void Visual::Base::SetName( const std::string& name )
GetImplementation( *this ).SetName( name );
}
GetImplementation( *this ).SetName( name );
}
-const std::string& Visual::Base::GetName()
+const std::string& Visual::Base::GetName()
const
{
return GetImplementation( *this ).GetName();
}
{
return GetImplementation( *this ).GetName();
}
-void Visual::Base::Set
Size( const Vector2& s
ize )
+void Visual::Base::Set
TransformAndSize( const Dali::Property::Map& transform, Size controlS
ize )
{
{
- GetImplementation( *this ).Set
Size( s
ize );
+ GetImplementation( *this ).Set
TransformAndSize( transform, controlS
ize );
}
}
-const Vector2& Visual::Base::GetSize() const
+float Visual::Base::GetHeightForWidth( float width )
{
{
- return GetImplementation( *this ).Get
Size(
);
+ return GetImplementation( *this ).Get
HeightForWidth( width
);
}
}
-float Visual::Base::Get
HeightForWidth( float width ) const
+float Visual::Base::Get
WidthForHeight( float height )
{
{
- return GetImplementation( *this ).Get
HeightForWidth( width
);
+ return GetImplementation( *this ).Get
WidthForHeight( height
);
}
void Visual::Base::GetNaturalSize(Vector2& naturalSize )
}
void Visual::Base::GetNaturalSize(Vector2& naturalSize )
@@
-81,30
+81,23
@@
void Visual::Base::GetNaturalSize(Vector2& naturalSize )
GetImplementation( *this ).GetNaturalSize( naturalSize );
}
GetImplementation( *this ).GetNaturalSize( naturalSize );
}
-void Visual::Base::SetDepthIndex(
floa
t index )
+void Visual::Base::SetDepthIndex(
in
t index )
{
GetImplementation( *this ).SetDepthIndex( index );
}
{
GetImplementation( *this ).SetDepthIndex( index );
}
-
floa
t Visual::Base::GetDepthIndex() const
+
in
t Visual::Base::GetDepthIndex() const
{
return GetImplementation( *this ).GetDepthIndex();
}
{
return GetImplementation( *this ).GetDepthIndex();
}
-void Visual::Base::CreatePropertyMap( Property::Map& map ) const
+void Visual::Base::CreatePropertyMap(
Dali::
Property::Map& map ) const
{
GetImplementation( *this ).CreatePropertyMap( map );
}
{
GetImplementation( *this ).CreatePropertyMap( map );
}
-void Visual::Base::SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue )
-{
- GetImplementation( *this ).SetProperty( index, propertyValue );
-}
-Dali::Property::Value Visual::Base::GetProperty( Dali::Property::Index index )
-{
- return GetImplementation( *this ).GetProperty( index );
-}
+
} // namespace Toolkit
} // namespace Toolkit