MCPcopy
hub / github.com/lxn/walk / MustRegisterProperty

Method MustRegisterProperty

window.go:736–745  ·  view source on GitHub ↗
(name string, property Property)

Source from the content-addressed store, hash-verified

734}
735
736func (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
747func (wb *WindowBase) Property(name string) Property {
748 return wb.name2Property[name]

Callers 15

NewDateLabelFunction · 0.80
NewGroupBoxFunction · 0.80
NewRadioButtonFunction · 0.80
initMethod · 0.80
initWindowWithCfgFunction · 0.80
NewNumberEditFunction · 0.80
newLineEditFunction · 0.80
NewLabelWithStyleFunction · 0.80
NewTableViewWithCfgFunction · 0.80
NewTextLabelWithStyleFunction · 0.80
initMethod · 0.80
NewLinkLabelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected