GeonBit.UI Documentation
Button Constructor |
Create the button.
Namespace: GeonBit.UI.Entities
Assembly: GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)

C#
public Button( string text, ButtonSkin skin = ButtonSkin.Default, Anchor anchor = Anchor.Auto, Nullable<Vector2> size = null, Nullable<Vector2> offset = null )
Parameters
- text
- Type: SystemString
Text for the button label. - skin (Optional)
- Type: GeonBit.UI.EntitiesButtonSkin
Button skin (texture to use). - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - size (Optional)
- Type: SystemNullableVector2
Button size (if not defined will use default size). - offset (Optional)
- Type: SystemNullableVector2
Offset from anchor position.
