Interface Efl.Input.IEvent
Represents a generic event data. Note: Most Efl Events do not carry Efl Objects, rather simple data structures. This class is intended to carry more complex event data, such as pointer events.
Syntax
public interface IEvent : IWrapper, IDisposable
Properties
Device
Input device that originated this event.
Declaration
Device Device { get; set; }
Property Value
Type | Description |
---|---|
Efl.Input.Device | Input device origin |
EventFlags
Extra flags for this event, may be changed by the user.
Declaration
Flags EventFlags { get; set; }
Property Value
Type | Description |
---|---|
Efl.Input.Flags | Input event flags |
Fake
true
if the event was fake, not triggered by real hardware.
Declaration
bool Fake { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Processed
true
if Efl.Input.IEvent.EventFlags indicates the event is on hold.
Declaration
bool Processed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Scrolling
true
if Efl.Input.IEvent.EventFlags indicates the event happened while scrolling.
Declaration
bool Scrolling { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Timestamp
The time at which an event was generated. If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.
Declaration
double Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Time in milliseconds when the event happened. |
Methods
GetDevice()
Input device that originated this event.
Declaration
Device GetDevice()
Returns
Type | Description |
---|---|
Efl.Input.Device | Input device origin |
GetEventFlags()
Extra flags for this event, may be changed by the user.
Declaration
Flags GetEventFlags()
Returns
Type | Description |
---|---|
Efl.Input.Flags | Input event flags |
GetFake()
true
if the event was fake, not triggered by real hardware.
Declaration
bool GetFake()
Returns
Type | Description |
---|---|
System.Boolean |
|
GetProcessed()
true
if Efl.Input.IEvent.EventFlags indicates the event is on hold.
Declaration
bool GetProcessed()
Returns
Type | Description |
---|---|
System.Boolean |
|
GetScrolling()
true
if Efl.Input.IEvent.EventFlags indicates the event happened while scrolling.
Declaration
bool GetScrolling()
Returns
Type | Description |
---|---|
System.Boolean |
|
GetTimestamp()
The time at which an event was generated. If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.
Declaration
double GetTimestamp()
Returns
Type | Description |
---|---|
System.Double | Time in milliseconds when the event happened. |
Reset()
Resets the internal data to 0 or default values.
Declaration
void Reset()
SetDevice(Device)
Input device that originated this event.
Declaration
void SetDevice(Device dev)
Parameters
Type | Name | Description |
---|---|---|
Efl.Input.Device | dev | Input device origin |
SetEventFlags(Flags)
Extra flags for this event, may be changed by the user.
Declaration
void SetEventFlags(Flags flags)
Parameters
Type | Name | Description |
---|---|---|
Efl.Input.Flags | flags | Input event flags |
SetProcessed(Boolean)
true
if Efl.Input.IEvent.EventFlags indicates the event is on hold.
Declaration
void SetProcessed(bool val)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | val |
|
SetScrolling(Boolean)
true
if Efl.Input.IEvent.EventFlags indicates the event happened while scrolling.
Declaration
void SetScrolling(bool val)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | val |
|
SetTimestamp(Double)
Call this when generating events manually.
Declaration
void SetTimestamp(double ms)
Parameters
Type | Name | Description |
---|---|---|
System.Double | ms | Time in milliseconds when the event happened. |