package lipgloss

// unset unsets a property from a style.
func ( *Style) ( propKey) {
	.props = .props.unset()
}

// UnsetBold removes the bold style rule, if set.
func ( Style) () Style {
	.unset(boldKey)
	return 
}

// UnsetItalic removes the italic style rule, if set.
func ( Style) () Style {
	.unset(italicKey)
	return 
}

// UnsetUnderline removes the underline style rule, if set.
func ( Style) () Style {
	.unset(underlineKey)
	.ul = UnderlineNone
	return 
}

// UnsetStrikethrough removes the strikethrough style rule, if set.
func ( Style) () Style {
	.unset(strikethroughKey)
	return 
}

// UnsetReverse removes the reverse style rule, if set.
func ( Style) () Style {
	.unset(reverseKey)
	return 
}

// UnsetBlink removes the blink style rule, if set.
func ( Style) () Style {
	.unset(blinkKey)
	return 
}

// UnsetFaint removes the faint style rule, if set.
func ( Style) () Style {
	.unset(faintKey)
	return 
}

// UnsetForeground removes the foreground style rule, if set.
func ( Style) () Style {
	.unset(foregroundKey)
	return 
}

// UnsetBackground removes the background style rule, if set.
func ( Style) () Style {
	.unset(backgroundKey)
	return 
}

// UnsetWidth removes the width style rule, if set.
func ( Style) () Style {
	.unset(widthKey)
	return 
}

// UnsetHeight removes the height style rule, if set.
func ( Style) () Style {
	.unset(heightKey)
	return 
}

// UnsetAlign removes the horizontal and vertical text alignment style rule, if set.
func ( Style) () Style {
	.unset(alignHorizontalKey)
	.unset(alignVerticalKey)
	return 
}

// UnsetAlignHorizontal removes the horizontal text alignment style rule, if set.
func ( Style) () Style {
	.unset(alignHorizontalKey)
	return 
}

// UnsetAlignVertical removes the vertical text alignment style rule, if set.
func ( Style) () Style {
	.unset(alignVerticalKey)
	return 
}

// UnsetPadding removes all padding style rules.
func ( Style) () Style {
	.unset(paddingLeftKey)
	.unset(paddingRightKey)
	.unset(paddingTopKey)
	.unset(paddingBottomKey)
	.unset(paddingCharKey)
	return 
}

// UnsetPaddingChar removes the padding character style rule, if set.
func ( Style) () Style {
	.unset(paddingCharKey)
	return 
}

// UnsetPaddingLeft removes the left padding style rule, if set.
func ( Style) () Style {
	.unset(paddingLeftKey)
	return 
}

// UnsetPaddingRight removes the right padding style rule, if set.
func ( Style) () Style {
	.unset(paddingRightKey)
	return 
}

// UnsetPaddingTop removes the top padding style rule, if set.
func ( Style) () Style {
	.unset(paddingTopKey)
	return 
}

// UnsetPaddingBottom removes the bottom padding style rule, if set.
func ( Style) () Style {
	.unset(paddingBottomKey)
	return 
}

// UnsetColorWhitespace removes the rule for coloring padding, if set.
func ( Style) () Style {
	.unset(colorWhitespaceKey)
	return 
}

// UnsetMargins removes all margin style rules.
func ( Style) () Style {
	.unset(marginLeftKey)
	.unset(marginRightKey)
	.unset(marginTopKey)
	.unset(marginBottomKey)
	return 
}

// UnsetMarginLeft removes the left margin style rule, if set.
func ( Style) () Style {
	.unset(marginLeftKey)
	return 
}

// UnsetMarginRight removes the right margin style rule, if set.
func ( Style) () Style {
	.unset(marginRightKey)
	return 
}

// UnsetMarginTop removes the top margin style rule, if set.
func ( Style) () Style {
	.unset(marginTopKey)
	return 
}

// UnsetMarginBottom removes the bottom margin style rule, if set.
func ( Style) () Style {
	.unset(marginBottomKey)
	return 
}

// UnsetMarginBackground removes the margin's background color. Note that the
// margin's background color can be set from the background color of another
// style during inheritance.
func ( Style) () Style {
	.unset(marginBackgroundKey)
	return 
}

// UnsetBorderStyle removes the border style rule, if set.
func ( Style) () Style {
	.unset(borderStyleKey)
	return 
}

