Update code for layouts, objects

This commit is contained in:
2024-07-21 11:48:28 -04:00
parent 9077015db6
commit 6ca6771fc6
26 changed files with 447 additions and 389 deletions

View File

@@ -10,8 +10,8 @@ type Label struct {
// NewLabel creates a new text label.
func NewLabel (text string) *Label {
this := &Label { TextBox: tomo.NewTextBox() }
this.SetRole(tomo.R("objects", "Label", ""))
this.SetRole(tomo.R("objects", "Label"))
this.SetText(text)
this.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
this.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle))
return this
}