Skip to main content

Crate fop_types

Crate fop_types 

Source
Expand description

Core types for Apache FOP Rust implementation

This crate provides foundational types used throughout the FOP system:

  • Length: Dimensional measurements with various units
  • Color: RGBA color values
  • Geometry: Points, rectangles, and sizes
  • Errors: Base error types

Re-exports§

pub use color::Color;
pub use error::FopError;
pub use error::Location;
pub use error::Result;
pub use expression::EvalContext;
pub use expression::Expression;
pub use font_metrics::FontMetrics;
pub use font_metrics::FontRegistry;
pub use geometry::Point;
pub use geometry::Rect;
pub use geometry::Size;
pub use gradient::ColorStop;
pub use gradient::Gradient;
pub use length::FontContext;
pub use length::Length;
pub use length::LengthUnit;
pub use percentage::Percentage;

Modules§

color
Color type for RGBA color values
error
Error types for FOP
expression
Expression type for CSS calc() expressions in property values
font_metrics
Font metrics for text measurement
geometry
Geometry types for positions, sizes, and rectangles
gradient
Gradient types for backgrounds
length
Length type for dimensional measurements
percentage
Percentage type for relative values