/// <summary>
/// Enumeration for the display rotation of window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Flags]
public enum DisplayRotation
{
/// <summary>
/// Enumeration for the indicator opacity
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum StatusBarMode
{
/// <summary>
/// <summary>
/// Enumeration for the keygrab modes of window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public enum KeyGrabMode
{
/// <summary>
/// Enumeration for the indicator mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum IndicatorMode
{
/// <summary>
/// <summary>
/// Enumeration for the keyboard mode
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum KeyboardMode
{
/// <summary>
/// <summary>
/// Enumeration for the window type
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum WindowType
{
/// <summary>
/// <summary>
/// The Window is container that contain the graphical user interface of a program.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Window : Widget
{
SmartEvent _deleteRequest;
/// Creates and initializes a new instance of the Window class.
/// </summary>
/// <param name="name">Window name.</param>
+ /// <since_tizen> preview </since_tizen>
public Window(string name) : this(null, name)
{
}
/// When closing the window in any way outside the program control,
/// and set callback when window rotation changed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public Window(Window parent, string name) : this(parent, name, WindowType.Basic)
{
}
/// When closing the window in any way outside the program control,
/// and set callback when window rotation changed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public Window(Window parent, string name, WindowType type)
{
Name = name;
/// <summary>
/// Creates and initializes a new instance of the Window class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected Window()
{
}
/// <summary>
/// CloseRequested will be triggered when Window close.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler CloseRequested;
/// <summary>
/// RotationChanged will be triggered when Window do rotation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler RotationChanged;
/// <summary>
/// Sets or gets Window name.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Name { get; set; }
/// <summary>
/// Gets the Window type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WindowType Type { get; } = WindowType.Basic;
/// <summary>
/// Gets Window size with Size value(w,h)
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size ScreenSize
{
get
/// <summary>
/// Gets the screen dpi for the screen that a Window is on.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Point ScreenDpi
{
get
/// <summary>
/// Gets the rotation of the Window.The rotation of the window in degrees (0-360).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Rotation
{
get
/// <summary>
/// Gets whether window manager supports window rotation or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsRotationSupported
{
get
/// <summary>
/// Sets or gets available rotation degree.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Sorry, it's error typo of AvailableRotations, please use AvailableRotations")]
public DisplayRotation AavailableRotations { get; set; }
/// <summary>
/// Sets or gets available rotation degree.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DisplayRotation AvailableRotations
{
get
/// If you enable auto deletion, the window is automatically destroyed after the signal is emitted.
/// If auto deletion is disabled, the window is not destroyed and the program has to handle it.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool AutoDeletion
{
get
/// True if the window alpha channel is enabled, false otherwise.
/// If alpha is true, the alpha channel of the canvas will be enabled possibly making parts of the window completely or partially transparent.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool Alpha
{
get
/// <remarks>
/// The Role will be invalid if a new role is set or if the window is destroyed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public string Role
{
get
/// <summary>
/// Sets or gets the mode of status bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public StatusBarMode StatusBarMode
{
get
/// <summary>
/// Sets or gets the iconified state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Iconified
{
/// Gets or sets the window's indicator mode.
/// </summary>
/// <value>The indicator mode.</value>
+ /// <since_tizen> preview </since_tizen>
public IndicatorMode IndicatorMode
{
get
/// <summary>
/// Gets or sets the aspect ratio of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Aspect
{
get
/// <summary>
/// Window's autohide state.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AutoHide
{
get
/// Get the borderless state of a window.
/// This function requests the Window Manager to not draw any decoration around the window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Borderless
{
get
/// <summary>
/// Gets or sets the demand attention state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool DemandAttention
{
get
/// <summary>
/// Gets or sets the floating mode of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FloatingMode
{
get
/// Gets or sets the animate status for the focus highlight for this window.
/// This function will enable or disable the animation of focus highlight only for the given window, regardless of the global setting for it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FocusHighlightAnimation
{
get
/// Gets or sets the enabled status for the focus highlight in a window.
/// This function will enable or disable the focus highlight only for the given window, regardless of the global setting for it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FocusHighlightEnabled
{
get
/// Gets or sets the style for the focus highlight on this window.
/// Sets the style to use for theming the highlight of focused objects on the given window.If style is NULL, the default will be used.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string FocusHighlightStyle
{
get
/// <summary>
/// Get the keyboard mode of the window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public KeyboardMode KeyboardMode
{
get
/// more than 5 means that the window will be placed above all others,
/// and anything else means that the window will be placed in the default layer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override int Layer
{
get
/// <summary>
/// Gets or sets the modal state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Modal
{
get
/// This is a way to request the display on which the windowis shown does not blank, screensave or otherwise hide or obscure the window.It is intended for uses such as media playback on a television where a user may not want to be interrupted by an idle screen.
/// The noblank property may have no effect if the window is iconified/minimized or hidden.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool NoBlank
{
get
/// <summary>
/// Get the profile of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Profile
{
get
/// Get the constraints on the maximum width and height of a window relative to the width and height of its screen.
/// When this function returns true, obj will never resize larger than the screen.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ScreenConstrain
{
get
/// <summary>
/// Gets or sets the base size of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size BaseSize
{
get
/// <summary>
/// Gets or sets the step size of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size StepSize
{
get
/// <summary>
/// Get the screen position X of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ScreenPositionX
{
get
/// <summary>
/// Get the screen position Y of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ScreenPositionY
{
get
/// <summary>
/// Gets or sets the title of the window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Title
{
get
/// <summary>
/// Gets or sets the urgent state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Urgent
{
get
/// <summary>
/// Gets or sets the withdrawn state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Withdrawn
{
get
/// <param name="number">A number (any value, 0 being the common default) to differentiate multiple instances of services with the same name.</param>
/// <param name="systemWide">A boolean that if true, specifies to create a system-wide service all users can connect to, otherwise the service is private to the user id that created the service.</param>
/// <returns>If true, create successfull, otherwise false</returns>
+ /// <since_tizen> preview </since_tizen>
public bool CreateServiceSocket(string name, int number, bool systemWide)
{
return Interop.Elementary.elm_win_socket_listen(RealHandle, name, number, systemWide);
/// </summary>
/// <param name="degree">The rotation of the window, in degrees (0-360), counter-clockwise.</param>
/// <param name="resize">Resizes the window's contents so that they fit inside the current window geometry.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetRotation(int degree, bool resize)
{
if (resize)
/// Use this for windows that have only output information or might only be interacted with by the mouse or fingers, and never for typing input.
/// Be careful that this may have side-effects like making the window non-accessible in some cases unless the window is specially handled. Use this with care.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void FocusSkip(bool skip)
{
Interop.Elementary.elm_win_prop_focus_skip_set(Handle, skip);
/// Pull up the window object.
/// Places the window pointed by obj at the top of the stack, so that it's not covered by any other window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PullUp()
{
Interop.Elementary.elm_win_raise(Handle);
/// Bring down the window object.
/// Places the window pointed by obj at the bottom of the stack, so that no other window is covered by it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void BringDown()
{
Interop.Elementary.elm_win_lower(Handle);
/// This is just a request that a Window Manager may ignore, so calling this function does not ensure
/// in any way that the window is going to be the active one after it.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void Active()
{
Interop.Elementary.elm_win_activate(Handle);
/// It will not delete the object itself, which will be left unmanaged and should be deleted by the developer, manually handled or set as child of some other container.
/// </summary>
/// <param name="obj">Resize object.</param>
+ /// <since_tizen> preview </since_tizen>
public void DeleteResizeObject(EvasObject obj)
{
Interop.Elementary.elm_win_resize_object_del(Handle, obj);
/// <param name="obj">
/// Resize object.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public void AddResizeObject(EvasObject obj)
{
Interop.Elementary.elm_win_resize_object_add(Handle, obj);
/// </summary>
/// <param name="keyname">The keyname to grab.</param>
/// <param name="mode">According to the grabmode, it can grab key differently</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public void WinKeyGrab(string keyname, KeyGrabMode mode)
{
/// This function unset keygrab value.Ungrab key of window.
/// </summary>
/// <param name="keyname">The keyname to grab.</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public void WinKeyUngrab(string keyname)
{
/// Set the keygrab of the window.
/// </summary>
/// <param name="keyname">keyname string to set keygrab</param>
+ /// <since_tizen> preview </since_tizen>
public void KeyGrabEx(string keyname)
{
Interop.Elementary.eext_win_keygrab_set(RealHandle, keyname);
/// Unset the keygrab of the window.
/// </summary>
/// <param name="keyname">keyname string to unset keygrab</param>
+ /// <since_tizen> preview </since_tizen>
public void KeyUngrabEx(string keyname)
{
Interop.Elementary.eext_win_keygrab_unset(RealHandle, keyname);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
Interop.Elementary.elm_config_accel_preference_set("3d");