// UnsetBorderTop removes the border top style rule, if set.
func ( Style) () Style {
	.unset(borderTopKey)
	return 
}

// UnsetBorderRight removes the border right style rule, if set.
func ( Style) () Style {
	.unset(borderRightKey)
	return 
}

// UnsetBorderBottom removes the border bottom style rule, if set.
func ( Style) () Style {
	.unset(borderBottomKey)
	return 
}

// UnsetBorderLeft removes the border left style rule, if set.
func ( Style) () Style {
	.unset(borderLeftKey)
	return 
}

// UnsetBorderForeground removes all border foreground color styles, if set.
func ( Style) () Style {
	.unset(borderTopForegroundKey)
	.unset(borderRightForegroundKey)
	.unset(borderBottomForegroundKey)
	.unset(borderLeftForegroundKey)
	return 
}

// UnsetBorderTopForeground removes the top border foreground color rule,
// if set.
func ( Style) () Style {
	.unset(borderTopForegroundKey)
	return 
}

// UnsetBorderRightForeground removes the right border foreground color rule,
// if set.
func ( Style) () Style {
	.unset(borderRightForegroundKey)
	return 
}

// UnsetBorderBottomForeground removes the bottom border foreground color
// rule, if set.
func ( Style) () Style {
	.unset(borderBottomForegroundKey)
	return 
}

// UnsetBorderLeftForeground removes the left border foreground color rule,
// if set.
func ( Style) () Style {
	.unset(borderLeftForegroundKey)
	return 
}

// UnsetBorderForegroundBlend removes the border blend foreground color rules,
// if set.
func ( Style) () Style {
	.unset(borderForegroundBlendKey)
	return 
}

// UnsetBorderForegroundBlendOffset removes the border blend offset style rule,
// if set.
func ( Style) () Style {
	.unset(borderForegroundBlendOffsetKey)
	return 
}

// UnsetBorderBackground removes all border background color styles, if
// set.
func ( Style) () Style {
	.unset(borderTopBackgroundKey)
	.unset(borderRightBackgroundKey)
	.unset(borderBottomBackgroundKey)
	.unset(borderLeftBackgroundKey)
	return 
}

// UnsetBorderTopBackgroundColor removes the top border background color rule,
// if set.
//
// Deprecated: This function simply calls Style.UnsetBorderTopBackground.
func ( Style) () Style {
	return .UnsetBorderTopBackground()
}

// UnsetBorderTopBackground removes the top border background color rule,
// if set.
func ( Style) () Style {
	.unset(borderTopBackgroundKey)
	return 
}

// UnsetBorderRightBackground removes the right border background color
// rule, if set.
func ( Style) () Style {
	.unset(borderRightBackgroundKey)
	return 
}

// UnsetBorderBottomBackground removes the bottom border background color
// rule, if set.
func ( Style) () Style {
	.unset(borderBottomBackgroundKey)
	return 
}

// UnsetBorderLeftBackground removes the left border color rule, if set.
func ( Style) () Style {
	.unset(borderLeftBackgroundKey)
	return 
}

// UnsetInline removes the inline style rule, if set.
func ( Style) () Style {
	.unset(inlineKey)
	return 
}

// UnsetMaxWidth removes the max width style rule, if set.
func ( Style) () Style {
	.unset(maxWidthKey)
	return 
}

// UnsetMaxHeight removes the max height style rule, if set.
func ( Style) () Style {
	.unset(maxHeightKey)
	return 
}

// UnsetTabWidth removes the tab width style rule, if set.
func ( Style) () Style {
	.unset(tabWidthKey)
	return 
}

// UnsetUnderlineSpaces removes the value set by UnderlineSpaces.
func ( Style) () Style {
	.unset(underlineSpacesKey)
	return 
}

// UnsetStrikethroughSpaces removes the value set by StrikethroughSpaces.
func ( Style) () Style {
	.unset(strikethroughSpacesKey)
	return 
}

// UnsetTransform removes the value set by Transform.
func ( Style) () Style {
	.unset(transformKey)
	return 
}

// UnsetHyperlink removes the value set by Hyperlink.
func ( Style) () Style {
	.unset(linkKey)
	.unset(linkParamsKey)
	.link, .linkParams = "", "" // save memory
	return 
}

// UnsetString sets the underlying string value to the empty string.
func ( Style) () Style {
	.value = ""
	return 
}