Module webrender::util [] [src]

Reexports

use api::BorderRadius;
use api::DeviceIntPoint;
use api::DeviceIntRect;
use api::DeviceIntSize;
use api::DevicePixelScale;
use api::DevicePoint;
use api::DeviceRect;
use api::DeviceSize;
use api::LayerPoint;
use api::LayerRect;
use api::LayerSize;
use api::LayerToWorldTransform;
use api::LayerTransform;
use api::LayerVector2D;
use api::WorldRect;
use euclid::Point2D;
use euclid::Rect;
use euclid::Size2D;
use euclid::TypedPoint2D;
use euclid::TypedRect;
use euclid::TypedSize2D;
use euclid::TypedTransform2D;
use euclid::TypedTransform3D;
use num_traits::Zero;
use std::i32;
use std::f32;

Enums

TransformOrOffset

An enum that tries to avoid expensive transformation matrix calculations when possible when dealing with non-perspective axis-aligned transformations.

TransformedRectKind

Constants

NEARLY_ZERO

Traits

MatrixHelpers
MaxRect
RectHelpers

Functions

_subtract_rect
calculate_screen_bounding_rect
extract_inner_rect_impl
extract_inner_rect_safe

Return an aligned rectangle that is inside the clip region and doesn't intersect any of the bounding rectangles of the rounded corners.

lerp
pack_as_float
rect_from_points_f
rect_is_empty
recycle_vec

Consumes the old vector and returns a new one that may reuse the old vector's allocated memory.