Module simple_layout::prelude

source ·

Structs

Traits

  • Defines any Layoutable element (anything that can be layouted)

Functions

  • Generate a border around a layouted element
  • Get a callback from the layout process about the final placement of the containing element. So you can map a touched point onto the correct element
  • Arrange a layoutable into the center of its available space
  • Arrange a layoutable into the right middle of its available space
  • remove the maximum size constraints (set width and height to u32::MAX)
  • Let the containing element expand horizontally
  • Let the containing element expand vertically
  • Arguments
  • Arrange a layoutable into the top center of its available space
  • Updates the placement onto a Option
  • Generates a Layoutable text around a owned (possible generated) string
  • Adjust placement of a component by adding/removing additional offsets
  • Draws a simple scale consisting of 2x2 Dots onto a given space.
  • Arrange a layoutable into the bottom center of its available space
  • Stack multiple layout elements vertically
  • Arrange a layoutable into the left middle of its available space