Interface ICheckboxComponent
The checkbox component allows having an entity behave like a checkbox (can be checked an unchecked).
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
[RequiredComponent(typeof(IUIEvents), true)]
[RequiredComponent(typeof(IAnimationComponent), true)]
[RequiredComponent(typeof(ITextComponent), false)]
[RequiredComponent(typeof(IImageComponent), false)]
[RequiredComponent(typeof(IBorderComponent), false)]
public interface ICheckboxComponent : IComponent, IDisposable, INotifyPropertyChanged
Properties
| Improve this Doc View SourceChecked
Gets or sets a value indicating whether this ICheckboxComponent is checked.
Declaration
bool Checked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
CheckedAnimation
Gets or sets the animation when the checkbox is checked.
Declaration
ButtonAnimation CheckedAnimation { get; set; }
Property Value
Type | Description |
---|---|
ButtonAnimation | The checked animation. |
HoverCheckedAnimation
Gets or sets the animation when the checkbox is checked and the mouse is hovering over it.
Declaration
ButtonAnimation HoverCheckedAnimation { get; set; }
Property Value
Type | Description |
---|---|
ButtonAnimation | The hover checked animation. |
HoverNotCheckedAnimation
Gets or sets the animation when the checkbox is not checked and the mouse is hovering over it.
Declaration
ButtonAnimation HoverNotCheckedAnimation { get; set; }
Property Value
Type | Description |
---|---|
ButtonAnimation | The hover not checked animation. |
NotCheckedAnimation
Gets or sets the animation when the checkbox is not checked.
Declaration
ButtonAnimation NotCheckedAnimation { get; set; }
Property Value
Type | Description |
---|---|
ButtonAnimation | The not checked animation. |
OnCheckChanged
An event which is triggered whenever the check state changes.
Declaration
IBlockingEvent<CheckBoxEventArgs> OnCheckChanged { get; }
Property Value
Type | Description |
---|---|
IBlockingEvent<CheckBoxEventArgs> | The event. |
RadioGroup
Allows setting a radio group, which can be used to group multiple checkboxes together to guarantee that only a single checkbox is checked at any given time.
Declaration
IRadioGroup RadioGroup { get; set; }
Property Value
Type | Description |
---|---|
IRadioGroup | The radio group. |
TextLabel
An optional text label to accompany the checkbox.
Declaration
ILabel TextLabel { get; set; }
Property Value
Type | Description |
---|---|
ILabel | The text label. |