(button: IconButton)
| 79 | } |
| 80 | |
| 81 | addButton(button: IconButton) { |
| 82 | if (!this.buttonsArea) { |
| 83 | this.buttonsArea = gui.Container.create(); |
| 84 | this.buttonsArea.setStyle({ |
| 85 | height: '100%', // take full vertical space |
| 86 | alignItems: 'flex-end', // buttons aligned to bottom |
| 87 | flexDirection: 'row', // horizontal layout |
| 88 | margin: 4, |
| 89 | marginLeft: 0, |
| 90 | }); |
| 91 | this.view.addChildView(this.buttonsArea); |
| 92 | } |
| 93 | this.buttons.push(button); |
| 94 | this.buttonsArea.addChildView(button.view); |
| 95 | } |
| 96 | |
| 97 | #onDraw(view, painter: gui.Painter) { |
| 98 | const bounds = Object.assign(view.getBounds(), {x: 0, y: 0}); |
no outgoing calls
no test coverage detected