pub struct StreamStyle {
pub line_widths: Vec<(String, StyleValue)>,
pub note_sizes: Vec<(String, StyleValue)>,
pub distances: Vec<(String, StyleValue)>,
pub other_appearances: Vec<(String, StyleValue)>,
pub music_font: Option<TextStyle>,
pub word_font: Option<TextStyle>,
pub lyric_fonts: Vec<(Option<String>, Option<TextStyle>)>,
pub lyric_languages: Vec<(Option<String>, Option<String>)>,
}Expand description
How a whole score is drawn, past what its layouts say: music21’s
StreamStyle, the part MusicXML’s <defaults> writes.
Fields§
§line_widths: Vec<(String, StyleValue)>Line widths by what they draw, in tenths: lineWidths.
note_sizes: Vec<(String, StyleValue)>Note sizes by kind, as percentages: noteSizes.
distances: Vec<(String, StyleValue)>Distances by what they separate, in tenths: distances.
other_appearances: Vec<(String, StyleValue)>Any other appearance by its type: otherAppearances.
music_font: Option<TextStyle>The font music is set in: musicFont.
word_font: Option<TextStyle>The font words are set in: wordFont.
lyric_fonts: Vec<(Option<String>, Option<TextStyle>)>A font for the lyrics of each name: lyricFonts.
lyric_languages: Vec<(Option<String>, Option<String>)>A language for the lyrics of each name: lyricLanguages.
Implementations§
Source§impl StreamStyle
impl StreamStyle
Sourcepub fn has_appearance(&self) -> bool
pub fn has_appearance(&self) -> bool
Whether it says anything MusicXML’s <appearance> writes.
Trait Implementations§
Source§impl Clone for StreamStyle
impl Clone for StreamStyle
Source§impl Debug for StreamStyle
impl Debug for StreamStyle
Source§impl Default for StreamStyle
impl Default for StreamStyle
Source§impl<'de> Deserialize<'de> for StreamStyle
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StreamStyle
Available on crate feature
serde only.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
Source§impl PartialEq for StreamStyle
impl PartialEq for StreamStyle
Source§impl Serialize for StreamStyle
Available on crate feature serde only.
impl Serialize for StreamStyle
Available on crate feature
serde only.impl StructuralPartialEq for StreamStyle
Auto Trait Implementations§
impl Forget for StreamStyle
impl Freeze for StreamStyle
impl Move for StreamStyle
impl RefUnwindSafe for StreamStyle
impl Send for StreamStyle
impl Sync for StreamStyle
impl Unpin for StreamStyle
impl UnsafeUnpin for StreamStyle
impl UnwindSafe for StreamStyle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more