(widget: RNFontDialog, newProps: FontDialogProps, oldProps: FontDialogProps)
| 11 | } |
| 12 | |
| 13 | function setFontDialogProps(widget: RNFontDialog, newProps: FontDialogProps, oldProps: FontDialogProps) { |
| 14 | const setter: FontDialogProps = { |
| 15 | set currentFont(currentFont: QFont) { |
| 16 | widget.setCurrentFont(currentFont); |
| 17 | }, |
| 18 | set option({ option, on }: DialogOption<FontDialogOption>) { |
| 19 | widget.setOption(option, on); |
| 20 | }, |
| 21 | set options(options: FontDialogOption) { |
| 22 | widget.setOptions(options); |
| 23 | }, |
| 24 | }; |
| 25 | Object.assign(setter, newProps); |
| 26 | setDialogProps(widget, newProps, oldProps); |
| 27 | } |
| 28 | |
| 29 | export class RNFontDialog extends QFontDialog implements RNWidget { |
| 30 | setProps(newProps: FontDialogProps, oldProps: FontDialogProps): void { |
no test coverage detected