edit_style

Macro edit_style 

Source
macro_rules! edit_style {
    ($doc:expr, $name:expr, { $($field:ident = $value:expr),+ $(,)? }) => { ... };
}
Expand description

Macro for editing styles

ยงExamples

use ass_editor::{EditorDocument, edit_style, StyleBuilder};

let content = "[V4+ Styles]\nStyle: Default,Arial,20,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,0,0,2,10,10,10,1";
let mut doc = EditorDocument::from_content(content).unwrap();

// Note: edit_style! macro has different syntax than shown
let style = StyleBuilder::new()
    .name("Default")
    .font("Arial")
    .size(24)
    .build()
    .unwrap();

// The actual method to update styles would be different
// This is just an example of the intended usage