import { QIcon , QSize , QAbstractButtonSignals , QAbstractButton , } from '@nodegui/nodegui' ; import { PropSetters } from 'renderer/patchProp' ; import { ViewProps , viewPropsSetters } from '../View/VNView' ; internal export interface AbstractButtonProps extends ViewProps { /**
     * Sets the given text to the button (Used as an alternative to children). [QPushButton: setText](https://docs.nodegui.org/docs/api/QPushButton#buttonsettexttext)
     */ text ? : string ; /**
     * Sets an icon in the button. [QPushButton: setIcon](https://docs.nodegui.org/docs/api/QPushButton#buttonseticonicon)
     */ icon ? : QIcon ; /**
     * Sets an icon size in the button. [QPushButton: setIconSize](https://docs.nodegui.org/docs/api/QPushButton#buttonseticonsize)
     */ iconSize ? : QSize ; } export const abstractButtonPropSetters = { ... viewPropsSetters , text : ( widget , _ , nextValue ) => { widget . setText ( nextValue ) ; } , icon : ( widget , _ , nextValue ) => { widget . setIcon ( nextValue ) ; } , iconSize : ( widget , _ , nextValue ) => { widget . setIconSize ( nextValue ) ; } , } ;