MCPcopy Index your code
hub / github.com/g3n/engine / AttribCheckResizeBorders

Function AttribCheckResizeBorders

gui/builder.go:683–699  ·  view source on GitHub ↗

AttribCheckResizeBorders checks and converts attribute with list of window resizable borders

(b *Builder, am map[string]interface{}, fname string)

Source from the content-addressed store, hash-verified

681
682// AttribCheckResizeBorders checks and converts attribute with list of window resizable borders
683func 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
702func AttribCheckEdge(b *Builder, am map[string]interface{}, fname string) error {

Callers

nothing calls this directly

Calls 1

errMethod · 0.80

Tested by

no test coverage detected