RelayoutRequest();
}
-void Control::SetShadow( const Property::Map& map )
-{
- Toolkit::Visual::Base visual = Toolkit::VisualFactory::Get().CreateVisual( map );
- visual.SetName("shadow");
-
- if( visual )
- {
- mImpl->RegisterVisual( Toolkit::DevelControl::Property::SHADOW, visual, DepthIndex::BACKGROUND_EFFECT );
-
- RelayoutRequest();
- }
-}
-
-void Control::ClearShadow()
-{
- mImpl->UnregisterVisual( Toolkit::DevelControl::Property::SHADOW );
-
- // Trigger a size negotiation request that may be needed when unregistering a visual.
- RelayoutRequest();
-}
-
-
void Control::EnableGestureDetection(Gesture::Type type)
{
if ( (type & Gesture::Pinch) && !mImpl->mPinchGestureDetector )
if( pinch.state == Gesture::Started )
{
- *( mImpl->mStartingPinchScale ) = Self().GetCurrentScale();
+ *( mImpl->mStartingPinchScale ) = Self().GetCurrentProperty< Vector3 >( Actor::Property::SCALE );
}
Self().SetScale( *( mImpl->mStartingPinchScale ) * pinch.scale );
Vector3 Control::GetNaturalSize()
{
- DALI_LOG_INFO( gLogFilter, Debug::Verbose, "Control::GetNaturalSize for %s\n", Self().GetName().c_str() );
+ DALI_LOG_INFO( gLogFilter, Debug::Verbose, "Control::GetNaturalSize for %s\n", Self().GetProperty< std::string >( Dali::Actor::Property::NAME ).c_str() );
Toolkit::Visual::Base visual = mImpl->GetVisual( Toolkit::Control::Property::BACKGROUND );
if( visual )
{