# ColorButton Control

(PHP 7, UI 0.9.9)

## Introduction

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

## Synopsis de la classe

UI\Controls\ColorButton extends UI\Control {
/* Méthodes */
public getColor ( void ) : UI\Color
protected onChange ( void )
public setColor ( UI\Draw\Color `$color` )
public setColor ( int `$color` )
/* Méthodes héritées */
public UI\Control::destroy ( void )
public UI\Control::disable ( void )
public UI\Control::enable ( void )
public UI\Control::getParent ( void ) : UI\Control
public UI\Control::getTopLevel ( void ) : int
public UI\Control::hide ( void )
public UI\Control::isEnabled ( void ) : bool
public UI\Control::isVisible ( void ) : bool
public UI\Control::setParent ( UI\Control `$parent` )
public UI\Control::show ( void )
}

## Sommaire

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