Class Efl.Input.Focus
Represents a focus event. (Since EFL 1.22)
Syntax
public class Focus : Object, IEvent, IWrapper, IDisposable
Constructors
Focus(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 Focus(EoWrapper.ConstructingHandle ch)
Parameters
Type | Name | Description |
---|---|---|
Efl.Eo.EoWrapper.ConstructingHandle | ch | Tag struct storing the native handle of the object being constructed. |
Focus(Object)
Initializes a new instance of the Efl.Input.Focus class.
Declaration
public Focus(Object parent = null)
Parameters
Type | Name | Description |
---|---|---|
Efl.Object | parent | Parent instance. |
Focus(IntPtr, Object)
Initializes a new instance of the Efl.Input.Focus 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 Focus(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 |
|
Object
The focused object. (Since EFL 1.22)
Declaration
public Object Object { get; set; }
Property Value
Type | Description |
---|---|
Efl.Object | The focused object, or |
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 |
|
GetObject()
The focused object. (Since EFL 1.22)
Declaration
public virtual Object GetObject()
Returns
Type | Description |
---|---|
Efl.Object | The focused object, or |
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 |
SetObject(Object)
The focused object. (Since EFL 1.22)
Declaration
public virtual void SetObject(Object kw_object)
Parameters
Type | Name | Description |
---|---|---|
Efl.Object | kw_object | The focused object, or |
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. |