UiTextEffects
- Namespace: Turian.Engine.UI
- Source File: UiTextEffects.cs
Builds a Guinevere TextEffects from .uss text-effect declarations: text-outline: <color> <width>``text-shadow: <color> <offsetX> <offsetY> [blur]``text-inner-shadow: <color> <offsetX> <offsetY> [blur]``text-gradient: linear(<from>, <to>, [angleDeg]) | radial(<from>, <to>)
Public Methods
Resolve
public static TextEffects? Resolve(Func<string, string> style)
Resolves the four text-effect declarations, or null when none are set.
Parameters:
style(Func<string, string>): Looks up a style property value; returns""when unset.
Returns: TextEffects?