import PropTypes from 'prop-types' ; import Gtk from '../gtk' ; import Element from './Element' ; export default class Notebook extends Element { static propTypes = { enablePopup : PropTypes . bool , groupName : PropTypes . string , page : PropTypes . number , scrollable : PropTypes . bool , showBorder : PropTypes . bool , showTabs : PropTypes . bool , tabPos : PropTypes . object , borderWidth : PropTypes . number , child : PropTypes . object , resizeMode : PropTypes . object } ; static defaultProps = { enablePopup : null , groupName : null , page : null , scrollable : null , showBorder : null , showTabs : null , tabPos : null , borderWidth : null , child : null , resizeMode : null } ; constructor ( props = { } ) { super ( new Gtk . Notebook ( ) , props , { isContainer : true } ) ; } appendPage ( child , tabLabel ) { return this . node . appendPage ( child , tabLabel ) ; } appendPageMenu ( child , tabLabel , menuLabel ) { return this . node . appendPageMenu ( child , tabLabel , menuLabel ) ; } detachTab ( child ) { return this . node . detachTab ( child ) ; } insertPage ( child , tabLabel , position ) { return this . node . insertPage ( child , tabLabel , position ) ; } insertPageMenu ( child , tabLabel , menuLabel , position ) { return this . node . insertPageMenu ( child , tabLabel , menuLabel , position ) ; } nextPage ( ) { return this . node . nextPage ( ) ; } pageNum ( child ) { return this . node . pageNum ( child ) ; } popupDisable ( ) { return this . node . popupDisable ( ) ; } popupEnable ( ) { return this . node . popupEnable ( ) ; } prependPage ( child , tabLabel ) { return this . node . prependPage ( child , tabLabel ) ; } prependPageMenu ( child , tabLabel , menuLabel ) { return this . node . prependPageMenu ( child , tabLabel , menuLabel ) ; } prevPage ( ) { return this . node . prevPage ( ) ; } removePage ( pageNum ) { return this . node . removePage ( pageNum ) ; } reorderChild ( child , position ) { return this . node . reorderChild ( child , position ) ; } 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 ( ) ; } }