pub struct CodeWindowBuilder { /* private fields */ }Implementations§
Source§impl CodeWindowBuilder
impl CodeWindowBuilder
Sourcepub fn font_family(self, family: impl Into<String>) -> Self
pub fn font_family(self, family: impl Into<String>) -> Self
Set the font family of the code window
Sourcepub const fn syntax(self, syntax: Syntax) -> Self
pub const fn syntax(self, syntax: Syntax) -> Self
Set the syntax highlighting language of the code window
Sourcepub const fn title_font_size(self, size: f32) -> Self
pub const fn title_font_size(self, size: f32) -> Self
Set the title font size
Sourcepub const fn background_color(self, color: Color) -> Self
pub const fn background_color(self, color: Color) -> Self
Set the background color of the code window
Sourcepub const fn line_numbers(self, show: bool) -> Self
pub const fn line_numbers(self, show: bool) -> Self
Toggle line numbers in the code window
pub fn build(self) -> CodeWindowHandle
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeWindowBuilder
impl RefUnwindSafe for CodeWindowBuilder
impl Send for CodeWindowBuilder
impl Sync for CodeWindowBuilder
impl Unpin for CodeWindowBuilder
impl UnsafeUnpin for CodeWindowBuilder
impl UnwindSafe for CodeWindowBuilder
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