/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
}
else
{
- // Unregister the exsiting visual
+ // Unregister the existing visual
DevelControl::UnregisterVisual( *this, Toolkit::ImageView::Property::IMAGE );
// Trigger a size negotiation request that may be needed when unregistering a visual.
RelayoutRequest();
}
- Toolkit::DevelControl::RequestLayout( *this );
+ // Signal that a Relayout may be needed
}
void ImageView::SetImage( const Property::Map& map )
RelayoutRequest();
}
- Toolkit::DevelControl::RequestLayout( *this );
+ // Signal that a Relayout may be needed
}
void ImageView::SetImage( const std::string& url, ImageDimensions size )
RelayoutRequest();
}
- Toolkit::DevelControl::RequestLayout( *this );
+ // Signal that a Relayout may be needed
}
Image ImageView::GetImage() const
{
// Visual ready so update visual attached to this ImageView, following call to RelayoutRequest will use this visual.
mVisual = DevelControl::GetVisual( *this, Toolkit::ImageView::Property::IMAGE );
- Toolkit::DevelControl::RequestLayout( *this );
+ // Signal that a Relayout may be needed
}
///////////////////////////////////////////////////////////
Scripting::CreatePropertyMap( impl.mImage, map );
value = map;
}
- else if( !impl.mPropertyMap.Empty() )
+ else
{
- value = impl.mPropertyMap;
+ Property::Map map;
+ Toolkit::Visual::Base visual = DevelControl::GetVisual( impl, Toolkit::ImageView::Property::IMAGE );
+ if( visual )
+ {
+ visual.CreatePropertyMap( map );
+ }
+ value = map;
}
break;
}