pub struct DashboardLayout { /* private fields */ }Expand description
Main layout manager for dashboard components
Implementations§
Source§impl DashboardLayout
impl DashboardLayout
Sourcepub fn new(config: DashboardConfig) -> Self
pub fn new(config: DashboardConfig) -> Self
Create a new dashboard layout
Sourcepub fn calculate_content_area(
&self,
page_bounds: (f64, f64, f64, f64),
) -> (f64, f64, f64, f64)
pub fn calculate_content_area( &self, page_bounds: (f64, f64, f64, f64), ) -> (f64, f64, f64, f64)
Calculate the content area based on page bounds and configuration
Sourcepub fn calculate_positions(
&self,
components: &[Box<dyn DashboardComponent>],
content_area: (f64, f64, f64, f64),
) -> Result<Vec<ComponentPosition>, PdfError>
pub fn calculate_positions( &self, components: &[Box<dyn DashboardComponent>], content_area: (f64, f64, f64, f64), ) -> Result<Vec<ComponentPosition>, PdfError>
Calculate positions for all components in the dashboard
Sourcepub fn get_stats(
&self,
components: &[Box<dyn DashboardComponent>],
) -> LayoutStats
pub fn get_stats( &self, components: &[Box<dyn DashboardComponent>], ) -> LayoutStats
Get layout statistics
Trait Implementations§
Source§impl Clone for DashboardLayout
impl Clone for DashboardLayout
Source§fn clone(&self) -> DashboardLayout
fn clone(&self) -> DashboardLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DashboardLayout
impl RefUnwindSafe for DashboardLayout
impl Send for DashboardLayout
impl Sync for DashboardLayout
impl Unpin for DashboardLayout
impl UnwindSafe for DashboardLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more