pub struct Band {
pub height: f32,
pub controls: Vec<Control>,
pub visible: Option<String>,
pub page_break_before: bool,
pub page_break_after: bool,
pub keep_with_next: bool,
pub odd_style: Option<String>,
pub even_style: Option<String>,
}Expand description
A horizontal strip of the page holding controls.
Fields§
§height: f32Height in points before any control grows.
controls: Vec<Control>The controls, positioned relative to the band’s top-left corner.
visible: Option<String>The band is left out when this is false.
page_break_before: boolStarts a new page before the band.
page_break_after: boolStarts a new page after the band.
keep_with_next: boolKeeps the band on the same page as the band that follows it (headers).
odd_style: Option<String>Style name applied to odd rows of a detail band (1st, 3rd…).
even_style: Option<String>Style name applied to even rows of a detail band.
Implementations§
Source§impl Band
impl Band
Sourcepub fn keep_with_next(self) -> Self
pub fn keep_with_next(self) -> Self
Keeps the band on the page of the band after it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Band
impl<'de> Deserialize<'de> for Band
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Band
Auto Trait Implementations§
impl Freeze for Band
impl RefUnwindSafe for Band
impl Send for Band
impl Sync for Band
impl Unpin for Band
impl UnsafeUnpin for Band
impl UnwindSafe for Band
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