SetMimimumSize(mimimumSize);
minSize = borderInterface.MinSize;
}
-
+
if (maxSize != borderInterface.MaxSize || (borderInterface.MaxSize != null && isNeedResizeByLine == true))
{
using Size2D maximumSize = new Size2D((borderInterface.MaxSize?.Width + (int)borderLineThickness * 2 ?? 0), (borderInterface.MaxSize?.Height ?? 0) + (int)(borderHeight + borderLineThickness * 2));
SetMaximumSize(maximumSize);
maxSize = borderInterface.MaxSize;
}
-
+
if (borderResizePolicy != borderInterface.ResizePolicy)
{
AddAuxiliaryHint("wm.policy.win.resize_aspect_ratio", "0");
AddAuxiliaryHint("wm.policy.win.resize_aspect_ratio", "1");
}
}
-
+
}
}
/// <summary>
Moved += OnBorderWindowMoved;
+ MoveCompleted += OnBorderWindowMoveCompleted;
+
+ ResizeCompleted += OnBorderWindowResizeCompleted;
+
borderInterface.OnCreated(borderView);
// Increase the window size as much as the border area.
private void OnBorderWindowMoved(object sender, WindowMovedEventArgs e)
{
Tizen.Log.Info("NUI", $"OnBorderWindowMoved {e.WindowPosition.X}, {e.WindowPosition.Y}\n");
- borderInterface.OnMoved(e.WindowPosition.X, e.WindowPosition.X);
+ borderInterface.OnMoved(e.WindowPosition.X, e.WindowPosition.Y);
+ }
+
+ private void OnBorderWindowMoveCompleted(object sender, WindowMoveCompletedEventArgs e)
+ {
+ Tizen.Log.Info("NUI", $"OnBorderWindowMoveCompleted {e.WindowCompletedPosition.X}, {e.WindowCompletedPosition.Y}\n");
+ borderInterface.OnMoveCompleted(e.WindowCompletedPosition.X, e.WindowCompletedPosition.Y);
+ }
+
+ private void OnBorderWindowResizeCompleted(object sender, WindowResizeCompletedEventArgs e)
+ {
+ Tizen.Log.Info("NUI", $"OnBorderWindowResizeCompleted {e.WindowCompletedSize.Width}, {e.WindowCompletedSize.Height}\n");
+ borderInterface.OnResizeCompleted(e.WindowCompletedSize.Width, e.WindowCompletedSize.Height);
}
var instance = (DefaultBorder)bindable;
return instance.resizePolicy;
});
-
+
/// <summary>
/// The thickness of the border.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public uint BorderLineThickness
+ public uint BorderLineThickness
{
get
{
public virtual void OnMoved(int x, int y) {}
/// <summary>
+ /// Called when window has been moved the display server.
+ /// </summary>
+ /// <param name="x">The x of the has been moved window</param>
+ /// <param name="y">The y of the has been moved window</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual void OnMoveCompleted(int x, int y) {}
+
+ /// <summary>
+ /// Called when window has been resized the display server.
+ /// </summary>
+ /// <param name="width">The width of the resized window</param>
+ /// <param name="height">The height of the resized window</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public virtual void OnResizeCompleted(int width, int height) {}
+
+ /// <summary>
/// Called when the window is maximized.
/// </summary>
/// <param name="isMaximized">If window is maximized or unmaximized.</param>
public void OnMoved(int x, int y);
/// <summary>
+ /// Called when window has been moved the display server.
+ /// </summary>
+ /// <param name="x">The x of the has been moved window</param>
+ /// <param name="y">The y of the has been moved window</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void OnMoveCompleted(int x, int y);
+
+ /// <summary>
+ /// Called when window has been resized the display server.
+ /// </summary>
+ /// <param name="width">The width of the resized window</param>
+ /// <param name="height">The height of the resized window</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void OnResizeCompleted(int width, int height);
+
+ /// <summary>
/// Called when the window is maximized.
/// </summary>
/// <param name="isMaximized">If window is maximized or unmaximized.</param>