Docs.rs
yog-api-0.10.0
yog-api 0.10.0
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
crates.io
Source
Owners
F000NKKK
Dependencies
yog-abi ^0.5
normal
yog-book ^0.8
normal
yog-command ^0.1
normal
yog-config ^0.1
normal
yog-core ^0.1
normal
yog-entity ^0.1
normal
yog-event ^0.1
normal
yog-gfx ^0.4
normal
yog-logging ^0.1
normal
yog-network ^0.1
normal
yog-player ^0.1
normal
yog-registry ^0.6
normal
yog-storage ^0.1
normal
yog-ui ^0.3
normal
yog-world ^0.1
normal
Versions
94.44%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module layout
yog_api
0.10.0
Module layout
Module Items
Structs
Enums
Functions
In yog_
api::
ui
yog_api
::
ui
Module
layout
Copy item path
Source
Expand description
Flexbox-inspired layout engine.
Structs
§
Layout
Node
Computed layout node — positions are absolute screen coordinates.
Rect
Position + size rectangle.
Size
2D size in logical pixels.
Enums
§
Align
Cross-axis alignment.
FlexDir
Layout direction for flex containers.
Functions
§
compute
Recursively compute layout for the widget tree inside given screen bounds.
hit_
test
Find the deepest clickable node at
(mx, my)
.