style_block.go 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  16. type Padding struct {
  17. Bottom int
  18. Left int
  19. Top int
  20. Right int
  21. }
  22. type Border struct {
  23. ThicknessBottom int
  24. ThicknessLeft int
  25. ThicknessTop int
  26. ThicknessRight int
  27. RadiusBottomLeft int
  28. RadiusTopLeft int
  29. RadiusTopRight int
  30. RadiusBottomRight int
  31. Color Color
  32. }
  33. type Block struct {
  34. Display int
  35. Position int
  36. Float int
  37. Width int
  38. Height int
  39. Bottom int
  40. Left int
  41. Top int
  42. Right int
  43. Margin Margin
  44. Padding Padding
  45. Border Border
  46. }