Struct Event
Definition
Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll
An event handler parsed from StarML.
Inheritance
Object ⇦ ValueType ⇦ Event
Members
Constructors
Name | Description |
---|---|
Event(ReadOnlySpan<Char>, ReadOnlySpan<Char>, UInt32, ReadOnlySpan<Char>) | An event handler parsed from StarML. |
Properties
Name | Description |
---|---|
EventName | The name of the event to which a handler should be attached. |
HandlerName | The name of the handler method to invoke. |
ParentDepth | The depth to walk - i.e. number of parents to traverse - to find the object on which to invoke the handler method. |
ParentType | The type name of the parent to walk up to for a context redirect. Exclusive with ParentDepth. |
Methods
Name | Description |
---|---|
Equals(Object) | (Inherited from ValueType) |
GetHashCode() | (Inherited from ValueType) |
ToString() | (Inherited from ValueType) |
Details
Constructors
Event(ReadOnlySpan<Char>, ReadOnlySpan<Char>, uint, ReadOnlySpan<Char>)
An event handler parsed from StarML.
public Event(ReadOnlySpan<System.Char> eventName, ReadOnlySpan<System.Char> handlerName, uint parentDepth, ReadOnlySpan<System.Char> parentType);
Parameters
eventName
ReadOnlySpan<Char>
The name of the event to which a handler should be attached.
handlerName
ReadOnlySpan<Char>
The name of the handler method to invoke.
parentDepth
UInt32
The depth to walk - i.e. number of parents to traverse - to find the object on which to invoke the handler method.
parentType
ReadOnlySpan<Char>
The type name of the parent to walk up to for a context redirect. Exclusive with parentDepth
.
Properties
EventName
The name of the event to which a handler should be attached.
Property Value
HandlerName
The name of the handler method to invoke.
Property Value
ParentDepth
The depth to walk - i.e. number of parents to traverse - to find the object on which to invoke the handler method.
Property Value
ParentType
The type name of the parent to walk up to for a context redirect. Exclusive with ParentDepth.