Class TextStyle (2.15.0)

TextStyle(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Properties that determine how the title and content are styled

Attributes

NameDescription
background_color str
The background color as a hex string. "#RRGGBB" or "#RGB".
text_color str
The text color as a hex string. "#RRGGBB" or "#RGB".
horizontal_alignment google.cloud.monitoring_dashboard_v1.types.Text.TextStyle.HorizontalAlignment
The horizontal alignment of both the title and content
vertical_alignment google.cloud.monitoring_dashboard_v1.types.Text.TextStyle.VerticalAlignment
The vertical alignment of both the title and content
padding google.cloud.monitoring_dashboard_v1.types.Text.TextStyle.PaddingSize
The amount of padding around the widget
font_size google.cloud.monitoring_dashboard_v1.types.Text.TextStyle.FontSize
Font sizes for both the title and content. The title will still be larger relative to the content.
pointer_location google.cloud.monitoring_dashboard_v1.types.Text.TextStyle.PointerLocation
The pointer location for this widget (also sometimes called a "tail")

Classes

FontSize

FontSize(value)

Specifies a font size for the title and content of a text widget

Values: FONT_SIZE_UNSPECIFIED (0): No font size specified, will default to FS_LARGE FS_EXTRA_SMALL (1): Extra small font size FS_SMALL (2): Small font size FS_MEDIUM (3): Medium font size FS_LARGE (4): Large font size FS_EXTRA_LARGE (5): Extra large font size

HorizontalAlignment

HorizontalAlignment(value)

The horizontal alignment of both the title and content on a text widget

Values: HORIZONTAL_ALIGNMENT_UNSPECIFIED (0): No horizontal alignment specified, will default to H_LEFT H_LEFT (1): Left-align H_CENTER (2): Center-align H_RIGHT (3): Right-align

PaddingSize

PaddingSize(value)

Specifies padding size around a text widget

Values: PADDING_SIZE_UNSPECIFIED (0): No padding size specified, will default to P_EXTRA_SMALL P_EXTRA_SMALL (1): Extra small padding P_SMALL (2): Small padding P_MEDIUM (3): Medium padding P_LARGE (4): Large padding P_EXTRA_LARGE (5): Extra large padding

PointerLocation

PointerLocation(value)

Specifies where a visual pointer is placed on a text widget (also sometimes called a "tail")

Values: POINTER_LOCATION_UNSPECIFIED (0): No visual pointer PL_TOP (1): Placed in the middle of the top of the widget PL_RIGHT (2): Placed in the middle of the right side of the widget PL_BOTTOM (3): Placed in the middle of the bottom of the widget PL_LEFT (4): Placed in the middle of the left side of the widget PL_TOP_LEFT (5): Placed on the left side of the top of the widget PL_TOP_RIGHT (6): Placed on the right side of the top of the widget PL_RIGHT_TOP (7): Placed on the top of the right side of the widget PL_RIGHT_BOTTOM (8): Placed on the bottom of the right side of the widget PL_BOTTOM_RIGHT (9): Placed on the right side of the bottom of the widget PL_BOTTOM_LEFT (10): Placed on the left side of the bottom of the widget PL_LEFT_BOTTOM (11): Placed on the bottom of the left side of the widget PL_LEFT_TOP (12): Placed on the top of the left side of the widget

VerticalAlignment

VerticalAlignment(value)

The vertical alignment of both the title and content on a text widget

Values: VERTICAL_ALIGNMENT_UNSPECIFIED (0): No vertical alignment specified, will default to V_TOP V_TOP (1): Top-align V_CENTER (2): Center-align V_BOTTOM (3): Bottom-align