(client *ClientImpl)
| 117 | } |
| 118 | |
| 119 | func MakeRoot(client *ClientImpl) *RootElem { |
| 120 | return &RootElem{ |
| 121 | Root: nil, |
| 122 | CFuncs: make(map[string]any), |
| 123 | CompMap: make(map[string]*ComponentImpl), |
| 124 | Atoms: make(map[string]genAtom), |
| 125 | Client: client, |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | func (r *RootElem) RegisterAtom(name string, atom genAtom) { |
| 130 | r.atomLock.Lock() |