pub struct SimpleStyling { /* private fields */ }Implementations§
Source§impl SimpleStyling
impl SimpleStyling
pub fn builder() -> SimpleStylingBuilder
pub fn new() -> Self
Source§impl SimpleStyling
impl SimpleStyling
pub fn increment_id(&mut self)
pub fn set_font_size(&mut self, font_size: usize)
pub fn set_line_height(&mut self, line_height: f32)
pub fn set_font_family(&mut self, font_family: Vec<FamilyOwned>)
pub fn set_weight(&mut self, weight: Weight)
pub fn set_italic_style(&mut self, italic_style: Style)
pub fn set_stretch(&mut self, stretch: Stretch)
pub fn set_tab_width(&mut self, tab_width: usize)
pub fn set_atomic_soft_tabs(&mut self, atomic_soft_tabs: bool)
Trait Implementations§
Source§impl Clone for SimpleStyling
impl Clone for SimpleStyling
Source§fn clone(&self) -> SimpleStyling
fn clone(&self) -> SimpleStyling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleStyling
impl Debug for SimpleStyling
Source§impl Default for SimpleStyling
impl Default for SimpleStyling
Source§impl Styling for SimpleStyling
impl Styling for SimpleStyling
fn font_size(&self, _edid: EditorId, _line: usize) -> usize
fn line_height(&self, _edid: EditorId, _line: usize) -> f32
fn font_family(&self, _edid: EditorId, _line: usize) -> Cow<'_, [FamilyOwned]>
fn weight(&self, _edid: EditorId, _line: usize) -> Weight
fn italic_style(&self, _edid: EditorId, _line: usize) -> Style
fn stretch(&self, _edid: EditorId, _line: usize) -> Stretch
fn tab_width(&self, _edid: EditorId, _line: usize) -> usize
Source§fn atomic_soft_tabs(&self, _edid: EditorId, _line: usize) -> bool
fn atomic_soft_tabs(&self, _edid: EditorId, _line: usize) -> bool
Whether the cursor should treat leading soft tabs as if they are hard tabs
Source§fn apply_attr_styles(
&self,
_edid: EditorId,
_style: &EditorStyle,
_line: usize,
_default: Attrs<'_>,
_attrs: &mut AttrsList,
)
fn apply_attr_styles( &self, _edid: EditorId, _style: &EditorStyle, _line: usize, _default: Attrs<'_>, _attrs: &mut AttrsList, )
Apply custom attribute styles to the line
fn apply_layout_styles( &self, _edid: EditorId, _style: &EditorStyle, _line: usize, _layout_line: &mut TextLayoutLine, )
Auto Trait Implementations§
impl Freeze for SimpleStyling
impl RefUnwindSafe for SimpleStyling
impl Send for SimpleStyling
impl Sync for SimpleStyling
impl Unpin for SimpleStyling
impl UnwindSafe for SimpleStyling
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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