skia_
safe
0.81.0
Strut
Style
Aliased type
Methods
font_families
font_size
font_style
force_strut_height
half_leading
height
height_override
leading
new
set_font_families
set_font_size
set_font_style
set_force_strut_height
set_half_leading
set_height
set_height_override
set_leading
set_strut_enabled
strut_enabled
Trait Implementations
Debug
Default
Send
Sync
In skia_
safe::
textlayout
skia_safe
::
textlayout
Type Alias
StrutStyle
Copy item path
Source
pub type StrutStyle =
Handle
<skia_textlayout_StrutStyle>;
Aliased Type
§
struct StrutStyle(
/* private fields */
);
Implementations
§
Source
§
impl
StrutStyle
Source
pub fn
new
() -> Self
Source
pub fn
font_families
(&self) ->
FontFamilies
<'_>
Source
pub fn
set_font_families
(&mut self, families: &[impl
AsRef
<
str
>]) -> &mut Self
Source
pub fn
font_style
(&self) ->
FontStyle
Source
pub fn
set_font_style
(&mut self, font_style:
FontStyle
) -> &mut Self
Source
pub fn
font_size
(&self) ->
scalar
Source
pub fn
set_font_size
(&mut self, font_size:
scalar
) -> &mut Self
Source
pub fn
set_height
(&mut self, height:
scalar
) -> &mut Self
Source
pub fn
height
(&self) ->
scalar
Source
pub fn
set_leading
(&mut self, leading:
scalar
) -> &mut Self
Source
pub fn
leading
(&self) ->
scalar
Source
pub fn
strut_enabled
(&self) ->
bool
Source
pub fn
set_strut_enabled
(&mut self, enabled:
bool
) -> &mut Self
Source
pub fn
force_strut_height
(&self) ->
bool
Source
pub fn
set_force_strut_height
(&mut self, force_height:
bool
) -> &mut Self
Source
pub fn
height_override
(&self) ->
bool
Source
pub fn
set_height_override
(&mut self, height_override:
bool
) -> &mut Self
Source
pub fn
half_leading
(&self) ->
bool
Source
pub fn
set_half_leading
(&mut self, half_leading:
bool
) -> &mut Self
Trait Implementations
§
Source
§
impl
Debug
for
StrutStyle
Source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
Source
§
impl
Default
for
StrutStyle
Source
§
fn
default
() -> Self
Returns the “default value” for a type.
Read more
Source
§
impl
Send
for
StrutStyle
Source
§
impl
Sync
for
StrutStyle