import PropTypes from 'prop-types' ; import Gtk from '../gtk' ; import Element from './Element' ; export default class ColorButton extends Element { static propTypes = { alpha : PropTypes . number , color : PropTypes . object , rgba : PropTypes . object , showEditor : PropTypes . bool , title : PropTypes . string , useAlpha : PropTypes . bool , alwaysShowImage : PropTypes . bool , image : PropTypes . object , imagePosition : PropTypes . object , label : PropTypes . string , relief : PropTypes . object , useStock : PropTypes . bool , useUnderline : PropTypes . bool , xalign : PropTypes . number , yalign : PropTypes . number , borderWidth : PropTypes . number , child : PropTypes . object , resizeMode : PropTypes . object } ; static defaultProps = { alpha : null , color : null , rgba : null , showEditor : null , title : null , useAlpha : null , alwaysShowImage : null , image : null , imagePosition : null , label : null , relief : null , useStock : null , useUnderline : null , xalign : null , yalign : null , borderWidth : null , child : null , resizeMode : null } ; constructor ( props = { } ) { super ( new Gtk . ColorButton ( ) , props , { isContainer : true } ) ; } clicked ( ) { return this . node . clicked ( ) ; } enter ( ) { return this . node . enter ( ) ; } leave ( ) { return this . node . leave ( ) ; } pressed ( ) { return this . node . pressed ( ) ; } released ( ) { return this . node . released ( ) ; } add ( widget ) { return this . node . add ( widget ) ; } addWithProperties ( widget , firstPropName , ___ ) { return this . node . addWithProperties ( widget , firstPropName , ___ ) ; } checkResize ( ) { return this . node . checkResize ( ) ; } childGet ( child , firstPropName , ___ ) { return this . node . childGet ( child , firstPropName , ___ ) ; } childGetProperty ( child , propertyName , value ) { return this . node . childGetProperty ( child , propertyName , value ) ; } childGetValist ( child , firstPropertyName , varArgs ) { return this . node . childGetValist ( child , firstPropertyName , varArgs ) ; } childNotify ( child , childProperty ) { return this . node . childNotify ( child , childProperty ) ; } childNotifyByPspec ( child , pspec ) { return this . node . childNotifyByPspec ( child , pspec ) ; } childSet ( child , firstPropName , ___ ) { return this . node . childSet ( child , firstPropName , ___ ) ; } childSetProperty ( child , propertyName , value ) { return this . node . childSetProperty ( child , propertyName , value ) ; } childSetValist ( child , firstPropertyName , varArgs ) { return this . node . childSetValist ( child , firstPropertyName , varArgs ) ; } childType ( ) { return this . node . childType ( ) ; } forall ( callback , callbackData ) { return this . node . forall ( callback , callbackData ) ; } foreach ( callback , callbackData ) { return this . node . foreach ( callback , callbackData ) ; } propagateDraw ( child , cr ) { return this . node . propagateDraw ( child , cr ) ; } remove ( widget ) { return this . node . remove ( widget ) ; } resizeChildren ( ) { return this . node . resizeChildren ( ) ; } unsetFocusChain ( ) { return this . node . unsetFocusChain ( ) ; } }