AttribCheckResizeBorders checks and converts attribute with list of window resizable borders
(b *Builder, am map[string]interface{}, fname string)
| 681 | |
| 682 | // AttribCheckResizeBorders checks and converts attribute with list of window resizable borders |
| 683 | func AttribCheckResizeBorders(b *Builder, am map[string]interface{}, fname string) error { |
| 684 | |
| 685 | // If attribute not found, ignore |
| 686 | v := am[fname] |
| 687 | if v == nil { |
| 688 | return nil |
| 689 | } |
| 690 | |
| 691 | // Attribute must be string |
| 692 | vs, ok := v.(bool) |
| 693 | if !ok { |
| 694 | return b.err(am, fname, "Invalid resizable attribute") |
| 695 | } |
| 696 | |
| 697 | am[fname] = vs |
| 698 | return nil |
| 699 | } |
| 700 | |
| 701 | // AttribCheckEdge checks and converts attribute with name of layout edge |
| 702 | func AttribCheckEdge(b *Builder, am map[string]interface{}, fname string) error { |