Class GLWindow
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
The GLWindow class is to draw with native GLES.
This class is the special window. It is for native GLES application.
So, some special functions and type are supported.
In addition, basic window's functions are supported, too.
C#Copypublic class GLWindow : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Constructors
GLWindow()
Creates an initialized handle to a new GLWindow.
This creates an GLWindow with default options.!--
Declaration
C#Copypublic GLWindow()
GLWindow(String, Rectangle, Boolean)
Creates an initialized handle to a new GLWindow.
This API can create GLWindow with specific option.
Declaration
C#Copypublic GLWindow(string name, Rectangle windowPosition = null, bool isTranslucent = false)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name for GL window. |
Rectangle | windowPosition | The position and size of the Window. |
Boolean | isTranslucent | Whether Window is translucent. |
Properties
Declaration
C#Copypublic GLRenderingMode RenderingMode { get; set; }
Property Value
Type | Description |
---|---|
GLRenderingMode |
WindowPositionSize
Sets position and size of the window. This API guarantees that both moving and resizing of window will appear on the screen at once.
Declaration
C#Copypublic Rectangle WindowPositionSize { get; set; }
Property Value
Type | Description |
---|---|
Rectangle |
Declaration
C#Copypublic Size2D WindowSize { get; set; }
Property Value
Type | Description |
---|---|
Size2D |
Methods
Declaration
C#Copypublic void Activate()
Declaration
C#Copypublic uint AddAuxiliaryHint(string hint, string value)
Parameters
Type | Name | Description |
---|---|---|
String | hint | The auxiliary hint string. |
String | value | The value string. |
Returns
Type | Description |
---|---|
UInt32 | The ID of created auxiliary hint, or 0 on failure. |
Declaration
C#Copypublic void Destroy()
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
Declaration
C#Copypublic uint GetAuxiliaryHintId(string hint)
Parameters
Type | Name | Description |
---|---|---|
String | hint | The auxiliary hint string. |
Returns
Type | Description |
---|---|
UInt32 | The ID of auxiliary hint string, or 0 on failure. |
Declaration
C#Copypublic string GetAuxiliaryHintValue(uint id)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | id | The auxiliary hint ID. |
Returns
Type | Description |
---|---|
String | The string value of the auxiliary hint ID, or an empty string if none exists. |
Declaration
C#Copypublic GLWindow.GLWindowOrientation GetCurrentOrientation()
Returns
Type | Description |
---|---|
GLWindow.GLWindowOrientation | The current window orientation if previously set, or none. |
GetSupportedAuxiliaryHint(UInt32)
Gets the supported auxiliary hint string of the GLWindow.
Declaration
C#Copypublic string GetSupportedAuxiliaryHint(uint index)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | The index of the supported auxiliary hint lists. |
Returns
Type | Description |
---|---|
String | The auxiliary hint string of the index. |
GetSupportedAuxiliaryHintCount()
Gets the count of supported auxiliary hints of the GLWindow.
Declaration
C#Copypublic uint GetSupportedAuxiliaryHintCount()
Returns
Type | Description |
---|---|
UInt32 | The number of supported auxiliary hints. |
Declaration
C#Copypublic void Hide()
Declaration
C#Copypublic bool IsOpaqueState()
Returns
Type | Description |
---|---|
Boolean | True if the window's visual state is opaque, false otherwise. |
Remarks
The return value has no meaning on an opaque window.
Declaration
C#Copypublic void Lower()
Declaration
C#Copypublic void Raise()
RegisterGLCallbacks(GLWindow.GLInitializeCallbackType, GLWindow.GLRenderFrameCallbackType, GLWindow.GLTerminateCallbackType)
Registers GL callback functions for application.
Declaration
C#Copypublic void RegisterGLCallbacks(GLWindow.GLInitializeCallbackType glInit, GLWindow.GLRenderFrameCallbackType glRenderFrame, GLWindow.GLTerminateCallbackType glTerminate)
Parameters
Type | Name | Description |
---|---|---|
GLWindow.GLInitializeCallbackType | glInit | The callback function for application initialize |
GLWindow.GLRenderFrameCallbackType | glRenderFrame | The callback function to render to the frame |
GLWindow.GLTerminateCallbackType | glTerminate | The callback function to clean-up application GL resource |
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
Declaration
C#Copypublic bool RemoveAuxiliaryHint(uint id)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | id | The ID of the auxiliary hint. |
Returns
Type | Description |
---|---|
Boolean | True if no error occurred, false otherwise. |
RenderOnce()
Allows at least one more render, even when paused. The window should be shown, not minimised.
Declaration
C#Copypublic void RenderOnce()
Declaration
C#Copypublic bool SetAuxiliaryHintValue(uint id, string value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | id | The auxiliary hint ID. |
String | value | The value string to be set. |
Returns
Type | Description |
---|---|
Boolean | True if no error occurred, false otherwise. |
SetAvailableOrientations(List<GLWindow.GLWindowOrientation>)
Sets available orientations of the window. This API is for setting several orientations one time.
Declaration
C#Copypublic void SetAvailableOrientations(List<GLWindow.GLWindowOrientation> orientations)
Parameters
Type | Name | Description |
---|---|---|
List<GLWindow.GLWindowOrientation> | orientations | The list of orientations. |
SetGraphicsConfig(Boolean, Boolean, Int32, GLESVersion)
Sets graphics configuration for GLWindow
Declaration
C#Copypublic void SetGraphicsConfig(bool depth, bool stencil, int msaa, GLESVersion version)
Parameters
Type | Name | Description |
---|---|---|
Boolean | depth | The flag of depth buffer. If true is set, 24bit depth buffer is enabled. |
Boolean | stencil | The flag of stencil. it true is set, 8bit stencil buffer is enabled. |
Int32 | msaa | The bit of msaa. |
GLESVersion | version | The GLES version. |
Declaration
C#Copypublic void SetInputRegion(Rectangle inputRegion)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | inputRegion | The region to accept input events. |
SetOpaqueState(Boolean)
Sets a transparent window's visual state to opaque.
If a visual state of a transparent window is opaque,
then the window manager could handle it as an opaque window when calculating visibility.
Declaration
C#Copypublic void SetOpaqueState(bool opaque)
Parameters
Type | Name | Description |
---|---|---|
Boolean | opaque | Whether the window's visual state is opaque. |
Remarks
This will have no effect on an opaque window.
It doesn't change transparent window to opaque window but lets the window manager know the visual state of the window.
Declaration
C#Copypublic void SetPreferredOrientation(GLWindow.GLWindowOrientation orientation)
Parameters
Type | Name | Description |
---|---|---|
GLWindow.GLWindowOrientation | orientation | The preferred orientation. |
Declaration
C#Copypublic void Show()
Declaration
C#Copypublic void VisibiltyChangedSignalEmit(bool visibility)
Parameters
Type | Name | Description |
---|---|---|
Boolean | visibility |
Events
Declaration
C#Copypublic event EventHandler<GLWindow.FocusChangedEventArgs> FocusChanged
Event Type
Type | Description |
---|---|
EventHandler<GLWindow.FocusChangedEventArgs> |
Declaration
C#Copypublic event EventHandler<GLWindow.KeyEventArgs> KeyEvent
Event Type
Type | Description |
---|---|
EventHandler<GLWindow.KeyEventArgs> |
Declaration
C#Copypublic event EventHandler<GLWindow.ResizedEventArgs> Resized
Event Type
Type | Description |
---|---|
EventHandler<GLWindow.ResizedEventArgs> |
TouchEvent
Emits the event when the screen is touched and when the touch ends.
If there are multiple touch points then it is emitted when the first touch occurs and
when the last finger is lifted too.
Even though incoming events are interrupted, the event occurs.
Declaration
C#Copypublic event EventHandler<GLWindow.TouchEventArgs> TouchEvent
Event Type
Type | Description |
---|---|
EventHandler<GLWindow.TouchEventArgs> |
Declaration
C#Copypublic event EventHandler<GLWindow.VisibilityChangedEventArgs> VisibilityChanged
Event Type
Type | Description |
---|---|
EventHandler<GLWindow.VisibilityChangedEventArgs> |