Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The Window is a container that contains the graphical user interface of a program.
public class Window : Widget, IAccessibleObject
- Inheritance
-
- Derived
-
ElmSharp.PreloadedWindow
- Implements
-
Constructors
View Source
Window()
Creates and initializes a new instance of the Window class.
Declaration
API Level: preview
View Source
Window(Window, String)
Creates and initializes a new instance of the Window class.
Declaration
public Window(Window parent, string name)
Parameters
Type |
Name |
Description |
Window |
parent |
Parent widget which this window is created on.
|
System.String |
name |
Window name.
|
API Level: preview
View Source
Window(Window, String, WindowType)
Creates and initializes a new instance of the Window class.
Declaration
public Window(Window parent, string name, WindowType type)
Parameters
Type |
Name |
Description |
Window |
parent |
Parent widget which this window is created on.
|
System.String |
name |
Window name.
|
WindowType |
type |
Window type.
|
API Level: preview
View Source
Window(String)
Creates and initializes a new instance of the Window class.
Declaration
public Window(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Window name.
|
API Level: preview
Properties
View Source
AavailableRotations
Sets or gets the available rotation degree.
Declaration
[Obsolete("Sorry, it's error typo of AvailableRotations, please use AvailableRotations")]
public DisplayRotation AavailableRotations { get; set; }
Property Value
API Level: preview
View Source
Alpha
Sets or gets the alpha channel state of the window.
Declaration
public bool Alpha { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
Aspect
Gets or sets the aspect ratio of the window.
Declaration
public double Aspect { get; set; }
Property Value
Type |
Description |
System.Double |
|
API Level: preview
View Source
AutoDeletion
Sets or gets whether the auto deletion function is enabled.
Declaration
public bool AutoDeletion { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
Declaration
public bool AutoHide { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
AvailableRotations
Sets or gets the available rotation degree.
Declaration
public DisplayRotation AvailableRotations { get; set; }
Property Value
API Level: preview
View Source
BaseSize
Gets or sets the base size of the window.
Declaration
public Size BaseSize { get; set; }
Property Value
API Level: preview
View Source
Borderless
Gets the borderless state of the window.
This function requests the Window Manager to not draw any decoration around the window.
Declaration
public bool Borderless { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
Brightness
Gets or sets the user's preferred brightness of the specified window.
This is useful when the application need to change the brightness of the screen when it is appeared on the screen.
If the application sets the brightness 0 to 100 to its window and the application window is shown wholly or partially,
the window manager requests the display system to change the brightness of the screen using user's preferred brightness.
If the window is no longer shown, then the window manger request the display system to go back to default brightness.
If the brightness is less than 0, this means to use the default screen brightness.
Declaration
public int Brightness { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: preview
Privilege Level: public
Privilege: http://tizen.org/privilege/display
View Source
DemandAttention
Gets or sets the demand attention state of the window.
Declaration
public bool DemandAttention { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
FloatingMode
Gets or sets the floating mode of the window.
Declaration
public bool FloatingMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
FocusHighlightAnimation
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.
Declaration
public bool FocusHighlightAnimation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
FocusHighlightEnabled
Gets or sets the enabled status for the focus highlight in the window.
This function will enable or disable the focus highlight only for the given window, regardless of the global setting for it.
Declaration
public bool FocusHighlightEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
FocusHighlightStyle
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.
Declaration
public string FocusHighlightStyle { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: preview
View Source
IndicatorMode
Gets or sets the window's indicator mode.
Declaration
public IndicatorMode IndicatorMode { get; set; }
Property Value
API Level: preview
View Source
IsRotationSupported
Gets whether the window manager supports window rotation or not.
Declaration
public bool IsRotationSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
KeyboardMode
Gets the keyboard mode of the window.
Declaration
public KeyboardMode KeyboardMode { get; set; }
Property Value
API Level: preview
View Source
Layer
Gets or sets the layer of the window.
What this means exactly will depend on the underlying engine used.
In the case of X11 backed engines, the value in layer has the following meanings:
less than 3 means that the window will be placed below all others,
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.
Declaration
public override int Layer { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
API Level: preview
View Source
Modal
Gets or sets the modal state of the window.
Declaration
public bool Modal { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: preview
View Source
NoBlank
Gets or sets the noblank property of the window.
This is a way to request the display on which the window is shown is not blank, screensave, or otherwise hidden or obscure. It is intended for use 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.
Declaration
public bool NoBlank { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
NotificationLevel
Gets or sets the priority level for the specified notification window.
Declaration
public NotificationLevel NotificationLevel { get; set; }
Property Value
API Level: preview
Privilege Level: public
Privilege: http://tizen.org/privilege/window.priority.set
Declaration
public string Profile { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: preview
Declaration
public string Role { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: preview
View Source
Rotation
Gets the rotation of the window. The rotation of the window in degrees (0-360).
Declaration
public int Rotation { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: preview
View Source
ScreenConstrain
Gets the constraints on the maximum width and height of the window relative to the width and height of its screen.
When this function returns true, object will never resize larger than the screen.
Declaration
public bool ScreenConstrain { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
ScreenDpi
Gets the screen dpi for the screen that the window is on.
Declaration
public Point ScreenDpi { get; }
Property Value
API Level: preview
View Source
ScreenMode
Gets or sets the window's screen mode.
This API is useful when the application need to keep the display turned on.
If the application set the mode to ScreenMode.AlwaysOn to its window and the window is shown wholly or partially,
the window manager requests the display system to keep the display on as long as the window is shown.
If the window is no longer shown, then the window manger request the display system to go back to normal operation.
Default screen mode of window is ScreenMode.Default.
Declaration
public ScreenMode ScreenMode { get; set; }
Property Value
API Level: preview
Privilege Level: public
Privilege: http://tizen.org/privilege/display
View Source
ScreenPositionX
Gets the screen position X of a window.
Declaration
public int ScreenPositionX { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: preview
View Source
ScreenPositionY
Gets the screen position Y of a window.
Declaration
public int ScreenPositionY { get; }
Property Value
Type |
Description |
System.Int32 |
|
API Level: preview
View Source
ScreenSize
Gets the window size with Size value(w,h)
Declaration
public Size ScreenSize { get; }
Property Value
API Level: preview
View Source
StatusBarMode
Sets or gets the mode of the status bar.
Declaration
public StatusBarMode StatusBarMode { get; set; }
Property Value
API Level: preview
View Source
StepSize
Gets or sets the step size of the window.
Declaration
public Size StepSize { get; set; }
Property Value
API Level: preview
View Source
Title
Gets or sets the title of the window.
Declaration
public string Title { get; set; }
Property Value
Type |
Description |
System.String |
|
API Level: preview
Declaration
public WindowType Type { get; }
Property Value
API Level: preview
View Source
Urgent
Gets or sets the urgent state of the window.
Declaration
public bool Urgent { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
Withdrawn
Gets or sets the withdrawn state of the window.
Declaration
public bool Withdrawn { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
Methods
View Source
Active()
This function sends a request to the Windows Manager to activate the window.
If honored by the Windows Manager, the window receives the keyboard focus.
Declaration
API Level: preview
View Source
AddResizeObject(EvasObject)
Adds an object as a resize object of the window.
Declaration
public void AddResizeObject(EvasObject obj)
Parameters
Type |
Name |
Description |
EvasObject |
obj |
Resize object.
|
API Level: preview
View Source
BringDown()
Brings down the window object.
Places the window pointed by object at the bottom of the stack, so that no other window is covered by it.
Declaration
API Level: preview
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
Parent EvasObject.
|
Returns
Type |
Description |
System.IntPtr |
Handle IntPtr.
|
Overrides
API Level: preview
View Source
CreateServiceSocket(String, Int32, Boolean)
Creates a socket to provide the service for the Plug widget.
Declaration
public bool CreateServiceSocket(string name, int number, bool systemWide)
Parameters
Type |
Name |
Description |
System.String |
name |
A service name.
|
System.Int32 |
number |
A number (any value, 0 being the common default) to differentiate multiple instances of services with the same name.
|
System.Boolean |
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.
|
Returns
Type |
Description |
System.Boolean |
If true creates successful, otherwise false.
|
API Level: preview
View Source
DeleteResizeObject(EvasObject)
Deletes the subobj as a resize object of the window object.
This function removes the object subobj from the resize objects of the window object.
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.
Declaration
public void DeleteResizeObject(EvasObject obj)
Parameters
Type |
Name |
Description |
EvasObject |
obj |
Resize object.
|
API Level: preview
View Source
FocusSkip(Boolean)
Sets the window to be skipped by focus.
This sets the window to be skipped by normal input.
This means the Windows Manager will be asked to not focus this window as well as omit it from things like the taskbar, pager etc.
Call this and enable it on the window BEFORE you show it for the first time, otherwise it may have no effect.
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.
Declaration
public void FocusSkip(bool skip)
Parameters
Type |
Name |
Description |
System.Boolean |
skip |
|
API Level: preview
View Source
KeyGrabEx(String)
Sets the keygrab of the window.
Declaration
public void KeyGrabEx(string keyname)
Parameters
Type |
Name |
Description |
System.String |
keyname |
The keyname string to set keygrab.
|
API Level: preview
View Source
KeyUngrabEx(String)
Unsets the keygrab of the window.
Declaration
public void KeyUngrabEx(string keyname)
Parameters
Type |
Name |
Description |
System.String |
keyname |
The keyname string to unset keygrab.
|
API Level: preview
View Source
PullUp()
Pulls up the window object.
Places the window pointed by object at the top of the stack, so that it's not covered by any other window.
Declaration
API Level: preview
View Source
SetOpaqueState()
Sets the alpha window's visual state to opaque state.
This sets the alpha window's visual state to opaque state.
If the alpha window sets the visual state to the opaque,
then the window manager could handle it as the opaque window while calculating visibility.
This will have no effect when used by a non-alpha window.
Declaration
public void SetOpaqueState()
API Level: preview
View Source
SetRotation(Int32, Boolean)
Sets the rotation of the window.
Declaration
public void SetRotation(int degree, bool resize)
Parameters
Type |
Name |
Description |
System.Int32 |
degree |
The rotation of the window, in degrees (0-360), counter-clockwise.
|
System.Boolean |
resize |
Resizes the window's contents so that they fit inside the current window geometry.
|
API Level: preview
View Source
UnsetOpaqueState()
Unsets the alpha window's visual state to opaque state.
Declaration
public void UnsetOpaqueState()
API Level: preview
Events
View Source
CloseRequested
CloseRequested will be triggered when window is closed.
Declaration
public event EventHandler CloseRequested
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
View Source
RotationChanged
RotationChanged will be triggered when window is rotated.
Declaration
public event EventHandler RotationChanged
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
Implements
Extension Methods