pub struct Note { /* private fields */ }
Expand description
Note struct
Implementations§
Source§impl Note
impl Note
Sourcepub fn new(
layer: u32,
start_x: f64,
start_y: f64,
length: u32,
typeofnote: u32,
text1: String,
text2: Option<String>,
) -> Self
pub fn new( layer: u32, start_x: f64, start_y: f64, length: u32, typeofnote: u32, text1: String, text2: Option<String>, ) -> Self
Initialize a new Note
§Parameters:
- layer
- start_x
- start_y
- length
- typeofnote
- text1
- text2
Returns a new Note
pub fn Layer(&self) -> u32
pub fn StartX(&self) -> f64
pub fn StartY(&self) -> f64
pub fn Length(&self) -> u32
pub fn TypeOfNote(&self) -> u32
pub fn Text1(&self) -> String
pub fn Text2(&self) -> Option<String>
Trait Implementations§
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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