Class Panel
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
Properties
|
Edit this page
View Source
Color
Declaration
public Color Color { get; set; }
Property Value
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
|
Edit this page
View Source
DrawSelf()
Override to implement element-specific drawing logic
Declaration
protected override void DrawSelf()
Overrides
|
Edit this page
View Source
GetChildren()
Declaration
public List<object> GetChildren()
Returns
|
Edit this page
View Source
GetPosition()
Declaration
public Vector2 GetPosition()
Returns
|
Edit this page
View Source
GetSize()
Declaration
Returns
|
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
|
Edit this page
View Source
UpdateSelf()
Override to implement element-specific update logic
Declaration
protected override void UpdateSelf()
Overrides
Implements