Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class Panel

    Inheritance
    object
    UIElementBase
    Panel
    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.Update()
    UIElementBase.SetTooltip(string)
    UIElementBase.SetTooltipLocalizationKey(string, string)
    UIElementBase.UpdateTooltipFromLocalization()
    UIElementBase.SetTooltipText(string)
    UIElementBase.SetLocalizationService(ILocalizationService)
    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 Panel : UIElementBase, IUIElement

    Constructors

    | Edit this page View Source

    Panel(Texture2D, Vector2, Vector2, Rectangle[])

    Declaration
    public Panel(Texture2D texture, Vector2 position, Vector2 size, Rectangle[] nineSliceRects)
    Parameters
    Type Name Description
    Texture2D texture
    Vector2 position
    Vector2 size
    Rectangle[] nineSliceRects
    | Edit this page View Source

    Panel(Texture2D, Vector2, Vector2, Rectangle[], Color)

    Declaration
    public Panel(Texture2D texture, Vector2 position, Vector2 size, Rectangle[] nineSliceRects, Color color)
    Parameters
    Type Name Description
    Texture2D texture
    Vector2 position
    Vector2 size
    Rectangle[] nineSliceRects
    Color color
    | Edit this page View Source

    Panel(Vector2, Vector2, Color)

    Declaration
    public Panel(Vector2 position, Vector2 size, Color color)
    Parameters
    Type Name Description
    Vector2 position
    Vector2 size
    Color color

    Properties

    | Edit this page View Source

    Color

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

    Methods

    | Edit this page View Source

    AddChild(object)

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

    CreateNineSliceRects(Texture2D, int)

    Declaration
    public static Rectangle[] CreateNineSliceRects(Texture2D texture, int cornerSize)
    Parameters
    Type Name Description
    Texture2D texture
    int cornerSize
    Returns
    Type Description
    Rectangle[]
    | 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

    GetChildren()

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

    GetPosition()

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

    GetSize()

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

    SetPosition(Vector2)

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

    SetSize(Vector2)

    Declaration
    public void SetSize(Vector2 size)
    Parameters
    Type Name Description
    Vector2 size
    | 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.