示例#1
0
func newLabel(text string) Label {
	l := &label{
		controlSingleObject: newControlSingleObject(C.newLabel()),
	}
	l.SetText(text)
	return l
}
示例#2
0
func finishNewLabel(text string, standalone bool) *label {
	l := &label{
		_id:        C.newLabel(),
		standalone: standalone,
	}
	l.SetText(text)
	return l
}