Interface IReadOnlyHudElement
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
Read-only interface for hud elements with definite size and position.
public interface IReadOnlyHudElement : IReadOnlyHudNode, IReadOnlyHudParent
- Inherited Members
Properties
DimAlignment
Determines how/if an element will copy its parent's dimensions.
DimAlignments DimAlignment { get; }
Property Value
Height
Height of the element. Units in pixels with HudMain.Root.
float Height { get; }
Property Value
IsMousedOver
Indicates whether or not the cursor is currently over the element. The element must be set to capture the cursor for this to work.
bool IsMousedOver { get; }
Property Value
Offset
Position of the center of the UI element relative to its origin.
Vector2 Offset { get; }
Property Value
Origin
Starting/anchoring position of the hud element. Starts in the center of the parent node by default. This behavior can be modified with ParentAlignment flags.
Vector2 Origin { get; }
Property Value
ParentAlignment
Determines the starting position/anchoring behavior of the hud element relative to its parent.
ParentAlignments ParentAlignment { get; }
Property Value
ShareCursor
If set to true the hud element will share the cursor with its child elements.
bool ShareCursor { get; }
Property Value
Size
Size of the element. Units in pixels with HudMain.Root.
Vector2 Size { get; }
Property Value
UseCursor
Enables or disables cursor input and capture
bool UseCursor { get; }
Property Value
Width
Width of the element. Units in pixels with HudMain.Root.
float Width { get; }