Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class GridContainer

    Inheritance
    object
    UIElementBase
    GridContainer
    Implements
    IUIElement
    Inherited Members
    UIElementBase._children
    UIElementBase.Tooltip
    UIElementBase.TooltipLocalizationKey
    UIElementBase.TooltipFallbackText
    UIElementBase.Id
    UIElementBase.Position
    UIElementBase.Size
    UIElementBase.Visible
    UIElementBase.Opacity
    UIElementBase.Parent
    UIElementBase.Children
    UIElementBase.AddChild(IUIElement)
    UIElementBase.RemoveChild(IUIElement)
    UIElementBase.RemoveFromParent()
    UIElementBase.GetWorldPosition()
    UIElementBase.GetLocalPosition()
    UIElementBase.SetTooltip(string)
    UIElementBase.SetTooltipLocalizationKey(string, string)
    UIElementBase.UpdateTooltipFromLocalization()
    UIElementBase.SetTooltipText(string)
    UIElementBase.IsMouseOver()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PopcorningGuineaPig.Engine.UI
    Assembly: PopcorningGuineaPig.Engine.dll
    Syntax
    public class GridContainer : UIElementBase, IUIElement

    Constructors

    | Edit this page View Source

    GridContainer(Vector2, Vector2, int, int, float, float)

    Declaration
    public GridContainer(Vector2 position, Vector2 size, int rows, int columns, float rowGap = 5, float columnGap = 5)
    Parameters
    Type Name Description
    Vector2 position
    Vector2 size
    int rows
    int columns
    float rowGap
    float columnGap

    Methods

    | Edit this page View Source

    AddItem(object, int, int, int, int)

    Declaration
    public void AddItem(object child, int row, int column, int rowSpan = 1, int columnSpan = 1)
    Parameters
    Type Name Description
    object child
    int row
    int column
    int rowSpan
    int columnSpan
    | Edit this page View Source

    Draw()

    Declaration
    public void Draw()
    | Edit this page View Source

    DrawSelf()

    Override to implement element-specific drawing logic

    Declaration
    protected override void DrawSelf()
    Overrides
    UIElementBase.DrawSelf()
    | Edit this page View Source

    GetColumns()

    Declaration
    public int GetColumns()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetDirection()

    Declaration
    public GridDirection GetDirection()
    Returns
    Type Description
    GridDirection
    | Edit this page View Source

    GetHorizontalAlignment()

    Declaration
    public HorizontalAlignment GetHorizontalAlignment()
    Returns
    Type Description
    HorizontalAlignment
    | Edit this page View Source

    GetItems()

    Declaration
    public List<GridItem> GetItems()
    Returns
    Type Description
    List<GridItem>
    | Edit this page View Source

    GetPosition()

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

    GetRows()

    Declaration
    public int GetRows()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetSize()

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

    GetSizing()

    Declaration
    public GridSizing GetSizing()
    Returns
    Type Description
    GridSizing
    | Edit this page View Source

    GetVerticalAlignment()

    Declaration
    public VerticalAlignment GetVerticalAlignment()
    Returns
    Type Description
    VerticalAlignment
    | Edit this page View Source

    SetColumnWidth(int, float)

    Declaration
    public void SetColumnWidth(int column, float widthPercent)
    Parameters
    Type Name Description
    int column
    float widthPercent
    | Edit this page View Source

    SetDirection(GridDirection)

    Declaration
    public void SetDirection(GridDirection dir)
    Parameters
    Type Name Description
    GridDirection dir
    | Edit this page View Source

    SetHorizontalAlignment(HorizontalAlignment)

    Declaration
    public void SetHorizontalAlignment(HorizontalAlignment align)
    Parameters
    Type Name Description
    HorizontalAlignment align
    | Edit this page View Source

    SetLocalizationService(ILocalizationService?)

    Sets the localization service to use for automatic font management. Override this method in derived classes that display text to implement localization support. Default implementation does nothing (for non-text UI elements).

    Declaration
    public override void SetLocalizationService(ILocalizationService? localizationService)
    Parameters
    Type Name Description
    ILocalizationService localizationService

    The localization service to use, or null to disable

    Overrides
    UIElementBase.SetLocalizationService(ILocalizationService?)
    | Edit this page View Source

    SetPadding(float)

    Sets uniform padding on all sides

    Declaration
    public void SetPadding(float padding)
    Parameters
    Type Name Description
    float padding
    | Edit this page View Source

    SetPadding(float, float, float, float)

    Sets padding for each side individually

    Declaration
    public void SetPadding(float top, float right, float bottom, float left)
    Parameters
    Type Name Description
    float top
    float right
    float bottom
    float left
    | Edit this page View Source

    SetPosition(Vector2)

    Declaration
    public void SetPosition(Vector2 newPosition)
    Parameters
    Type Name Description
    Vector2 newPosition
    | Edit this page View Source

    SetRowHeight(int, float)

    Declaration
    public void SetRowHeight(int row, float heightPercent)
    Parameters
    Type Name Description
    int row
    float heightPercent
    | Edit this page View Source

    SetSize(Vector2)

    Declaration
    public void SetSize(Vector2 newSize)
    Parameters
    Type Name Description
    Vector2 newSize
    | Edit this page View Source

    SetSizing(GridSizing)

    Declaration
    public void SetSizing(GridSizing sz)
    Parameters
    Type Name Description
    GridSizing sz
    | Edit this page View Source

    SetVerticalAlignment(VerticalAlignment)

    Declaration
    public void SetVerticalAlignment(VerticalAlignment align)
    Parameters
    Type Name Description
    VerticalAlignment align
    | Edit this page View Source

    Update()

    Declaration
    public void Update()
    | Edit this page View Source

    UpdateSelf()

    Override to implement element-specific update logic

    Declaration
    protected override void UpdateSelf()
    Overrides
    UIElementBase.UpdateSelf()

    Implements

    IUIElement
    • 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.