Class ColorPickerButton

Namespace
Forma
Assembly
Forma.dll

Button that displays a color and exposes a child ColorPicker popup.

public sealed class ColorPickerButton : BaseButton, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
ColorPickerButton
Implements
Inherited Members

Constructors

ColorPickerButton()

public ColorPickerButton()

Properties

Color

public Color Color { get; set; }

Property Value

Color

EditAlpha

public bool EditAlpha { get; set; }

Property Value

bool

Picker

public ColorPicker Picker { get; }

Property Value

ColorPicker

Popup

public ColorPickerPopupPanel Popup { get; }

Property Value

ColorPickerPopupPanel

Methods

PointerReleased(Point, bool)

The pointer was released, with whether it was still inside this control.

protected override void PointerReleased(Point position, bool isInside)

Parameters

position Point
isInside bool

Events

ColorChanged

public event Action<ColorPickerButton, Color> ColorChanged

Event Type

Action<ColorPickerButton, Color>

PopupClosed

Raised whenever the picker popup closes, matching Godot's ColorPickerButton.popup_closed.

public event EventHandler PopupClosed

Event Type

EventHandler