{
mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURED_DIMENSION_SET );
- //resolveRtlPropertiesIfNeeded();
-
- int cacheIndex = -1; // = forceLayout ? -1 : mMeasureCache.indexOfKey(key);
- if( cacheIndex < 0 ) //|| sIgnoreMeasureCache )
- {
- // measure ourselves, this should set the measured dimension flag back
- OnMeasure( widthMeasureSpec, heightMeasureSpec );
- mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT );
- }
- else
- {
- mImpl->SetPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT );
- }
+ // measure ourselves, this should set the measured dimension flag back
+ OnMeasure( widthMeasureSpec, heightMeasureSpec );
+ mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT );
// flag not set, setMeasuredDimension() was not invoked, we raise an exception to warn the developer
DALI_ASSERT_ALWAYS( mImpl->GetPrivateFlag( Impl::PRIVATE_FLAG_MEASURED_DIMENSION_SET ) &&
mImpl->mOldWidthMeasureSpec = widthMeasureSpec;
mImpl->mOldHeightMeasureSpec = heightMeasureSpec;
-
- //mMeasureCache.put(key, ((long) mMeasuredWidth) << 32 | (long) mMeasuredHeight & 0xffffffffL); // suppress sign extension
}
void LayoutItem::Layout( LayoutLength l, LayoutLength t, LayoutLength r, LayoutLength b )
LayoutLength& operator=(const LayoutLength& rhs)
{
- mValue = rhs.mValue;
+ if( this != &rhs )
+ {
+ mValue = rhs.mValue;
+ }
return *this;
}
MeasureSpec& operator=( const MeasureSpec& rhs )
{
- this->mSize = rhs.mSize;
- this->mMode = rhs.mMode;
+ if( this != &rhs )
+ {
+ this->mSize = rhs.mSize;
+ this->mMode = rhs.mMode;
+ }
return *this;
}
};
MeasuredSize()
- : mMeasuredSize( 0u )
+ : mMeasuredSize( 0u ),
+ mState ( MeasuredSize::State::MEASURED_SIZE_OK )
{
}
MeasuredSize& operator=( const MeasuredSize& rhs )
{
- this->mMeasuredSize = rhs.mMeasuredSize;
- this->mState = rhs.mState;
+ if( this != &rhs )
+ {
+ this->mMeasuredSize = rhs.mMeasuredSize;
+ this->mState = rhs.mState;
+ }
return *this;
}
mPanGestureDetector(),
mTapGestureDetector(),
mLongPressGestureDetector(),
+ mTooltip( NULL ),
+ mInputMethodContext(),
mFlags( Control::ControlBehaviour( CONTROL_BEHAVIOUR_DEFAULT ) ),
mIsKeyboardNavigationSupported( false ),
mIsKeyboardFocusGroup( false )
// scale to fit the padded area
auto finalSize =
- naturalSize * std::min((paddedSize.width / naturalSize.width), (paddedSize.height / naturalSize.height));
+ naturalSize * std::min( ( naturalSize.width ? ( paddedSize.width / naturalSize.width ) : 0 ),
+ ( naturalSize.height ? ( paddedSize.height / naturalSize.height ) : 0 ) );
// calculate final offset within the padded area
auto finalOffset = Vector2(padding.start, padding.top) + (paddedSize - finalSize) * .5f;
const unsigned int TOOLKIT_MAJOR_VERSION = 1;
const unsigned int TOOLKIT_MINOR_VERSION = 3;
-const unsigned int TOOLKIT_MICRO_VERSION = 25;
+const unsigned int TOOLKIT_MICRO_VERSION = 26;
const char * const TOOLKIT_BUILD_DATE = __DATE__ " " __TIME__;
#ifdef DEBUG_ENABLED
didUseLegacyFlag(false),
doesLegacyStretchFlagAffectsLayout(false) {}
-bool YGLayout::operator==(YGLayout layout) const {
+bool YGLayout::operator==(const YGLayout& layout) const {
bool isEqual = YGFloatArrayEqual(position, layout.position) &&
YGFloatArrayEqual(dimensions, layout.dimensions) &&
YGFloatArrayEqual(margin, layout.margin) &&
return isEqual;
}
-bool YGLayout::operator!=(YGLayout layout) const {
+bool YGLayout::operator!=(const YGLayout& layout) const {
return !(*this == layout);
}
YGLayout();
- bool operator==(YGLayout layout) const;
- bool operator!=(YGLayout layout) const;
+ bool operator==(const YGLayout& layout) const;
+ bool operator!=(const YGLayout& layout) const;
};
YGMeasureFunc measure,
YGBaselineFunc baseline,
YGDirtiedFunc dirtied,
- YGStyle style,
+ const YGStyle& style,
const YGLayout& layout,
uint32_t lineIndex,
YGNodeRef owner,
YGMeasureFunc measure,
YGBaselineFunc baseline,
YGDirtiedFunc dirtied,
- YGStyle style,
+ const YGStyle& style,
const YGLayout& layout,
uint32_t lineIndex,
YGNodeRef owner,
return areNonFloatValuesEqual;
}
-bool YGStyle::operator!=(YGStyle style) {
+bool YGStyle::operator!=(const YGStyle& style) {
return !(*this == style);
}
// Yoga specific properties, not compatible with flexbox specification
bool operator==(const YGStyle& style);
- bool operator!=(YGStyle style);
+ bool operator!=(const YGStyle& style);
~YGStyle();
};
computedWidth(-1),
computedHeight(-1) {}
- bool operator==(YGCachedMeasurement measurement) const {
+ bool operator==(const YGCachedMeasurement& measurement) const {
bool isEqual = widthMeasureMode == measurement.widthMeasureMode &&
heightMeasureMode == measurement.heightMeasureMode;
Name: dali-toolkit
Summary: Dali 3D engine Toolkit
-Version: 1.3.25
+Version: 1.3.26
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT