{
ClearLastResult();
+ const bool moved = (__clientBounds.x != _CoordinateSystemUtils::ConvertToFloat(bounds).x) || (__clientBounds.y != _CoordinateSystemUtils::ConvertToFloat(bounds).y);
+ const bool resized = (__clientBounds.width != _CoordinateSystemUtils::ConvertToFloat(bounds).width) || (__clientBounds.height != _CoordinateSystemUtils::ConvertToFloat(bounds).height);
+
SysTryReturn(NID_UI,
IsMovable() && IsResizable(), E_UNSUPPORTED_OPERATION,
E_UNSUPPORTED_OPERATION, "[E_UNSUPPORTED_OPERATION] Not movable nor resizable.");
__clientBounds = _CoordinateSystemUtils::ConvertToFloat(bounds);
__isSetClientBounds = true;
- const bool moved = (__clientBounds.x != _CoordinateSystemUtils::ConvertToFloat(bounds).x) || (__clientBounds.y != _CoordinateSystemUtils::ConvertToFloat(bounds).y);
- const bool resized = (__clientBounds.width != _CoordinateSystemUtils::ConvertToFloat(bounds).width) || (__clientBounds.height != _CoordinateSystemUtils::ConvertToFloat(bounds).height);
-
if (moved || resized)
{
result r = AdjustAbsoluteBounds();
{
ClearLastResult();
+ const bool moved = (__clientBounds.x != bounds.x) || (__clientBounds.y != bounds.y);
+ const bool resized = (__clientBounds.width != bounds.width) || (__clientBounds.height != bounds.height);
+
SysTryReturn(NID_UI,
IsMovable() && IsResizable(), E_UNSUPPORTED_OPERATION,
E_UNSUPPORTED_OPERATION, "[E_UNSUPPORTED_OPERATION] Not movable nor resizable.");
__clientBounds = bounds;
__isSetClientBounds = true;
- const bool moved = (__clientBounds.x != bounds.x) || (__clientBounds.y != bounds.y);
- const bool resized = (__clientBounds.width != bounds.width) || (__clientBounds.height != bounds.height);
-
if (moved || resized)
{
result r = AdjustAbsoluteBounds();