return SWIG_csharp_string_callback( (const char *)url.c_str() );
}
+SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Actor_GetSuggestedMinimumWidth(void * jarg1) {
+ Dali::Actor *arg1 = (Dali::Actor *) 0;
+ Dali::Vector2 maximumSize;
+ Dali::Vector2 minimumSize;
+ Dali::Vector3 naturalSize;
+ float result;
+ {
+ try {
+ arg1 = (Dali::Actor *)jarg1;
+ maximumSize = arg1->GetProperty< Vector2 >( Actor::Property::MAXIMUM_SIZE );
+ minimumSize = arg1->GetProperty< Vector2 >( Actor::Property::MINIMUM_SIZE );
+ naturalSize = arg1->GetNaturalSize();
+
+ float baseHeight = maximumSize.height > 0 ? std::min(maximumSize.height, naturalSize.height) : naturalSize.height;
+ float baseWidth = arg1->GetWidthForHeight(baseHeight);
+
+ result = minimumSize.width > 0 ? std::max(baseWidth, minimumSize.width) : baseWidth;
+ result = maximumSize.width > 0 ? std::min(result, maximumSize.width) : result;
+ } CALL_CATCH_EXCEPTION(0);
+ }
+
+ return result;
+}
+
+SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Actor_GetSuggestedMinimumHeight(void * jarg1) {
+ Dali::Actor *arg1 = (Dali::Actor *) 0;
+ Dali::Vector2 maximumSize;
+ Dali::Vector2 minimumSize;
+ Dali::Vector3 naturalSize;
+ float result;
+ {
+ try {
+ arg1 = (Dali::Actor *)jarg1;
+ maximumSize = arg1->GetProperty< Vector2 >( Actor::Property::MAXIMUM_SIZE );
+ minimumSize = arg1->GetProperty< Vector2 >( Actor::Property::MINIMUM_SIZE );
+ naturalSize = arg1->GetNaturalSize();
+
+ float baseWidth = maximumSize.width > 0 ? std::min(maximumSize.width, naturalSize.width) : naturalSize.width;
+ float baseHeight = arg1->GetHeightForWidth(baseWidth);
+
+ result = minimumSize.height > 0 ? std::max(baseHeight, minimumSize.height) : baseHeight;
+ result = maximumSize.height > 0 ? std::min(result, maximumSize.height) : result;
+ } CALL_CATCH_EXCEPTION(0);
+ }
+
+ return result;
+}
#ifdef __cplusplus
}