style.go 879 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. // All styles
  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. Scroller ScrollerStyles
  20. List ListStyles
  21. DropDown DropDownStyles
  22. Folder FolderStyles
  23. Tree TreeStyles
  24. ControlFolder ControlFolderStyles
  25. Menu MenuStyles
  26. Table TableStyles
  27. ImageButton ImageButtonStyles
  28. TabBar TabBarStyles
  29. }
  30. const (
  31. StyleOver = iota + 1
  32. StyleFocus
  33. StyleDisabled
  34. StyleNormal
  35. StyleDef
  36. )