style.go 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright 2016 The G3N Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package gui
  5. import (
  6. "github.com/g3n/engine/text"
  7. )
  8. // Style contains the styles for all GUI elements
  9. type Style struct {
  10. Font *text.Font
  11. FontIcon *text.Font
  12. Button ButtonStyles
  13. CheckRadio CheckRadioStyles
  14. Edit EditStyles
  15. ScrollBar ScrollBarStyles
  16. Slider SliderStyles
  17. Splitter SplitterStyles
  18. Window WindowStyles
  19. ItemScroller ItemScrollerStyles
  20. Scroller ScrollerStyle
  21. List ListStyles
  22. DropDown DropDownStyles
  23. Folder FolderStyles
  24. Tree TreeStyles
  25. ControlFolder ControlFolderStyles
  26. Menu MenuStyles
  27. Table TableStyles
  28. ImageButton ImageButtonStyles
  29. TabBar TabBarStyles
  30. }
  31. // States that a GUI element can be in
  32. const (
  33. StyleOver = iota + 1
  34. StyleFocus
  35. StyleDisabled
  36. StyleNormal
  37. StyleDef
  38. )