BuildParams builds and returns a pointer to DockLayoutParams with the specified attributes
(b *Builder, am map[string]interface{})
| 190 | |
| 191 | // BuildParams builds and returns a pointer to DockLayoutParams with the specified attributes |
| 192 | func (bl *BuilderLayoutDock) BuildParams(b *Builder, am map[string]interface{}) (interface{}, error) { |
| 193 | |
| 194 | edge := am[AttribEdge] |
| 195 | if edge == nil { |
| 196 | return nil, b.err(am, AttribEdge, "Edge name not found") |
| 197 | } |
| 198 | params := DockLayoutParams{Edge: edge.(int)} |
| 199 | return ¶ms, nil |
| 200 | } |