Class Key
Definition
- Assembly:
- Tizen.NUI.dll
The key structure is used to store a key press.
public class Key : IDisposable
- Inheritance
-
objectKey
- Implements
-
System.IDisposable
Constructors
View SourceKey()
The default constructor.
Declaration
public Key()
Fields
View Sourcedisposed
A Flat to check if it is already disposed.
Declaration
protected bool disposed
Field Value
Type | Description |
---|---|
bool |
swigCMemOwn
swigCMemOwn
Declaration
protected bool swigCMemOwn
Field Value
Type | Description |
---|---|
bool |
Properties
View SourceDeviceClass
Get the device class the key event originated from.
Declaration
public DeviceClassType DeviceClass { get; }
Property Value
Type | Description |
---|---|
DeviceClassType |
DeviceName
Device name
Declaration
public string DeviceName { get; }
Property Value
Type | Description |
---|---|
string |
DeviceSubClass
Get the device subclass the key event originated from.
Declaration
public DeviceSubClassType DeviceSubClass { get; }
Property Value
Type | Description |
---|---|
DeviceSubClassType |
KeyCode
Keycode for the key pressed.
Declaration
public int KeyCode { get; set; }
Property Value
Type | Description |
---|---|
int |
KeyModifier
Special keys like Shift, Alt, and Ctrl which modify the next key pressed.
Declaration
public int KeyModifier { get; set; }
Property Value
Type | Description |
---|---|
int |
KeyPressedName
Name given to the key pressed.
Declaration
public string KeyPressedName { get; set; }
Property Value
Type | Description |
---|---|
string |
State
State of the key event.
Declaration
public Key.StateType State { get; set; }
Property Value
Type | Description |
---|---|
Key.StateType |
Time
The time (in ms) that the key event occurred.
Declaration
public uint Time { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
View SourceDispose()
Dispose.
Declaration
public void Dispose()
Dispose(DisposeTypes)
Dispose.
Declaration
protected virtual void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | The dispose type. |
~Key()
Dispose.
Declaration
protected ~Key()
IsAltModifier()
Checks to see if Alt key modifier has been supplied.
Declaration
public bool IsAltModifier()
Returns
Type | Description |
---|---|
bool | True if Alt modifier. |
IsCtrlModifier()
Checks to see if Ctrl (control) key modifier has been supplied.
Declaration
public bool IsCtrlModifier()
Returns
Type | Description |
---|---|
bool | True if Ctrl modifier. |
IsShiftModifier()
Checks to see if the Shift key modifier has been supplied.
Declaration
public bool IsShiftModifier()
Returns
Type | Description |
---|---|
bool | True if Shift modifier. |
Implements
System.IDisposable