tree: f1b2b04433acf64b7122fedef2138fca9fa51582 [path history] [tgz]
  1. patches/
  2. src/
  3. .android-checksum.json
  4. .cargo-checksum.json
  5. Android.bp
  6. Cargo.lock
  7. Cargo.toml
  8. cargo_embargo.json
  9. LICENSE
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. README.md
crates/dc_layout/README.md

dc_layout crate

This crate provides layout functionalities for DesignCompose.

Functionality

The dc_layout crate is responsible for:

  • Calculating the position and size of elements in a design.
  • Managing the layout of views and components.
  • Converting design specifications into a format that can be used for rendering.

Usage

This crate is primarily used internally by DesignCompose for calculating layout.

Dependencies

This crate depends on the following crates:

  • dc_bundle: Used to hold the design document structures of a design.
  • taffy: Used to perform the layout computation.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.