struct
Sheen::Style
- Sheen::Style
- Struct
- Value
- Object
Overview
An immutable set of styling rules bound to a renderer. Every setter returns a new style, and the original is never mutated.
Build one fluently like Style.new.bold.foreground("#7D56F4) or via the Sheen.style block.
Defined in:
sheen/style.crConstant Summary
-
NO_TAB_CONVERSION =
-1 -
Sentinel for
#tab_widththat disables tab conversion wholesale. -
TAB_WIDTH_DEFAULT =
4 -
Default tab expansion width when
#tab_widthis unset.
Constructors
Macro Summary
-
bool_prop(name)
Emits the setters and
?getter for a boolean property. -
color_prop(name)
Emits the setter and getter for a color property.
-
int_prop(name)
Emits the setter and getter for an Int32 property.
-
position_prop(name, default)
Emits the setter and getter for a Position property.
-
storage(*decls)
Generates
initializeandcopy_withfrom a single field list so the two can never drift. - unset_prop(name)
Instance Method Summary
-
#align(horizontal : Position, vertical : Position | Nil = nil) : Style
Sets horizontal alignment, with optional vertical alignment.
-
#align_horizontal(pos : Position) : Style
Sets align_horizontal to pos.
-
#align_horizontal : Position
The align_horizontal position, or
Position::LEFTwhen unset. -
#align_horizontal_set? : Bool
True when align_horizontal has been explicitly set
-
#align_vertical(pos : Position) : Style
Sets align_vertical to pos.
-
#align_vertical : Position
The align_vertical position, or
Position::TOPwhen unset. -
#align_vertical_set? : Bool
True when align_vertical has been explicitly set
-
#background(color : TerminalColor | String | Int) : Style
Sets background from a
TerminalColor, hex string, or ANSI index. -
#background : TerminalColor
The background color, or
NoColorwhen unset. -
#background_set? : Bool
True when background has been explicitly set
-
#blink(value : Bool = true) : Style
Enables or disables blink.
-
#blink? : Bool
True when blink is enabled.
-
#blink_set? : Bool
True when blink has been explicitly set
-
#bold(value : Bool = true) : Style
Enables or disables bold.
-
#bold? : Bool
True when bold is enabled.
-
#bold_set? : Bool
True when bold has been explicitly set
-
#border(b : Border) : Style
Sets the border b and which sides show, via CSS-style shorthand.
-
#border(b : Border, *sides : Bool) : Style
Sets the border b and which sides show, via CSS-style shorthand.
-
#border_background(*colors : TerminalColor | String | Int) : Style
Sets all four border background colors via CSS 1-4 shorthand values.
-
#border_bottom(value : Bool = true) : Style
Enables or disables border_bottom.
-
#border_bottom? : Bool
True when border_bottom is enabled.
-
#border_bottom_background(color : TerminalColor | String | Int) : Style
Sets border_bottom_background from a
TerminalColor, hex string, or ANSI index. -
#border_bottom_background : TerminalColor
The border_bottom_background color, or
NoColorwhen unset. -
#border_bottom_background_set? : Bool
True when border_bottom_background has been explicitly set
-
#border_bottom_foreground(color : TerminalColor | String | Int) : Style
Sets border_bottom_foreground from a
TerminalColor, hex string, or ANSI index. -
#border_bottom_foreground : TerminalColor
The border_bottom_foreground color, or
NoColorwhen unset. -
#border_bottom_foreground_set? : Bool
True when border_bottom_foreground has been explicitly set
-
#border_bottom_set? : Bool
True when border_bottom has been explicitly set
-
#border_bottom_size : Int32
Cell-width of the bottom border edge.
-
#border_foreground(*colors : TerminalColor | String | Int) : Style
Sets all four border foreground colors via CSS 1-4 shorthand values.
-
#border_left(value : Bool = true) : Style
Enables or disables border_left.
-
#border_left? : Bool
True when border_left is enabled.
-
#border_left_background(color : TerminalColor | String | Int) : Style
Sets border_left_background from a
TerminalColor, hex string, or ANSI index. -
#border_left_background : TerminalColor
The border_left_background color, or
NoColorwhen unset. -
#border_left_background_set? : Bool
True when border_left_background has been explicitly set
-
#border_left_foreground(color : TerminalColor | String | Int) : Style
Sets border_left_foreground from a
TerminalColor, hex string, or ANSI index. -
#border_left_foreground : TerminalColor
The border_left_foreground color, or
NoColorwhen unset. -
#border_left_foreground_set? : Bool
True when border_left_foreground has been explicitly set
-
#border_left_set? : Bool
True when border_left has been explicitly set
-
#border_left_size : Int32
Cell-width of the left border edge.
-
#border_right(value : Bool = true) : Style
Enables or disables border_right.
-
#border_right? : Bool
True when border_right is enabled.
-
#border_right_background(color : TerminalColor | String | Int) : Style
Sets border_right_background from a
TerminalColor, hex string, or ANSI index. -
#border_right_background : TerminalColor
The border_right_background color, or
NoColorwhen unset. -
#border_right_background_set? : Bool
True when border_right_background has been explicitly set
-
#border_right_foreground(color : TerminalColor | String | Int) : Style
Sets border_right_foreground from a
TerminalColor, hex string, or ANSI index. -
#border_right_foreground : TerminalColor
The border_right_foreground color, or
NoColorwhen unset. -
#border_right_foreground_set? : Bool
True when border_right_foreground has been explicitly set
-
#border_right_set? : Bool
True when border_right has been explicitly set
-
#border_right_size : Int32
Cell-width of the right border edge.
-
#border_style(b : Border) : Style
Sets the border b character styleset without touching side visibility.
-
#border_style : Border
The border character set, or a
noneborder when unset. -
#border_style_set? : Bool
True when border_style has been explicitly set
-
#border_top(value : Bool = true) : Style
Enables or disables border_top.
-
#border_top? : Bool
True when border_top is enabled.
-
#border_top_background(color : TerminalColor | String | Int) : Style
Sets border_top_background from a
TerminalColor, hex string, or ANSI index. -
#border_top_background : TerminalColor
The border_top_background color, or
NoColorwhen unset. -
#border_top_background_set? : Bool
True when border_top_background has been explicitly set
-
#border_top_foreground(color : TerminalColor | String | Int) : Style
Sets border_top_foreground from a
TerminalColor, hex string, or ANSI index. -
#border_top_foreground : TerminalColor
The border_top_foreground color, or
NoColorwhen unset. -
#border_top_foreground_set? : Bool
True when border_top_foreground has been explicitly set
-
#border_top_set? : Bool
True when border_top has been explicitly set
-
#border_top_size : Int32
Cell-width of the top border edge.
-
#color_whitespace(value : Bool = true) : Style
Enables or disables color_whitespace.
-
#color_whitespace? : Bool
True when color_whitespace is enabled.
-
#color_whitespace_set? : Bool
True when color_whitespace has been explicitly set
-
#faint(value : Bool = true) : Style
Enables or disables faint.
-
#faint? : Bool
True when faint is enabled.
-
#faint_set? : Bool
True when faint has been explicitly set
-
#foreground(color : TerminalColor | String | Int) : Style
Sets foreground from a
TerminalColor, hex string, or ANSI index. -
#foreground : TerminalColor
The foreground color, or
NoColorwhen unset. -
#foreground_set? : Bool
True when foreground has been explicitly set
-
#frame_size : Tuple(Int32, Int32)
Getter for the {horizontal, vertical} frame size
-
#height(n : Int32) : Style
Sets height to n.
-
#height : Int32
The height value, or 0 when unset.
-
#height_set? : Bool
True when height has been explicitly set
-
#horizontal_border_size : Int32
Total horizontal border width, left + right.
-
#horizontal_frame_size : Int32
Getter sum of horizontal margins, padding, and border.
-
#horizontal_margins : Int32
Total horizontal margins, left + right
-
#horizontal_padding : Int32
Total horizontal padding, left + right
-
#implicit_borders? : Bool
True when a border style is set but no side has been explicitly toggled, which triggers all four sides to render
-
#inherit(other : Style) : Style
Overlays other onto this style.
-
#inline(value : Bool = true) : Style
Enables or disables inline.
-
#inline? : Bool
True when inline is enabled.
-
#inline_set? : Bool
True when inline has been explicitly set
-
#italic(value : Bool = true) : Style
Enables or disables italic.
-
#italic? : Bool
True when italic is enabled.
-
#italic_set? : Bool
True when italic has been explicitly set
-
#margin(*values : Int32) : Style
Sets margins via same CSS shorthand as
#padding. -
#margin_background(color : TerminalColor | String | Int) : Style
Sets margin_background from a
TerminalColor, hex string, or ANSI index. -
#margin_background : TerminalColor
The margin_background color, or
NoColorwhen unset. -
#margin_background_set? : Bool
True when margin_background has been explicitly set
-
#margin_bottom(n : Int32) : Style
Sets margin_bottom to n.
-
#margin_bottom : Int32
The margin_bottom value, or 0 when unset.
-
#margin_bottom_set? : Bool
True when margin_bottom has been explicitly set
-
#margin_left(n : Int32) : Style
Sets margin_left to n.
-
#margin_left : Int32
The margin_left value, or 0 when unset.
-
#margin_left_set? : Bool
True when margin_left has been explicitly set
-
#margin_right(n : Int32) : Style
Sets margin_right to n.
-
#margin_right : Int32
The margin_right value, or 0 when unset.
-
#margin_right_set? : Bool
True when margin_right has been explicitly set
-
#margin_top(n : Int32) : Style
Sets margin_top to n.
-
#margin_top : Int32
The margin_top value, or 0 when unset.
-
#margin_top_set? : Bool
True when margin_top has been explicitly set
-
#max_height(n : Int32) : Style
Sets max_height to n.
-
#max_height : Int32
The max_height value, or 0 when unset.
-
#max_height_set? : Bool
True when max_height has been explicitly set
-
#max_width(n : Int32) : Style
Sets max_width to n.
-
#max_width : Int32
The max_width value, or 0 when unset.
-
#max_width_set? : Bool
True when max_width has been explicitly set
-
#padding(*values : Int32) : Style
Sets padding via CSS shorthand: - 1 value: all sides - 2 values: vert, horiz - 3 values: top, horiz, bottom - 4 values: top, right, bottom, left
-
#padding_bottom(n : Int32) : Style
Sets padding_bottom to n.
-
#padding_bottom : Int32
The padding_bottom value, or 0 when unset.
-
#padding_bottom_set? : Bool
True when padding_bottom has been explicitly set
-
#padding_left(n : Int32) : Style
Sets padding_left to n.
-
#padding_left : Int32
The padding_left value, or 0 when unset.
-
#padding_left_set? : Bool
True when padding_left has been explicitly set
-
#padding_right(n : Int32) : Style
Sets padding_right to n.
-
#padding_right : Int32
The padding_right value, or 0 when unset.
-
#padding_right_set? : Bool
True when padding_right has been explicitly set
-
#padding_top(n : Int32) : Style
Sets padding_top to n.
-
#padding_top : Int32
The padding_top value, or 0 when unset.
-
#padding_top_set? : Bool
True when padding_top has been explicitly set
-
#render : String
Renders strings through this style's rules, each line is styled independently: - joined by a space - prefixed with any bound
#stringcontent - wrapped in SGR sequences assembled from current properties - with colors resolved and downsampled through the attached renderer's profile - width and height truncation is applied last -
#render(*strings : String) : String
Renders strings through this style's rules, each line is styled independently: - joined by a space - prefixed with any bound
#stringcontent - wrapped in SGR sequences assembled from current properties - with colors resolved and downsampled through the attached renderer's profile - width and height truncation is applied last -
#renderer(r : Renderer) : Style
Rebinds this style to r, is chainable.
- #renderer : Renderer
-
#reverse(value : Bool = true) : Style
Enables or disables reverse.
-
#reverse? : Bool
True when reverse is enabled.
-
#reverse_set? : Bool
True when reverse has been explicitly set
-
#strikethrough(value : Bool = true) : Style
Enables or disables strikethrough.
-
#strikethrough? : Bool
True when strikethrough is enabled.
-
#strikethrough_set? : Bool
True when strikethrough has been explicitly set
-
#strikethrough_spaces(value : Bool = true) : Style
Enables or disables strikethrough_spaces.
-
#strikethrough_spaces? : Bool
True when strikethrough_spaces is enabled.
-
#strikethrough_spaces_set? : Bool
True when strikethrough_spaces has been explicitly set
-
#string(*values : String) : Style
Binds values joined by a space, as this style's underlying content.
-
#tab_width(n : Int32) : Style
Tab expansion width setter.
-
#tab_width : Int32
Tab expansion width getter.
-
#to_s(io : IO) : Nil
Renders the bound
#stringcontent. - #transform : Transform | Nil
-
#transform(&block : String -> String) : Style
Sets a block applied to the assembled content at render time, before tab expansion or any styling.
-
#transform_set? : Bool
True when transform has been explicitly set
-
#underline(value : Bool = true) : Style
Enables or disables underline.
-
#underline? : Bool
True when underline is enabled.
-
#underline_set? : Bool
True when underline has been explicitly set
-
#underline_spaces(value : Bool = true) : Style
Enables or disables underline_spaces.
-
#underline_spaces? : Bool
True when underline_spaces is enabled.
-
#underline_spaces_set? : Bool
True when underline_spaces has been explicitly set
-
#unset_align : Style
Returns a new Style with both alignment axes unset
-
#unset_align_horizontal : Style
Returns a new Style with align_horizontal returned to the unset (inheritable) state.
-
#unset_align_vertical : Style
Returns a new Style with align_vertical returned to the unset (inheritable) state.
-
#unset_background : Style
Returns a new Style with background returned to the unset (inheritable) state.
-
#unset_blink : Style
Returns a new Style with blink returned to the unset (inheritable) state.
-
#unset_bold : Style
Returns a new Style with bold returned to the unset (inheritable) state.
-
#unset_border_background : Style
Returns a new Style with all four border background colors unset.
-
#unset_border_bottom : Style
Returns a new Style with border_bottom returned to the unset (inheritable) state.
-
#unset_border_bottom_background : Style
Returns a new Style with border_bottom_background returned to the unset (inheritable) state.
-
#unset_border_bottom_foreground : Style
Returns a new Style with border_bottom_foreground returned to the unset (inheritable) state.
-
#unset_border_foreground : Style
Returns a new Style with all four border foreground colors unset.
-
#unset_border_left : Style
Returns a new Style with border_left returned to the unset (inheritable) state.
-
#unset_border_left_background : Style
Returns a new Style with border_left_background returned to the unset (inheritable) state.
-
#unset_border_left_foreground : Style
Returns a new Style with border_left_foreground returned to the unset (inheritable) state.
-
#unset_border_right : Style
Returns a new Style with border_right returned to the unset (inheritable) state.
-
#unset_border_right_background : Style
Returns a new Style with border_right_background returned to the unset (inheritable) state.
-
#unset_border_right_foreground : Style
Returns a new Style with border_right_foreground returned to the unset (inheritable) state.
-
#unset_border_style : Style
Returns a new Style with border_style returned to the unset (inheritable) state.
-
#unset_border_top : Style
Returns a new Style with border_top returned to the unset (inheritable) state.
-
#unset_border_top_background : Style
Returns a new Style with border_top_background returned to the unset (inheritable) state.
-
#unset_border_top_foreground : Style
Returns a new Style with border_top_foreground returned to the unset (inheritable) state.
-
#unset_color_whitespace : Style
Returns a new Style with color_whitespace returned to the unset (inheritable) state.
-
#unset_faint : Style
Returns a new Style with faint returned to the unset (inheritable) state.
-
#unset_foreground : Style
Returns a new Style with foreground returned to the unset (inheritable) state.
-
#unset_height : Style
Returns a new Style with height returned to the unset (inheritable) state.
-
#unset_inline : Style
Returns a new Style with inline returned to the unset (inheritable) state.
-
#unset_italic : Style
Returns a new Style with italic returned to the unset (inheritable) state.
-
#unset_margin_background : Style
Returns a new Style with margin_background returned to the unset (inheritable) state.
-
#unset_margin_bottom : Style
Returns a new Style with margin_bottom returned to the unset (inheritable) state.
-
#unset_margin_left : Style
Returns a new Style with margin_left returned to the unset (inheritable) state.
-
#unset_margin_right : Style
Returns a new Style with margin_right returned to the unset (inheritable) state.
-
#unset_margin_top : Style
Returns a new Style with margin_top returned to the unset (inheritable) state.
-
#unset_margins : Style
Returns a new Style with all four margin sides unset
-
#unset_max_height : Style
Returns a new Style with max_height returned to the unset (inheritable) state.
-
#unset_max_width : Style
Returns a new Style with max_width returned to the unset (inheritable) state.
-
#unset_padding : Style
Returns a new Style with all four padding sides unset.
-
#unset_padding_bottom : Style
Returns a new Style with padding_bottom returned to the unset (inheritable) state.
-
#unset_padding_left : Style
Returns a new Style with padding_left returned to the unset (inheritable) state.
-
#unset_padding_right : Style
Returns a new Style with padding_right returned to the unset (inheritable) state.
-
#unset_padding_top : Style
Returns a new Style with padding_top returned to the unset (inheritable) state.
-
#unset_reverse : Style
Returns a new Style with reverse returned to the unset (inheritable) state.
-
#unset_strikethrough : Style
Returns a new Style with strikethrough returned to the unset (inheritable) state.
-
#unset_strikethrough_spaces : Style
Returns a new Style with strikethrough_spaces returned to the unset (inheritable) state.
-
#unset_string : Style
Returns a new Style with the bound string value cleared
-
#unset_tab_width : Style
Returns a new STyle with the tab width returned to its default.
-
#unset_transform : Style
Returns a new Style with transform returned to the unset (inheritable) state.
-
#unset_underline : Style
Returns a new Style with underline returned to the unset (inheritable) state.
-
#unset_underline_spaces : Style
Returns a new Style with underline_spaces returned to the unset (inheritable) state.
-
#unset_width : Style
Returns a new Style with width returned to the unset (inheritable) state.
- #value : String
-
#vertical_border_size : Int32
Total vertical border width, top + bottom.
-
#vertical_frame_size : Int32
Getter sum of vertical margins, padding, and border.
-
#vertical_margins : Int32
Total vertical margins, top + bottom
-
#vertical_padding : Int32
Total vertical padding, top + bottom
-
#width(n : Int32) : Style
Sets width to n.
-
#width : Int32
The width value, or 0 when unset.
-
#width_set? : Bool
True when width has been explicitly set
Constructor Detail
The single source of truth for the property fields. nil means unset.
Follows the form {name, Type, default}
Macro Detail
Emits the setter and getter for a color property.
Defaults to NoColor when unset.
Emits the setter and getter for a Position property.
default when unset.
Generates initialize and copy_with from a single field list so the two can never drift.
Each decl is the form {name, Type, default}.
nil means unset
Instance Method Detail
Sets horizontal alignment, with optional vertical alignment.
Sets align_horizontal to pos. Returns a new Style.
The align_horizontal position, or Position::LEFT when unset.
Sets align_vertical to pos. Returns a new Style.
The align_vertical position, or Position::TOP when unset.
Sets background from a TerminalColor, hex string, or ANSI index.
Returns a new Style
Enables or disables blink. Returns a new Style
Sets the border b and which sides show, via CSS-style shorthand.
- no side values: shows all four
- 1 side value: all sides
- 2 side values: vert, horiz
- 3 side values: top, horiz, bottom
- 4 side values: top, right, bottom, left
Sets the border b and which sides show, via CSS-style shorthand.
- no side values: shows all four
- 1 side value: all sides
- 2 side values: vert, horiz
- 3 side values: top, horiz, bottom
- 4 side values: top, right, bottom, left
Sets all four border background colors via CSS 1-4 shorthand values. Raises on a value count outside 1-4.
Enables or disables border_bottom. Returns a new Style
Sets border_bottom_background from a TerminalColor, hex string, or ANSI index.
Returns a new Style
The border_bottom_background color, or NoColor when unset.
True when border_bottom_background has been explicitly set
Sets border_bottom_foreground from a TerminalColor, hex string, or ANSI index.
Returns a new Style
The border_bottom_foreground color, or NoColor when unset.
True when border_bottom_foreground has been explicitly set
Cell-width of the bottom border edge. Defaults to 0 when the bottom side is off.
Sets all four border foreground colors via CSS 1-4 shorthand values. Raises on a value count outside 1-4.
Enables or disables border_left. Returns a new Style
Sets border_left_background from a TerminalColor, hex string, or ANSI index.
Returns a new Style
The border_left_background color, or NoColor when unset.
Sets border_left_foreground from a TerminalColor, hex string, or ANSI index.
Returns a new Style
The border_left_foreground color, or NoColor when unset.
Cell-width of the left border edge. Defaults to 0 when the left side is off.
Enables or disables border_right. Returns a new Style
Sets border_right_background from a TerminalColor, hex string, or ANSI index.
Returns a new Style
The border_right_background color, or NoColor when unset.
Sets border_right_foreground from a TerminalColor, hex string, or ANSI index.
Returns a new Style
The border_right_foreground color, or NoColor when unset.
Cell-width of the right border edge. Defaults to 0 when the right side is off.
Sets the border b character styleset without touching side visibility. If no side is later toggled, all four are rendered. (see #implicit_borders?)
Enables or disables border_top. Returns a new Style
Sets border_top_background from a TerminalColor, hex string, or ANSI index.
Returns a new Style
Sets border_top_foreground from a TerminalColor, hex string, or ANSI index.
Returns a new Style
Cell-width of the top border edge. Defaults to 0 when the top side is off.
Enables or disables color_whitespace. Returns a new Style
Enables or disables faint. Returns a new Style
Sets foreground from a TerminalColor, hex string, or ANSI index.
Returns a new Style
True when a border style is set but no side has been explicitly toggled, which triggers all four sides to render
Overlays other onto this style. For every property other has explicitly set that this style has not, this style adopts the value of other and returns a new Style.
Note:
- Inheriting a background also seeds the margin background when neither style has one set.
- Padding, margins, and the bound string value are the exceptions and are never inherited, so those properties are intentionally excluded.
Enables or disables inline. Returns a new Style
Enables or disables italic. Returns a new Style
Sets margins via same CSS shorthand as #padding.
Raises on any value count other than 1-4.
Sets margin_background from a TerminalColor, hex string, or ANSI index.
Returns a new Style
Sets padding via CSS shorthand:
- 1 value: all sides
- 2 values: vert, horiz
- 3 values: top, horiz, bottom
- 4 values: top, right, bottom, left
Raises on any other value count.
Renders strings through this style's rules, each line is styled independently:
- joined by a space
- prefixed with any bound
#stringcontent - wrapped in SGR sequences assembled from current properties
- with colors resolved and downsampled through the attached renderer's profile
- width and height truncation is applied last
Zero-arg convenience version that renders this style's bound #string content with no additional arguments.
Renders strings through this style's rules, each line is styled independently:
- joined by a space
- prefixed with any bound
#stringcontent - wrapped in SGR sequences assembled from current properties
- with colors resolved and downsampled through the attached renderer's profile
- width and height truncation is applied last
Enables or disables reverse. Returns a new Style
Enables or disables strikethrough. Returns a new Style
Enables or disables strikethrough_spaces. Returns a new Style
Binds values joined by a space, as this style's underlying content.
Tab expansion width setter.
Use NO_TAB_CONVERSION to leave tabs intact.
Renders the bound #string content.
Writes the result of #render (this style's bound #string content) to io.
Sets a block applied to the assembled content at render time, before tab expansion or any styling. Returns a new Style.
Enables or disables underline. Returns a new Style
Enables or disables underline_spaces. Returns a new Style
Returns a new Style with align_horizontal returned to the unset (inheritable) state.
Returns a new Style with align_vertical returned to the unset (inheritable) state.
Returns a new Style with background returned to the unset (inheritable) state.
Returns a new Style with all four border background colors unset.
Returns a new Style with border_bottom returned to the unset (inheritable) state.
Returns a new Style with border_bottom_background returned to the unset (inheritable) state.
Returns a new Style with border_bottom_foreground returned to the unset (inheritable) state.
Returns a new Style with all four border foreground colors unset.
Returns a new Style with border_left returned to the unset (inheritable) state.
Returns a new Style with border_left_background returned to the unset (inheritable) state.
Returns a new Style with border_left_foreground returned to the unset (inheritable) state.
Returns a new Style with border_right returned to the unset (inheritable) state.
Returns a new Style with border_right_background returned to the unset (inheritable) state.
Returns a new Style with border_right_foreground returned to the unset (inheritable) state.
Returns a new Style with border_style returned to the unset (inheritable) state.
Returns a new Style with border_top returned to the unset (inheritable) state.
Returns a new Style with border_top_background returned to the unset (inheritable) state.
Returns a new Style with border_top_foreground returned to the unset (inheritable) state.
Returns a new Style with color_whitespace returned to the unset (inheritable) state.
Returns a new Style with foreground returned to the unset (inheritable) state.
Returns a new Style with height returned to the unset (inheritable) state.
Returns a new Style with inline returned to the unset (inheritable) state.
Returns a new Style with italic returned to the unset (inheritable) state.
Returns a new Style with margin_background returned to the unset (inheritable) state.
Returns a new Style with margin_bottom returned to the unset (inheritable) state.
Returns a new Style with margin_left returned to the unset (inheritable) state.
Returns a new Style with margin_right returned to the unset (inheritable) state.
Returns a new Style with margin_top returned to the unset (inheritable) state.
Returns a new Style with max_height returned to the unset (inheritable) state.
Returns a new Style with max_width returned to the unset (inheritable) state.
Returns a new Style with padding_bottom returned to the unset (inheritable) state.
Returns a new Style with padding_left returned to the unset (inheritable) state.
Returns a new Style with padding_right returned to the unset (inheritable) state.
Returns a new Style with padding_top returned to the unset (inheritable) state.
Returns a new Style with reverse returned to the unset (inheritable) state.
Returns a new Style with strikethrough returned to the unset (inheritable) state.
Returns a new Style with strikethrough_spaces returned to the unset (inheritable) state.
Returns a new STyle with the tab width returned to its default.
Returns a new Style with transform returned to the unset (inheritable) state.
Returns a new Style with underline returned to the unset (inheritable) state.
Returns a new Style with underline_spaces returned to the unset (inheritable) state.