return DevelControl::CreateTransition( *this, handle );
}
+void ControlWrapper::EmitKeyInputFocusSignal( bool focusGained )
+{
+ Control::EmitKeyInputFocusSignal( focusGained );
+}
+
void ControlWrapper::ApplyThemeStyle()
{
Toolkit::StyleManager styleManager = StyleManager::Get();
}
}
+void ImageView::OnStageConnection( int depth )
+{
+ if( mImage )
+ {
+ mImage.UploadedSignal().Emit( mImage );
+ }
+
+ Dali::ResourceImage resourceImage = Dali::ResourceImage::DownCast( mImage );
+ if( resourceImage )
+ {
+ resourceImage.LoadingFinishedSignal().Emit( resourceImage );
+ }
+
+ Control::OnStageConnection( depth ); // Enabled visuals will be put on stage
+}
+
Vector3 ImageView::GetNaturalSize()
{
if( mVisual )
void OnInitialize();
/**
+ * @copydoc CustomActorImpl::OnStageConnection()
+ */
+ virtual void OnStageConnection( int depth );
+
+ /**
* @copydoc Toolkit::Control::GetNaturalSize
*/
virtual Vector3 GetNaturalSize();
{
case Dali::Toolkit::LinearLayout::Alignment::TOP:
{
- childTop = LayoutLength( padding.top ) + childMargin.top;
+ childTop = LayoutLength( padding.top ) + LayoutLength( childMargin.top );
break;
}
case Dali::Toolkit::LinearLayout::Alignment::BOTTOM:
{
- childTop = height - padding.bottom - childHeight - childMargin.bottom;
+ childTop = height - LayoutLength( padding.bottom ) - childHeight - LayoutLength( childMargin.bottom );
break;
}
case Dali::Toolkit::LinearLayout::Alignment::CENTER_VERTICAL: // FALLTHROUGH
}
childLeft += childMargin.start;
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childLeft += childWidth + childMargin.end + mCellPadding.width;
+ childLeft += childWidth + LayoutLength( childMargin.end ) + mCellPadding.width;
}
}
}
if( isExactly && useExcessSpace )
{
LayoutLength totalLength = mTotalLength;
- mTotalLength = std::max( totalLength, totalLength + childMargin.top + childMargin.bottom );
+ mTotalLength = std::max( totalLength, totalLength + LayoutLength( childMargin.top ) + LayoutLength( childMargin.bottom ) );
}
else
{
case Dali::Toolkit::LinearLayout::Alignment::BEGIN:
default:
{
- childLeft = LayoutLength( padding.start ) + childMargin.start;
+ childLeft = LayoutLength( padding.start ) + LayoutLength( childMargin.start );
break;
}
case Dali::Toolkit::LinearLayout::Alignment::END:
{
- childLeft = width - padding.end - childWidth - childMargin.end;
+ childLeft = width - LayoutLength( padding.end ) - childWidth - LayoutLength( childMargin.end );
break;
}
case Dali::Toolkit::LinearLayout::Alignment::CENTER_HORIZONTAL:
}
}
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childTop += childHeight + childMargin.bottom + mCellPadding.height;
+ childTop += childHeight + LayoutLength( childMargin.bottom ) + mCellPadding.height;
}
}
}
auto width = right - left;
// Space available for child
- auto childSpace = width - padding.start - padding.end;
+ auto childSpace = width - LayoutLength( padding.start ) - LayoutLength( padding.end );
auto count = GetChildCount();
for( unsigned int childIndex = 0; childIndex < count; childIndex++)
auto childMargin = childLayout->GetMargin();
childTop += childMargin.top;
- childLeft = ( childSpace - childWidth ) / 2 + childMargin.start - childMargin.end;
+ childLeft = ( childSpace - childWidth ) / 2 + LayoutLength( childMargin.start ) - LayoutLength( childMargin.end );
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childTop += childHeight + childMargin.bottom + mCellPadding.height;
+ childTop += childHeight + LayoutLength( childMargin.bottom ) + mCellPadding.height;
}
}
}
// Reset to the original shader and texture before scrolling
mRenderer.SetShader(mShader);
- mRenderer.SetTextures( mTextureSet );
+
+ if( mTextureSet )
+ {
+ mRenderer.SetTextures( mTextureSet );
+ }
}
mShader = mRenderer.GetShader();
void main()\n
{\n
- mediump vec4 nonAlignedVertex = uViewMatrix*uModelMatrix*ComputeVertexPosition();\n
- mediump vec4 pixelAlignedVertex = vec4 ( floor(nonAlignedVertex.xyz), 1.0 );\n
- mediump vec4 vertexPosition = uProjection*pixelAlignedVertex;\n
+ mediump vec4 vertexPosition = uProjection*uViewMatrix*uModelMatrix*ComputeVertexPosition();\n
vTexCoord = pixelArea.xy+pixelArea.zw*(aPosition + vec2(0.5) );\n
gl_Position = vertexPosition;\n
}
TextureManager::LoadState loadState = GetTextureStateInternal( textureId );
- loadingStatus = ( loadState == TextureManager::LOADING );
+ switch (loadState)
+ {
+ case TextureManager::NOT_STARTED :
+ case TextureManager::LOADING :
+ case TextureManager::LOAD_FAILED :
+ {
+ loadingStatus = true;
+ break;
+ }
+ default :
+ {
+ loadingStatus = false;
+ break;
+ }
+ }
if( loadState == TextureManager::UPLOADED )
{