Class TextTheme
Inheritance
System.Object
TextTheme
Syntax
public class TextTheme : Diagnosticable, IEquatable<TextTheme>
Constructors
TextTheme(TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle)
Declaration
public TextTheme(TextStyle display4 = null, TextStyle display3 = null, TextStyle display2 = null, TextStyle display1 = null, TextStyle headline = null, TextStyle title = null, TextStyle subhead = null, TextStyle body2 = null, TextStyle body1 = null, TextStyle caption = null, TextStyle button = null, TextStyle subtitle = null, TextStyle overline = null)
Parameters
Fields
body1
Declaration
public readonly TextStyle body1
Field Value
body2
Declaration
public readonly TextStyle body2
Field Value
button
Declaration
public readonly TextStyle button
Field Value
caption
Declaration
public readonly TextStyle caption
Field Value
display1
Declaration
public readonly TextStyle display1
Field Value
display2
Declaration
public readonly TextStyle display2
Field Value
display3
Declaration
public readonly TextStyle display3
Field Value
display4
Declaration
public readonly TextStyle display4
Field Value
headline
Declaration
public readonly TextStyle headline
Field Value
overline
Declaration
public readonly TextStyle overline
Field Value
subhead
Declaration
public readonly TextStyle subhead
Field Value
subtitle
Declaration
public readonly TextStyle subtitle
Field Value
title
Declaration
public readonly TextStyle title
Field Value
Methods
apply(String, Single, Single, Color, Color, TextDecoration, Color, Nullable<TextDecorationStyle>)
Declaration
public TextTheme apply(string fontFamily = null, float fontSizeFactor = 1F, float fontSizeDelta = 0F, Color displayColor = null, Color bodyColor = null, TextDecoration decoration = null, Color decorationColor = null, TextDecorationStyle? decorationStyle = default(TextDecorationStyle? ))
Parameters
Returns
copyWith(TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle, TextStyle)
Declaration
public TextTheme copyWith(TextStyle display4 = null, TextStyle display3 = null, TextStyle display2 = null, TextStyle display1 = null, TextStyle headline = null, TextStyle title = null, TextStyle subhead = null, TextStyle body2 = null, TextStyle body1 = null, TextStyle caption = null, TextStyle button = null, TextStyle subtitle = null, TextStyle overline = null)
Parameters
Returns
debugFillProperties(DiagnosticPropertiesBuilder)
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Equals(TextTheme)
Declaration
public bool Equals(TextTheme other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
lerp(TextTheme, TextTheme, Single)
Declaration
public static TextTheme lerp(TextTheme a, TextTheme b, float t)
Parameters
Returns
merge(TextTheme)
Declaration
public TextTheme merge(TextTheme other)
Parameters
Returns
Operators
Equality(TextTheme, TextTheme)
Declaration
public static bool operator ==(TextTheme left, TextTheme right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(TextTheme, TextTheme)
Declaration
public static bool operator !=(TextTheme left, TextTheme right)
Parameters
Returns
Type |
Description |
System.Boolean |
|