unreal.TextBlockStyle
¶
- class unreal.TextBlockStyle(font=[None, None, [0, False, False, None, [0.0, 0.0, 0.0, 1.0]], 'None', 24, 0], color_and_opacity=[[1.0, 0.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], shadow_offset=[0.0, 0.0], shadow_color_and_opacity=[0.0, 0.0, 0.0, 1.0], highlight_color=[[0.0, 0.0, 0.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], highlight_shape=[[32.0, 32.0], [0.0, 0.0, 0.0, 0.0], [[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], [[0.0, 0.0, 0.0, 1.0], [[0.0, 0.0, 0.0, 0.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], 0.0, SlateBrushRoundingType.HALF_HEIGHT_RADIUS, False], None, SlateBrushDrawType.IMAGE, SlateBrushTileType.NO_TILE, SlateBrushMirrorType.NO_MIRROR], strike_brush=[[32.0, 32.0], [0.0, 0.0, 0.0, 0.0], [[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], [[0.0, 0.0, 0.0, 1.0], [[0.0, 0.0, 0.0, 0.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], 0.0, SlateBrushRoundingType.HALF_HEIGHT_RADIUS, False], None, SlateBrushDrawType.IMAGE, SlateBrushTileType.NO_TILE, SlateBrushMirrorType.NO_MIRROR], underline_brush=[[32.0, 32.0], [0.0, 0.0, 0.0, 0.0], [[1.0, 1.0, 1.0, 1.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], [[0.0, 0.0, 0.0, 1.0], [[0.0, 0.0, 0.0, 0.0], SlateColorStylingMode.USE_COLOR_SPECIFIED], 0.0, SlateBrushRoundingType.HALF_HEIGHT_RADIUS, False], None, SlateBrushDrawType.IMAGE, SlateBrushTileType.NO_TILE, SlateBrushMirrorType.NO_MIRROR], transform_policy=TextTransformPolicy.NONE, overflow_policy=TextOverflowPolicy.CLIP)¶
Bases:
unreal.SlateWidgetStyle
Represents the appearance of an STextBlock
C++ Source:
Module: SlateCore
File: SlateTypes.h
Editor Properties: (see get_editor_property/set_editor_property)
color_and_opacity
(SlateColor): [Read-Write] Color and Opacity: The color and opacity of this textfont
(SlateFontInfo): [Read-Write] Font: Font family and size to be used when displaying this text.highlight_color
(SlateColor): [Read-Write] Highlight Color: The color of highlighted texthighlight_shape
(SlateBrush): [Read-Write] Highlight Shape: The shape of highlighted textoverflow_policy
(TextOverflowPolicy): [Read-Write] Overflow Policy: Determines what happens to text that is clipped and doesn’t fit within the clip rect of a text widgetselected_background_color
(SlateColor): [Read-Write] Selected Background Color: The background color of selected textshadow_color_and_opacity
(LinearColor): [Read-Write] Shadow Color and Opacity: The color and opacity of the shadowshadow_offset
(Vector2D): [Read-Write] Shadow Offset: How much should the shadow be offset? An offset of 0 implies no shadow.strike_brush
(SlateBrush): [Read-Write] Strike Brush: The brush used to draw an strike through the text (if any)transform_policy
(TextTransformPolicy): [Read-Write] Transform Policy: The Text Transform Policy (defaults to None)underline_brush
(SlateBrush): [Read-Write] Underline Brush: The brush used to draw an underline under the text (if any)
- property color_and_opacity¶
[Read-Write] Color and Opacity: The color and opacity of this text
- Type
- property font¶
[Read-Write] Font: Font family and size to be used when displaying this text.
- Type
- property highlight_color¶
[Read-Write] Highlight Color: The color of highlighted text
- Type
- property highlight_shape¶
[Read-Write] Highlight Shape: The shape of highlighted text
- Type
- property overflow_policy¶
[Read-Write] Overflow Policy: Determines what happens to text that is clipped and doesn’t fit within the clip rect of a text widget
- Type
- property shadow_color_and_opacity¶
[Read-Write] Shadow Color and Opacity: The color and opacity of the shadow
- Type
- property shadow_offset¶
[Read-Write] Shadow Offset: How much should the shadow be offset? An offset of 0 implies no shadow.
- Type
(Vector2D)
- property strike_brush¶
[Read-Write] Strike Brush: The brush used to draw an strike through the text (if any)
- Type
- property transform_policy¶
[Read-Write] Transform Policy: The Text Transform Policy (defaults to None)
- Type
- property underline_brush¶
[Read-Write] Underline Brush: The brush used to draw an underline under the text (if any)
- Type