# ColorButton Control

(UI 0.9.9)

## Introduction

A Color Button is a button which displays a color picker when clicked

## Class synopsis

class UI\Controls\ColorButton extends UI\Control {
/* Methods */
public function getColor(): UI\Color
protected function onChange()
public function setColor(UI\Draw\Color `$color`)
public function setColor(int `$color`)
/* Inherited methods */
public function UI\Control::destroy()
public function UI\Control::disable()
public function UI\Control::enable()
public function UI\Control::getParent(): UI\Control
public function UI\Control::getTopLevel(): int
public function UI\Control::hide()
public function UI\Control::isEnabled(): bool
public function UI\Control::isVisible(): bool
public function UI\Control::setParent(UI\Control `$parent`)
public function UI\Control::show()
}

## Table of Contents

- UI\Controls\ColorButton::getColor — Get Color
- UI\Controls\ColorButton::onChange — Change Handler
- UI\Controls\ColorButton::setColor — Set Color

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open