Search Results for

    Show / Hide Table of Contents

    Interface IElement

    Namespace: GTA.UI
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public interface IElement

    Properties

    | Improve this Doc View Source

    Centered

    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.

    | Improve this Doc View Source

    Color

    Gets or sets the color of this IElement.

    Declaration
    Color Color { get; set; }
    Property Value
    Type Description
    Color

    The color.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    Draw()

    Draws this IElement this frame.

    Declaration
    void Draw()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    ScaledDraw()

    Draws this IElement this frame using the width returned in ScaledWidth.

    Declaration
    void ScaledDraw()
    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX