pub struct LayoutGeometry {Show 87 fields
pub action_first_indent: f32,
pub cold_opening_first_indent: f32,
pub new_act_first_indent: f32,
pub end_of_act_first_indent: f32,
pub dual_dialogue_left_first_indent: f32,
pub dual_dialogue_right_first_indent: f32,
pub dual_dialogue_left_character_first_indent: f32,
pub dual_dialogue_left_parenthetical_first_indent: f32,
pub dual_dialogue_right_character_first_indent: f32,
pub dual_dialogue_right_parenthetical_first_indent: f32,
pub character_first_indent: f32,
pub dialogue_first_indent: f32,
pub parenthetical_first_indent: f32,
pub transition_first_indent: f32,
pub lyric_first_indent: f32,
pub scene_heading_left: f32,
pub scene_heading_right: f32,
pub scene_heading_first_indent: f32,
pub action_left: f32,
pub action_right: f32,
pub cold_opening_left: f32,
pub cold_opening_right: f32,
pub new_act_left: f32,
pub new_act_right: f32,
pub end_of_act_left: f32,
pub end_of_act_right: f32,
pub dual_dialogue_left_left: f32,
pub dual_dialogue_left_right: f32,
pub dual_dialogue_right_left: f32,
pub dual_dialogue_right_right: f32,
pub dual_dialogue_left_character_left: f32,
pub dual_dialogue_left_character_right: f32,
pub dual_dialogue_left_parenthetical_left: f32,
pub dual_dialogue_left_parenthetical_right: f32,
pub dual_dialogue_right_character_left: f32,
pub dual_dialogue_right_character_right: f32,
pub dual_dialogue_right_parenthetical_left: f32,
pub dual_dialogue_right_parenthetical_right: f32,
pub character_left: f32,
pub character_right: f32,
pub dialogue_left: f32,
pub dialogue_right: f32,
pub parenthetical_left: f32,
pub parenthetical_right: f32,
pub transition_left: f32,
pub transition_right: f32,
pub lyric_left: f32,
pub lyric_right: f32,
pub cpi: f32,
pub scene_number_left: f32,
pub scene_number_right: f32,
pub action_alignment: Alignment,
pub cold_opening_alignment: Alignment,
pub new_act_alignment: Alignment,
pub end_of_act_alignment: Alignment,
pub scene_heading_alignment: Alignment,
pub character_alignment: Alignment,
pub dialogue_alignment: Alignment,
pub parenthetical_alignment: Alignment,
pub transition_alignment: Alignment,
pub lyric_alignment: Alignment,
pub action_spacing_before: f32,
pub cold_opening_spacing_before: f32,
pub new_act_spacing_before: f32,
pub end_of_act_spacing_before: f32,
pub scene_heading_spacing_before: f32,
pub character_spacing_before: f32,
pub transition_spacing_before: f32,
pub lyric_spacing_before: f32,
pub action_line_height: f32,
pub cold_opening_line_height: f32,
pub new_act_line_height: f32,
pub end_of_act_line_height: f32,
pub scene_heading_line_height: f32,
pub character_line_height: f32,
pub dialogue_line_height: f32,
pub parenthetical_line_height: f32,
pub transition_line_height: f32,
pub lyric_line_height: f32,
pub line_height: f32,
pub page_width: f32,
pub page_height: f32,
pub top_margin: f32,
pub bottom_margin: f32,
pub header_margin: f32,
pub footer_margin: f32,
pub lines_per_page: f32,
}Fields§
§action_first_indent: f32§cold_opening_first_indent: f32§new_act_first_indent: f32§end_of_act_first_indent: f32§dual_dialogue_left_first_indent: f32§dual_dialogue_right_first_indent: f32§dual_dialogue_left_character_first_indent: f32§dual_dialogue_left_parenthetical_first_indent: f32§dual_dialogue_right_character_first_indent: f32§dual_dialogue_right_parenthetical_first_indent: f32§character_first_indent: f32§dialogue_first_indent: f32§parenthetical_first_indent: f32§transition_first_indent: f32§lyric_first_indent: f32§scene_heading_left: f32§scene_heading_right: f32§scene_heading_first_indent: f32§action_left: f32§action_right: f32§cold_opening_left: f32§cold_opening_right: f32§new_act_left: f32§new_act_right: f32§end_of_act_left: f32§end_of_act_right: f32§dual_dialogue_left_left: f32§dual_dialogue_left_right: f32§dual_dialogue_right_left: f32§dual_dialogue_right_right: f32§dual_dialogue_left_character_left: f32§dual_dialogue_left_character_right: f32§dual_dialogue_left_parenthetical_left: f32§dual_dialogue_left_parenthetical_right: f32§dual_dialogue_right_character_left: f32§dual_dialogue_right_character_right: f32§dual_dialogue_right_parenthetical_left: f32§dual_dialogue_right_parenthetical_right: f32§character_left: f32§character_right: f32§dialogue_left: f32§dialogue_right: f32§parenthetical_left: f32§parenthetical_right: f32§transition_left: f32§transition_right: f32§lyric_left: f32§lyric_right: f32§cpi: f32§scene_number_left: f32§scene_number_right: f32§action_alignment: Alignment§cold_opening_alignment: Alignment§new_act_alignment: Alignment§end_of_act_alignment: Alignment§scene_heading_alignment: Alignment§character_alignment: Alignment§dialogue_alignment: Alignment§parenthetical_alignment: Alignment§transition_alignment: Alignment§lyric_alignment: Alignment§action_spacing_before: f32§cold_opening_spacing_before: f32§new_act_spacing_before: f32§end_of_act_spacing_before: f32§scene_heading_spacing_before: f32§character_spacing_before: f32§transition_spacing_before: f32§lyric_spacing_before: f32§action_line_height: f32§cold_opening_line_height: f32§new_act_line_height: f32§end_of_act_line_height: f32§scene_heading_line_height: f32§character_line_height: f32§dialogue_line_height: f32§parenthetical_line_height: f32§transition_line_height: f32§lyric_line_height: f32§line_height: f32§page_width: f32§page_height: f32§top_margin: f32§bottom_margin: f32§header_margin: f32§lines_per_page: f32Implementations§
Source§impl LayoutGeometry
impl LayoutGeometry
pub fn from_fdx_settings(settings: &FdxExtractedSettings) -> Self
pub fn calculate_usable_height_points(&self) -> f32
pub fn calculate_line_step(&self) -> f32
Trait Implementations§
Source§impl Clone for LayoutGeometry
impl Clone for LayoutGeometry
Source§fn clone(&self) -> LayoutGeometry
fn clone(&self) -> LayoutGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutGeometry
impl Debug for LayoutGeometry
Source§impl Default for LayoutGeometry
impl Default for LayoutGeometry
Source§impl PartialEq for LayoutGeometry
impl PartialEq for LayoutGeometry
impl StructuralPartialEq for LayoutGeometry
Auto Trait Implementations§
impl Freeze for LayoutGeometry
impl RefUnwindSafe for LayoutGeometry
impl Send for LayoutGeometry
impl Sync for LayoutGeometry
impl Unpin for LayoutGeometry
impl UnsafeUnpin for LayoutGeometry
impl UnwindSafe for LayoutGeometry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.