Interface ITouchable
Interface for touchable objects.
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public interface ITouchable
Properties
IsActive
Gets a value indicating whether this instance is active.
Declaration
bool IsActive { get; }
Property Value
Type | Description |
---|---|
bool |
|
ManualTouchOrder
Gets or sets a value indicating whether the order is manual touch.
Declaration
bool ManualTouchOrder { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
TouchOrder
Gets the touch order.
Declaration
int TouchOrder { get; }
Property Value
Type | Description |
---|---|
int |
Methods
AddTouch(TouchLocation, bool)
Adds the touch.
Declaration
void AddTouch(TouchLocation touch, bool isNew)
Parameters
Type | Name | Description |
---|---|---|
TouchLocation | touch | The touch. |
bool | isNew | If set to |
Contains(Vector2)
Determines whether [the specified point] is contained.
Declaration
bool Contains(Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | point | The point. |
Returns
Type | Description |
---|---|
bool |
|
UpdateTouchOrder()
Updates the order of touches.
Declaration
void UpdateTouchOrder()
Events
TouchOrderChanged
Occurs when the touch order changes.
Declaration
event EventHandler TouchOrderChanged
Event Type
Type | Description |
---|---|
EventHandler |