Skip to main content

Module geometry

Module geometry 

Source
Expand description

Basic geometry primitives (LayoutPoint, LayoutSize, LayoutRect) for layout calculations, using isize coordinates (as opposed to the f32-based logical coordinates in core::geom).

Structs§

LayoutPoint
Only used for calculations: Point coordinate (x, y) in layout space.
LayoutRect
Only used for calculations: Rectangle (x, y, width, height) in layout space.
LayoutRectVec
LayoutRectVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
LayoutSize
Only used for calculations: Size (width, height) in layout space.

Enums§

LayoutRectVecDestructor
OptionLayoutPoint
OptionLayoutRect
OptionLayoutSize

Type Aliases§

LayoutRectVecDestructorType