pub struct TextAnnotation {
pub part: usize,
pub staff: usize,
pub measure: usize,
pub style: TextStyle,
pub text: String,
pub placement: Option<String>,
pub offset_x: Option<f64>,
pub offset_y: Option<f64>,
pub relative_x: Option<f64>,
pub relative_y: Option<f64>,
}Expand description
A measure-level styled text entry exposed to browser hosts without SVG parsing.
Fields§
§part: usize§staff: usize§measure: usize§style: TextStyle§text: String§placement: Option<String>§offset_x: Option<f64>§offset_y: Option<f64>§relative_x: Option<f64>§relative_y: Option<f64>Trait Implementations§
Source§impl Clone for TextAnnotation
impl Clone for TextAnnotation
Source§impl Debug for TextAnnotation
impl Debug for TextAnnotation
Source§impl<'de> Deserialize<'de> for TextAnnotation
impl<'de> Deserialize<'de> for TextAnnotation
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 TextAnnotation
impl PartialEq for TextAnnotation
Source§impl Serialize for TextAnnotation
impl Serialize for TextAnnotation
impl StructuralPartialEq for TextAnnotation
Auto Trait Implementations§
impl Freeze for TextAnnotation
impl RefUnwindSafe for TextAnnotation
impl Send for TextAnnotation
impl Sync for TextAnnotation
impl Unpin for TextAnnotation
impl UnsafeUnpin for TextAnnotation
impl UnwindSafe for TextAnnotation
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