Panel Constructor

GeonBit.UI

Panel Constructor
Create the panel.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Panel(
	Vector2 size,
	PanelSkin skin = PanelSkin.Default,
	Anchor anchor = Anchor.Center,
	Nullable<Vector2> offset = null
)

Parameters

size
Type: Vector2
Panel size.
skin (Optional)
Type: GeonBit.UI.EntitiesPanelSkin
Panel skin (texture to use). Use PanelSkin.None for invisible panels.
anchor (Optional)
Type: GeonBit.UI.EntitiesAnchor
Position anchor.
offset (Optional)
Type: SystemNullableVector2
Offset from anchor position.
See Also