StringCache.cpp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*
  2. * This source file is part of RmlUi, the HTML/CSS Interface Middleware
  3. *
  4. * For the latest information, see http://github.com/mikke89/RmlUi
  5. *
  6. * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
  7. * Copyright (c) 2019 The RmlUi Team, and contributors
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in
  17. * all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. * THE SOFTWARE.
  26. *
  27. */
  28. #include "../../Include/RmlUi/Core/Types.h"
  29. #include "StringCache.h"
  30. namespace Rml {
  31. namespace Core {
  32. const String MARGIN_TOP = "margin-top";
  33. const String MARGIN_RIGHT = "margin-right";
  34. const String MARGIN_BOTTOM = "margin-bottom";
  35. const String MARGIN_LEFT = "margin-left";
  36. const String MARGIN = "margin";
  37. const String PADDING_TOP = "padding-top";
  38. const String PADDING_RIGHT = "padding-right";
  39. const String PADDING_BOTTOM = "padding-bottom";
  40. const String PADDING_LEFT = "padding-left";
  41. const String PADDING = "padding";
  42. const String BORDER_TOP_WIDTH = "border-top-width";
  43. const String BORDER_RIGHT_WIDTH = "border-right-width";
  44. const String BORDER_BOTTOM_WIDTH = "border-bottom-width";
  45. const String BORDER_LEFT_WIDTH = "border-left-width";
  46. const String BORDER_WIDTH = "border-width";
  47. const String BORDER_TOP_COLOR = "border-top-color";
  48. const String BORDER_RIGHT_COLOR = "border-right-color";
  49. const String BORDER_BOTTOM_COLOR = "border-bottom-color";
  50. const String BORDER_LEFT_COLOR = "border-left-color";
  51. const String BORDER_COLOR = "border-color";
  52. const String BORDER_TOP = "border-top";
  53. const String BORDER_RIGHT = "border-right";
  54. const String BORDER_BOTTOM = "border-bottom";
  55. const String BORDER_LEFT = "border-left";
  56. const String BORDER = "border";
  57. const String DISPLAY = "display";
  58. const String POSITION = "position";
  59. const String TOP = "top";
  60. const String RIGHT = "right";
  61. const String BOTTOM = "bottom";
  62. const String LEFT = "left";
  63. const String FLOAT = "float";
  64. const String CLEAR = "clear";
  65. const String Z_INDEX = "z-index";
  66. const String WIDTH = "width";
  67. const String MIN_WIDTH = "min-width";
  68. const String MAX_WIDTH = "max-width";
  69. const String HEIGHT = "height";
  70. const String MIN_HEIGHT = "min-height";
  71. const String MAX_HEIGHT = "max-height";
  72. const String LINE_HEIGHT = "line-height";
  73. const String VERTICAL_ALIGN = "vertical-align";
  74. const String OVERFLOW_X = "overflow-x";
  75. const String OVERFLOW_Y = "overflow-y";
  76. const String CLIP = "clip";
  77. const String VISIBILITY = "visibility";
  78. const String BACKGROUND_COLOR = "background-color";
  79. const String BACKGROUND = "background";
  80. const String COLOR = "color";
  81. const String IMAGE_COLOR = "image-color";
  82. const String FONT_FAMILY = "font-family";
  83. const String FONT_STYLE = "font-style";
  84. const String FONT_WEIGHT = "font-weight";
  85. const String FONT_SIZE = "font-size";
  86. const String FONT = "font";
  87. const String TEXT_ALIGN = "text-align";
  88. const String TEXT_DECORATION = "text-decoration";
  89. const String TEXT_TRANSFORM = "text-transform";
  90. const String WHITE_SPACE = "white-space";
  91. const String CURSOR = "cursor";
  92. const String DRAG = "drag";
  93. const String TAB_INDEX = "tab-index";
  94. const String SCROLLBAR_MARGIN = "scrollbar-margin";
  95. const String PERSPECTIVE = "perspective";
  96. const String PERSPECTIVE_ORIGIN = "perspective-origin";
  97. const String PERSPECTIVE_ORIGIN_X = "perspective-origin-x";
  98. const String PERSPECTIVE_ORIGIN_Y = "perspective-origin-y";
  99. const String TRANSFORM = "transform";
  100. const String TRANSFORM_ORIGIN = "transform-origin";
  101. const String TRANSFORM_ORIGIN_X = "transform-origin-x";
  102. const String TRANSFORM_ORIGIN_Y = "transform-origin-y";
  103. const String TRANSFORM_ORIGIN_Z = "transform-origin-z";
  104. const String NONE = "none";
  105. const String TRANSITION = "transition";
  106. const String ANIMATION = "animation";
  107. const String KEYFRAMES = "keyframes";
  108. const String OPACITY = "opacity";
  109. const String POINTER_EVENTS = "pointer-events";
  110. const String FILL_IMAGE = "fill-image";
  111. const String MOUSEDOWN = "mousedown";
  112. const String MOUSESCROLL = "mousescroll";
  113. const String MOUSEOVER = "mouseover";
  114. const String MOUSEOUT = "mouseout";
  115. const String FOCUS = "focus";
  116. const String BLUR = "blur";
  117. const String KEYDOWN = "keydown";
  118. const String MOUSEUP = "mouseup";
  119. const String CLICK = "click";
  120. const String DRAGSTART = "dragstart";
  121. const String DRAGOVER = "dragover";
  122. const String LOAD = "load";
  123. const String UNLOAD = "unload";
  124. const String KEYUP = "keyup";
  125. const String TEXTINPUT = "textinput";
  126. const String MOUSEMOVE = "mousemove";
  127. const String DRAGMOVE = "dragmove";
  128. const String DBLCLICK = "dblclick";
  129. const String DRAGDROP = "dragdrop";
  130. const String DRAGOUT = "dragout";
  131. const String DRAGEND = "dragend";
  132. const String RESIZE = "resize";
  133. const String ANIMATIONEND = "animationend";
  134. const String TRANSITIONEND = "transitionend";
  135. }
  136. }