Class Efl.Input.Hold
Event data sent when inputs are put on hold or resumed.
Syntax
public class Hold : Object, IEvent, IWrapper, IDisposable
Constructors
Hold(EoWrapper.ConstructingHandle)
Subclasses should override this constructor if they are expected to be instantiated from native code. Do not call this constructor directly.
Declaration
protected Hold(EoWrapper.ConstructingHandle ch)
Parameters
Type | Name | Description |
---|---|---|
Efl.Eo.EoWrapper.ConstructingHandle | ch | Tag struct storing the native handle of the object being constructed. |
Hold(Object)
Initializes a new instance of the Efl.Input.Hold class.
Declaration
public Hold(Object parent = null)
Parameters
Type | Name | Description |
---|---|---|
Efl.Object | parent | Parent instance. |
Hold(IntPtr, Object)
Initializes a new instance of the Efl.Input.Hold class. Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.
Declaration
protected Hold(IntPtr baseKlass, Object parent)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | baseKlass | The pointer to the base native Eo class. |
Efl.Object | parent | The Efl.Object parent of this instance. |
Properties
Device
Input device that originated this event.
Declaration
public 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
public 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
public bool Fake { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
InputHold
Property to show if inputs are now on hold.
Declaration
public bool InputHold { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Processed
true
if Efl.Input.IEvent.EventFlags indicates the event is on hold.
Declaration
public bool Processed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Scrolling
true
if Efl.Input.IEvent.EventFlags indicates the event happened while scrolling.
Declaration
public 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
public 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
public virtual Device GetDevice()
Returns
Type | Description |
---|---|
Efl.Input.Device | Input device origin |
GetEventFlags()
Extra flags for this event, may be changed by the user.
Declaration
public virtual Flags GetEventFlags()
Returns
Type | Description |
---|---|
Efl.Input.Flags | Input event flags |
GetFake()
true
if the event was fake, not triggered by real hardware.
Declaration
public virtual bool GetFake()
Returns
Type | Description |
---|---|
System.Boolean |
|
GetInputHold()
Property to show if inputs are now on hold.
Declaration
public virtual bool GetInputHold()
Returns
Type | Description |
---|---|
System.Boolean |
|
GetProcessed()
true
if Efl.Input.IEvent.EventFlags indicates the event is on hold.
Declaration
public virtual bool GetProcessed()
Returns
Type | Description |
---|---|
System.Boolean |
|
GetScrolling()
true
if Efl.Input.IEvent.EventFlags indicates the event happened while scrolling.
Declaration
public virtual 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
public virtual 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
public virtual void Reset()
SetDevice(Device)
Input device that originated this event.
Declaration
public virtual 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
public virtual void SetEventFlags(Flags flags)
Parameters
Type | Name | Description |
---|---|---|
Efl.Input.Flags | flags | Input event flags |
SetInputHold(Boolean)
Property to show if inputs are now on hold.
Declaration
public virtual void SetInputHold(bool val)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | val |
|
SetProcessed(Boolean)
true
if Efl.Input.IEvent.EventFlags indicates the event is on hold.
Declaration
public virtual 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
public virtual void SetScrolling(bool val)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | val |
|
SetTimestamp(Double)
Call this when generating events manually.
Declaration
public virtual void SetTimestamp(double ms)
Parameters
Type | Name | Description |
---|---|---|
System.Double | ms | Time in milliseconds when the event happened. |