style_block.go 810 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package ultraviolet
  2. const DISPLAY_BLOCK = 0
  3. const DISPLAY_INLINE = 1
  4. const POSITION_FIXED = 1
  5. const POSITION_RELATIVE = 2
  6. const POSITION_ABSOLUTE = 3
  7. const FLOAT_LEFT = 1
  8. const FLOAT_RIGHT = 2
  9. const FLOAT_CLEAR = 3
  10. type Margin struct {
  11. Bottom int
  12. Left int
  13. Top int
  14. Right int
  15. Center bool
  16. }
  17. type Padding struct {
  18. Bottom int
  19. Left int
  20. Top int
  21. Right int
  22. }
  23. type Border struct {
  24. ThicknessBottom int
  25. ThicknessLeft int
  26. ThicknessTop int
  27. ThicknessRight int
  28. RadiusBottomLeft int
  29. RadiusTopLeft int
  30. RadiusTopRight int
  31. RadiusBottomRight int
  32. Color Color
  33. }
  34. type Block struct {
  35. Display int
  36. Position int
  37. Float int
  38. Width int
  39. Height int
  40. Bottom int
  41. Left int
  42. Top int
  43. Right int
  44. Margin Margin
  45. Padding Padding
  46. Border Border
  47. }