Interface IElement
Namespace: GTA.UI
Assembly: ScriptHookVDotNet3.dll
Syntax
public interface IElement
Properties
| Improve this Doc View SourceCentered
Gets or sets a value indicating whether this IElement should be positioned based on its center or top left corner
Declaration
bool Centered { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean | true if centered; otherwise, false. |
Color
Gets or sets the color of this IElement.
Declaration
Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color | The color. |
Enabled
Gets or sets a value indicating whether this IElement will be drawn.
Declaration
bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean | true if enabled; otherwise, false. |
Position
Gets or sets the position of this IElement.
Declaration
PointF Position { get; set; }
Property Value
| Type | Description |
|---|---|
| PointF | The position scaled on a 1280*720 pixel base. |
Remarks
If ScaledDraw is called, the position will be scaled by the width returned in ScaledWidth.
Methods
| Improve this Doc View SourceDraw()
Draws this IElement this frame.
Declaration
void Draw()
Draw(SizeF)
Draws this IElement this frame at the specified offset.
Declaration
void Draw(SizeF offset)
Parameters
| Type | Name | Description |
|---|---|---|
| SizeF | offset | The offset to shift the draw position of this IElement using a 1280*720 pixel base. |
ScaledDraw()
Draws this IElement this frame using the width returned in ScaledWidth.
Declaration
void ScaledDraw()
ScaledDraw(SizeF)
Draws this IElement this frame at the specified offset using the width returned in ScaledWidth.
Declaration
void ScaledDraw(SizeF offset)
Parameters
| Type | Name | Description |
|---|---|---|
| SizeF | offset | The offset to shift the draw position of this IElement using a ScaledWidth*720 pixel base. |