style.go 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. Label LabelStyle
  13. Button ButtonStyles
  14. CheckRadio CheckRadioStyles
  15. Edit EditStyles
  16. ScrollBar ScrollBarStyles
  17. Slider SliderStyles
  18. Splitter SplitterStyles
  19. Window WindowStyles
  20. ItemScroller ItemScrollerStyles
  21. Scroller ScrollerStyle
  22. List ListStyles
  23. DropDown DropDownStyles
  24. Folder FolderStyles
  25. Tree TreeStyles
  26. ControlFolder ControlFolderStyles
  27. Menu MenuStyles
  28. Table TableStyles
  29. ImageButton ImageButtonStyles
  30. TabBar TabBarStyles
  31. }
  32. // States that a GUI element can be in
  33. const (
  34. StyleOver = iota + 1
  35. StyleFocus
  36. StyleDisabled
  37. StyleNormal
  38. StyleDef
  39. )