caption.go 418 B

123456789101112131415161718192021
  1. package widget
  2. import . "gitlab.com/beoran/ebsgo/zori/types"
  3. // import _ "gitlab.com/beoran/ebsgo/zori/backend"
  4. // import "gitlab.com/beoran/ebsgo/zori/state"
  5. import "gitlab.com/beoran/ebsgo/zori/style"
  6. /* Caption helper struct for use by widgets that have captions. */
  7. type Caption struct {
  8. Label string
  9. style.Theme
  10. Box
  11. }
  12. /* Widget with a caption. */
  13. type Captioned struct {
  14. Basic
  15. Caption
  16. }