}
/// <summary>
- /// The constructor with a stylesheet, window mode, window size, position and default window type.
+ /// The constructor with a stylesheet, window mode and default window type.
+ /// Especially, It is for IME window.
/// </summary>
/// <param name="styleSheet">The styleSheet URL.</param>
/// <param name="windowMode">The windowMode.</param>
- /// <param name="windowSize">The window size.</param>
- /// <param name="windowPosition">The window position.</param>
/// <param name="type">The default window type.</param>
/// <since_tizen> 9 </since_tizen>
- /// This should be hidden. Because the major purpose is to support IME window as keyboard application.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public NUIApplication(string styleSheet, WindowMode windowMode, Size2D windowSize, Position2D windowPosition, WindowType type) : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition, type))
+ public NUIApplication(string styleSheet, WindowMode windowMode, WindowType type) : base(new NUICoreBackend(styleSheet, windowMode, type))
{
ExternalThemeManager.Initialize();
}
/// <summary>
/// Used for IME window that is used for keyboard window.
/// It should be set in Application's New input param when application is created.
- /// In addition, it is only for internal keyboard application.
- /// This should be hidden.
+ /// Because IME window type can not change in runtime.
+ /// So, It does not work with Window.Type.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
Ime
}
/// <summary>
/// Gets or sets a window type.
+ /// Most of window type can be set to use WindowType, except for IME type.
+ /// IME type can be set to use one of NUIApplication's constrcutors.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public WindowType Type
}
/// <summary>
- /// Sets window position and size for specific orientation.
- /// This api reserves the position and size per orientation to display server.
- /// When the device is rotated, the window is moved/resized with the reserved position/size by display server.
- /// Currently, it only works when the window's type is WindowType::Ime.
- /// It means this function is only for IME window of internal keyboard application.
- /// It is only for internal keyboard application.
- /// This should be hidden.
- /// </summary>
- /// <param name="positionSize">The reserved position and size for the orientation.</param>
- /// <param name="orientation">The orientation.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetPositionSizeWithOrientation(Rectangle positionSize, Window.WindowOrientation orientation)
- {
- Interop.Window.SetPositionSizeWithOrientation(SwigCPtr, Rectangle.getCPtr(positionSize), (int)orientation);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
/// Get native window ID
/// </summary>
/// <returns>native window ID</returns>
{
tlog.Debug(tag, $"NUIApplicationConstructorForImeWindow START");
- Size2D windowSize = new Size2D(100, 50);
- Position2D windowPosition = new Position2D(20, 30);
- var testingTarget = new NUIApplication("", NUIApplication.WindowMode.Opaque, windowSize, windowPosition, WindowType.Dialog);
- Assert.IsNotNull(testingTarget, "Should be not null.");
+ var application = new NUIApplication("stylesheet", NUIApplication.WindowMode.Opaque, WindowType.Ime);
+ Assert.IsNotNull(application, "NUIApplication Should return NUIApplication instance.");
Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
windowSize.Dispose();