(name string, property Property)
| 734 | } |
| 735 | |
| 736 | func (wb *WindowBase) MustRegisterProperty(name string, property Property) { |
| 737 | if property == nil { |
| 738 | panic("property must not be nil") |
| 739 | } |
| 740 | if wb.name2Property[name] != nil { |
| 741 | panic("property already registered") |
| 742 | } |
| 743 | |
| 744 | wb.name2Property[name] = property |
| 745 | } |
| 746 | |
| 747 | func (wb *WindowBase) Property(name string) Property { |
| 748 | return wb.name2Property[name] |
no outgoing calls
no test coverage detected