Struct AtkUnitBasePtr
A readonly wrapper for AtkUnitBase.
Assembly: Dalamud.dll
View Source
public readonly struct AtkUnitBasePtr : IEquatable<AtkUnitBasePtr>
Implements:
System.IEquatable<Dalamud.Game.NativeWrapper.AtkUnitBasePtr>
Properties
IsNull
Gets a value indicating whether the underlying pointer is a nullptr.
View Source
public bool IsNull { get; }
IsReady
Gets a value indicating whether the OnSetup function has been called.
View Source
public bool IsReady { get; }
IsVisible
Gets a value indicating whether the AtkUnitBase is visible.
View Source
public bool IsVisible { get; }
Name
Gets the name.
View Source
public string Name { get; }
Id
Gets the id.
View Source
public ushort Id { get; }
ParentId
Gets the parent id.
View Source
public ushort ParentId { get; }
HostId
Gets the host id.
View Source
public ushort HostId { get; }
Scale
Gets the scale.
View Source
public float Scale { get; }
X
Gets the x-position.
View Source
public short X { get; }
Y
Gets the y-position.
View Source
public short Y { get; }
Width
Gets the width.
View Source
public float Width { get; }
Height
Gets the height.
View Source
public float Height { get; }
ScaledWidth
Gets the scaled width.
View Source
public float ScaledWidth { get; }
ScaledHeight
Gets the scaled height.
View Source
public float ScaledHeight { get; }
Position
Gets the position.
View Source
public Vector2 Position { get; }
Size
Gets the size.
View Source
public Vector2 Size { get; }
ScaledSize
Gets the scaled size.
View Source
public Vector2 ScaledSize { get; }
AtkValuesCount
Gets the number of FFXIVClientStructs.FFXIV.Component.GUI.AtkValue
entries.
View Source
public int AtkValuesCount { get; }
AtkValues
Gets an enumerable collection of Dalamud.Game.NativeWrapper.AtkValuePtr of the addons current AtkValues.
View Source
public IEnumerable<AtkValuePtr> AtkValues { get; }
Fields
Address
The address to the AtkUnitBase.
View Source
public readonly nint Address
Methods
Focus()
Focuses the AtkUnitBase.
View Source
public void Focus()
Equals(AtkUnitBasePtr)
Determines whether the specified AtkUnitBasePtr is equal to the current AtkUnitBasePtr.
View Source
public bool Equals(AtkUnitBasePtr other)
Returns
System.Boolean
: true
if the specified AtkUnitBasePtr is equal to the current AtkUnitBasePtr; otherwise, false
.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.NativeWrapper.AtkUnitBasePtr | other | The AtkUnitBasePtr to compare with the current AtkUnitBasePtr. |
Equals(object)
Determines whether the specified object is equal to the current object.
View Source
public override bool Equals(object obj)
Returns
System.Boolean
: true if the specified object is equal to the current object; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
GetHashCode()
Serves as the default hash function.
View Source
public override int GetHashCode()
Returns
System.Int32
: A hash code for the current object.
Implements
System.IEquatable<Dalamud.Game.NativeWrapper.AtkUnitBasePtr>