pub struct PageSetup {Show 14 fields
pub canvas_mm: [f64; 2],
pub resolution: f64,
pub trim_mm: [f64; 2],
pub bleed_mm: f64,
pub basic_mm: [f64; 2],
pub basic_offset_mm: [f64; 2],
pub right_binding: bool,
pub first_page_left: bool,
pub title: String,
pub story_index: Option<i64>,
pub author: String,
pub nombre_start: i64,
pub font: Option<StoryFont>,
pub story: StoryLayout,
}Expand description
What a page and its work are made with. Lengths in mm.
Fields§
§canvas_mm: [f64; 2]キャンバス (用紙) size.
resolution: f64解像度 (dpi).
trim_mm: [f64; 2]仕上がり (製本) size.
bleed_mm: f64裁ち落とし幅.
basic_mm: [f64; 2]基本枠 size and its offset from the middle of the canvas.
basic_offset_mm: [f64; 2]Offset of the 基本枠 from the middle of the canvas (x, y).
right_binding: bool右綴じ (a manga) rather than 左綴じ.
first_page_left: boolWhether the book’s first page (index 0) is a left page.
title: String作品名.
story_index: Option<i64>話数; none leaves it out of the 作品情報.
作者名.
nombre_start: i64ノンブルの開始番号.
font: Option<StoryFont>None keeps the built-in one (MS ゴシック).
story: StoryLayoutサブタイトル, where the 作品情報 go, ページ番号 and a shown ノンブル.
Implementations§
Source§impl PageSetup
impl PageSetup
Sourcepub fn check(&self) -> Result<()>
pub fn check(&self) -> Result<()>
Whether the values make a page CSP opens (sizes, frames inside the canvas, resolution 72–1200 dpi). Messages for people (and checks of what a person may type) are the application’s.
Sourcepub fn story_line(&self) -> String
pub fn story_line(&self) -> String
The 作品情報 line: 作品名, 話数 and サブタイトル as CSP writes them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageSetup
impl<'de> Deserialize<'de> for PageSetup
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 PageSetup
Auto Trait Implementations§
impl Freeze for PageSetup
impl RefUnwindSafe for PageSetup
impl Send for PageSetup
impl Sync for PageSetup
impl Unpin for PageSetup
impl UnsafeUnpin for PageSetup
impl UnwindSafe for PageSetup
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