Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Interface IUIElement

    Base interface for all UI elements, providing hierarchical support

    Namespace: PopcorningGuineaPig.Engine.UI
    Assembly: PopcorningGuineaPig.Engine.dll
    Syntax
    public interface IUIElement

    Properties

    | Edit this page View Source

    Children

    Declaration
    IReadOnlyList<IUIElement> Children { get; }
    Property Value
    Type Description
    IReadOnlyList<IUIElement>
    | Edit this page View Source

    Id

    Declaration
    string Id { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Parent

    Declaration
    IUIElement? Parent { get; set; }
    Property Value
    Type Description
    IUIElement
    | Edit this page View Source

    Position

    Declaration
    Vector2 Position { get; set; }
    Property Value
    Type Description
    Vector2
    | Edit this page View Source

    Size

    Declaration
    Vector2 Size { get; set; }
    Property Value
    Type Description
    Vector2
    | Edit this page View Source

    Visible

    Declaration
    bool Visible { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    AddChild(IUIElement)

    Declaration
    void AddChild(IUIElement child)
    Parameters
    Type Name Description
    IUIElement child
    | Edit this page View Source

    Draw()

    Declaration
    void Draw()
    | Edit this page View Source

    GetLocalPosition()

    Declaration
    Vector2 GetLocalPosition()
    Returns
    Type Description
    Vector2
    | Edit this page View Source

    GetWorldPosition()

    Declaration
    Vector2 GetWorldPosition()
    Returns
    Type Description
    Vector2
    | Edit this page View Source

    RemoveChild(IUIElement)

    Declaration
    void RemoveChild(IUIElement child)
    Parameters
    Type Name Description
    IUIElement child
    | Edit this page View Source

    RemoveFromParent()

    Declaration
    void RemoveFromParent()
    | Edit this page View Source

    Update()

    Declaration
    void Update()
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.