LayoutEngine.h 557 B

12345678910111213141516171819
  1. #pragma once
  2. #include "../../../Include/RmlUi/Core/Types.h"
  3. namespace Rml {
  4. /**
  5. See the CSS glossary for terms used in the layout engine:
  6. https://www.w3.org/TR/css-display-3/#glossary
  7. */
  8. class LayoutEngine {
  9. public:
  10. /// Formats the contents for a root-level element, usually a document, or a replaced element with custom formatting.
  11. /// @param[in] element The element to lay out.
  12. /// @param[in] containing_block The size of the containing block.
  13. static void FormatElement(Element* element, Vector2f containing_block);
  14. };
  15. } // namespace Rml