Show / Hide Table of Contents

Class UIButton

Binding to UI buttons

Inheritance
System.Object
UIComponent
UIButton
Inherited Members
UIComponent.AddChild(UIComponent)
UIComponent.Size
UIComponent.Height
UIComponent.Width
UIComponent.MaxSize
UIComponent.Children
UIComponent.ClearChildren()
UIComponent.BringToFront()
UIComponent.Anchor
UIComponent.Draggable
UIComponent.FillColor
UIComponent.AttachedData
UIComponent.Parent
UIComponent.Visible
UIComponent.Enabled
UIComponent.Locked
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class UIButton : UIComponent

Constructors

UIButton(Button)

Declaration
public UIButton(Button ent)
Parameters
Type Name Description
GeonBit.UI.Entities.Button ent

UIButton(String, Closure, EUIAnchor)

Create a UIButton.

Declaration
public UIButton(string text, Closure callbackClick = null, EUIAnchor position = EUIAnchor.AutoCenter)
Parameters
Type Name Description
System.String text

The text of this button

Closure callbackClick

A callback to fire when this button is clicked

EUIAnchor position

The position of this button relative to its parent

Properties

OnClick

A Closure to call when this UIButton is clicked.

Declaration
public Closure OnClick { get; set; }
Property Value
Type Description
Closure

Text

The text of this button.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String
Back to top © 2020 Anarkis Gaming. All rights reserved. Generated by DocFX