// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BBox {
    /// Left coordinate of the bounding box, relative to page width (0.0 = left edge, 1.0 = right edge).
    pub left: f64,
    /// Top coordinate of the bounding box, relative to page height (0.0 = top edge, 1.0 = bottom edge).
    pub top: f64,
    /// Width of the bounding box, relative to page width (0.0–1.0).
    pub width: f64,
    /// Height of the bounding box, relative to page height (0.0–1.0).
    pub height: f64,
    /// 1-based index of the page where this field appears.
    pub page: i64,
}
impl BBox {
    /// Construct a new `BBox` with the required fields set.
    #[allow(deprecated)]
    pub fn new(left: f64, top: f64, width: f64, height: f64, page: i64) -> Self {
        Self {
            left,
            top,
            width,
            height,
            page,
        }
    }
}
