SetBordersFrom sets this panel border sizes from the specified RectBounds pointer and recalculates the panel size
(src *RectBounds)
| 361 | // SetBordersFrom sets this panel border sizes from the specified |
| 362 | // RectBounds pointer and recalculates the panel size |
| 363 | func (p *Panel) SetBordersFrom(src *RectBounds) { |
| 364 | |
| 365 | p.borderSizes = *src |
| 366 | p.resize(p.calcWidth(), p.calcHeight(), true) |
| 367 | } |
| 368 | |
| 369 | // Borders returns this panel current border sizes |
| 370 | func (p *Panel) Borders() RectBounds { |
no test coverage detected