label.go 475 B

1234567891011121314151617181920
  1. package widget
  2. // import "gitlab.com/beoran/ebsgo/zori/event"
  3. import . "gitlab.com/beoran/ebsgo/zori/types"
  4. // import _ "gitlab.com/beoran/ebsgo/zori/backend"
  5. // import "gitlab.com/beoran/ebsgo/zori/state"
  6. // import "gitlab.com/beoran/ebsgo/zori/style"
  7. /* Label widget. */
  8. type Label struct {
  9. * Captioned
  10. }
  11. func NewLabel(parent Widget, bounds * Box, text string) * Label {
  12. lab := &Label{}
  13. lab.Captioned = NewCaptioned(parent, bounds, text)
  14. return lab
  15. }