Skip to content

Struct Event

Definition

Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll

An event handler parsed from StarML.

[System.Obsolete]
public readonly ref struct Event

Inheritance
ObjectValueType ⇦ 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.

public ReadOnlySpan<System.Char> EventName { get; }
Property Value

ReadOnlySpan<Char>


HandlerName

The name of the handler method to invoke.

public ReadOnlySpan<System.Char> HandlerName { get; }
Property Value

ReadOnlySpan<Char>


ParentDepth

The depth to walk - i.e. number of parents to traverse - to find the object on which to invoke the handler method.

public uint ParentDepth { get; }
Property Value

UInt32


ParentType

The type name of the parent to walk up to for a context redirect. Exclusive with ParentDepth.

public ReadOnlySpan<System.Char> ParentType { get; }
Property Value

ReadOnlySpan<Char>