Skip to main content

Crate ribir_types

Crate ribir_types 

Source

Structs§

BoxClamp
Boundary constraints for size-based layout.
Color
LightnessTone
Describe the light tone of a color, should between [0, 1.0], 0.0 gives absolute black and 1.0 give the brightest white.
LogicUnit
The tag for logic unit system to prevent mixing values from different system.
PhysicUnit
The tag for device unit system to prevent mixing values from different system.

Constants§

INFINITY_SIZE
ZERO_SIZE

Traits§

Zero

Functions§

rect
Shorthand for Rect::new(Point2D::new(x, y), Size2D::new(w, h)).
rect_corners
Return the four corners of a rectangle: [left-top, right-top, right-bottom, left-bottom]
transform_to_device_rect
Apply the transform to the rect and return the new rect as device unit.

Type Aliases§

Angle
Box2D
DevicePoint
DeviceRect
DeviceSize
DeviceVector
Point
Rect
SideOffsets2D
Size
Transform
Vector