Beispiel #1
0
func newWindow() *window {
	w := &window{
		BaseView: tuikit.NewBaseView(),
	}
	w.SetUpdateChildrenRect(w.updateChildrenRect)
	return w
}
Beispiel #2
0
func newWindow() *window {
	w := &window{
		BaseView:  tuikit.NewBaseView(),
		userLabel: tuikit.NewTextView(),
		user:      tuikit.NewTextView(),
		sysLabel:  tuikit.NewTextView(),
		sys:       tuikit.NewTextView(),
		idleLabel: tuikit.NewTextView(),
		idle:      tuikit.NewTextView(),
	}
	w.userLabel.SetText("User: "******"System: ")
	w.idleLabel.SetText("Idle: ")
	w.SetUpdateChildrenRect(w.updateChildrenRect)
	return w
}