private bool AssertDecodePointerKind( LNode node, DecoderState state, out PointerKind kind) { return(state.AssertDecodeEnum( node, pointerKindDecoding, "pointer kind", out kind)); }
private AbcInstance DefineSlotPtrClass(AbcTrait slot, out PointerKind kind) { if (AbcGenConfig.UseActivationTraits && AbcGenConfig.UseFuncPointers) { kind = PointerKind.FuncPtr; return(_generator.Pointers.FuncPtr.Instance); } //kind = PointerKind.SlotPtr; //return _generator.DefineSlotPtr(slot); kind = PointerKind.PropertyPtr; return(_generator.Pointers.PropertyPtr(slot.Name)); }
/// <summary> /// Initializes a new instance of the <see cref="PointerInputDevice"/> class. /// </summary> /// <param name="pointerKind">The kind of pointer represented by this input device.</param> /// <param name="deviceName">The unique name for this input device.</param> public PointerInputDevice(PointerKind pointerKind, string deviceName) : base(pointerKind, deviceName) { }
/// <summary> /// Initializes a new instance of the <see cref="PointerInputDevice"/> class. /// </summary> /// <param name="pointerKind">The kind of pointer represented by this input device.</param> public PointerInputDevice(PointerKind pointerKind) : base(pointerKind) { }
/// <summary> /// Creates a pointer type of a particular kind that has a /// type as element. /// </summary> /// <param name="type"> /// The type of values referred to by the pointer type. /// </param> /// <param name="kind"> /// The kind of the pointer type. /// </param> /// <returns>A pointer type.</returns> public static PointerType MakePointerType(this IType type, PointerKind kind) { return(PointerType.Create(type, kind)); }
/// <summary> /// Tests if a type is a pointer type of a particular kind. /// </summary> /// <param name="type">The type to inspect.</param> /// <param name="kind">The kind of pointer to test for.</param> /// <returns> /// <c>true</c> if the type is a pointer type of the specified kind; /// otherwise, <c>false</c>. /// </returns> public static bool IsPointerType(this IType type, PointerKind kind) { var ptrType = type as PointerType; return(ptrType != null && ptrType.Kind == kind); }
/// <summary> /// Initializes a new instance of the <see cref="PointerInputDevice"/> class. /// </summary> /// <param name="pointerKind">The kind of pointer represented by this input device.</param> /// <param name="deviceName">The unique name for this input device.</param> public PointerInputDevice(PointerKind pointerKind, string deviceName) : base(deviceName) { this.pointerKind = pointerKind; }
/// <summary> /// Initializes a new instance of the <see cref="PointerInputDevice"/> class. /// </summary> /// <param name="pointerKind">The kind of pointer represented by this input device.</param> public PointerInputDevice(PointerKind pointerKind) : this(pointerKind, Guid.NewGuid().ToString()) { }
/// <summary> /// Initializes a new instance of the <see cref="PointerInputDevice"/> class. /// </summary> /// <param name="pointerKind">The kind of pointer represented by this input device.</param> /// <param name="isPrimary">A value indicating whether the pointer device is the primary pointer device.</param> /// <param name="deviceName">The unique name for this input device.</param> public PointerInputDevice(PointerKind pointerKind, bool isPrimary, string deviceName) : base(deviceName) { this.pointerKind = pointerKind; this.isPrimary = isPrimary; }
/// <summary> /// Initializes a new instance of the <see cref="PointerInputDevice"/> class. /// </summary> /// <param name="pointerKind">The kind of pointer represented by this input device.</param> /// <param name="isPrimary">A value indicating whether the pointer device is the primary pointer device.</param> public PointerInputDevice(PointerKind pointerKind, bool isPrimary) : this(pointerKind, isPrimary, Guid.NewGuid().ToString()) { }
private LNode EncodePointerKind(PointerKind kind, EncoderState state) { return(state.Factory.Id(pointerKindEncoding[kind])); }
/// <summary> /// Creates a pointer name from a qualified name and a pointer kind. /// </summary> /// <param name="elementName"> /// The name of the element type in this pointer name. /// </param> /// <param name="kind"> /// The kind of pointer named by this pointer name. /// </param> public PointerName(QualifiedName elementName, PointerKind kind) { this.ElementName = elementName; this.Kind = kind; }
public PointerId(PointerKind kind) { Kind = kind; TouchId = 0; }