unreal.ToolBarStyle¶
- class unreal.ToolBarStyle(background_brush: SlateBrush = Ellipsis, separator_brush: SlateBrush = Ellipsis, label_style: TextBlockStyle = Ellipsis, editable_text_style: EditableTextBoxStyle = Ellipsis, toggle_button: CheckBoxStyle = Ellipsis, combo_button_style: ComboButtonStyle = Ellipsis, settings_button_style: ButtonStyle = Ellipsis, settings_combo_button: ComboButtonStyle = Ellipsis, settings_toggle_button: CheckBoxStyle = Ellipsis, button_style: ButtonStyle = Ellipsis, label_padding: Margin = Ellipsis, uniform_block_width: float = 0.0, uniform_block_height: float = 0.0, num_columns: int = 0, icon_padding: Margin = Ellipsis, separator_padding: Margin = Ellipsis, separator_thickness: float = 0.0, combo_button_padding: Margin = Ellipsis, button_padding: Margin = Ellipsis, check_box_padding: Margin = Ellipsis, block_padding: Margin = Ellipsis, indented_block_padding: Margin = Ellipsis, block_hovered: SlateBrush = Ellipsis, background_padding: Margin = Ellipsis, wrap_button_style: WrapButtonStyle = Ellipsis, allow_wrap_button: bool = False, allow_wrapping_default: bool = False, icon_size: DeprecateSlateVector2D = Ellipsis, show_labels: bool = False, button_content_max_width: float = 0.0, button_text_min_width: float = 0.0, button_text_max_width: float = 0.0, button_content_fill_width: float = 0.0, combo_content_min_width: float = 0.0, combo_content_max_width: float = 0.0, combo_content_horizontal_alignment: HorizontalAlignment = Ellipsis, icon_padding_with_visible_label: Margin = Ellipsis, icon_padding_with_collapsed_label: Margin = Ellipsis, vertical_alignment_override: type = (), raised_children_right_padding: float = 0.0)¶
Bases:
SlateWidgetStyleRepresents the appearance of a toolbar
C++ Source:
Module: SlateCore
File: ToolBarStyle.h
Editor Properties: (see get_editor_property/set_editor_property)
allow_wrap_button(bool): [Read-Write] Set to false if the wrap button should never be shown (even if entries are clipped)allow_wrapping_default(bool): [Read-Write] Set to false if the toolbar should not wrap (to the next line) by default, but can be overridden per section or entrybackground_brush(SlateBrush): [Read-Write] The brush used for the background of the toolbarbackground_padding(Margin): [Read-Write]block_hovered(SlateBrush): [Read-Write] Hovered brush for an entire blockblock_padding(Margin): [Read-Write]button_content_fill_width(float): [Read-Write]button_content_max_width(float): [Read-Write]button_padding(Margin): [Read-Write]button_style(ButtonStyle): [Read-Write]button_text_max_width(float): [Read-Write]button_text_min_width(float): [Read-Write]check_box_padding(Margin): [Read-Write]combo_button_padding(Margin): [Read-Write]combo_button_style(ComboButtonStyle): [Read-Write]combo_content_horizontal_alignment(HorizontalAlignment): [Read-Write]combo_content_max_width(float): [Read-Write] Max width that label text block slot in combo buttons should have. 0 means no max.combo_content_min_width(float): [Read-Write] Min width that label text block slot in combo buttons should have.editable_text_style(EditableTextBoxStyle): [Read-Write]expand_brush(SlateBrush): [Read-Write] The brush used for the expand arrow when the toolbar runs out of room and needs to display toolbar items in a menu deprecated: Use WrapButtonStyle.ExpandBrush insteadicon_padding(Margin): [Read-Write]icon_padding_with_collapsed_label(Margin): [Read-Write]icon_padding_with_visible_label(Margin): [Read-Write]icon_size(DeprecateSlateVector2D): [Read-Write]indented_block_padding(Margin): [Read-Write]label_padding(Margin): [Read-Write]label_style(TextBlockStyle): [Read-Write]num_columns(int32): [Read-Write]raised_children_right_padding(float): [Read-Write]separator_brush(SlateBrush): [Read-Write]separator_padding(Margin): [Read-Write]separator_thickness(float): [Read-Write]settings_button_style(ButtonStyle): [Read-Write]settings_combo_button(ComboButtonStyle): [Read-Write]settings_toggle_button(CheckBoxStyle): [Read-Write]show_labels(bool): [Read-Write]toggle_button(CheckBoxStyle): [Read-Write]uniform_block_height(float): [Read-Write]uniform_block_width(float): [Read-Write]vertical_alignment_override(‘undefined’): [Read-Write]wrap_button_index(int32): [Read-Write] deprecated: Use WrapButtonStyle.Padding insteadwrap_button_padding(Margin): [Read-Write] deprecated: Use WrapButtonStyle.Padding insteadwrap_button_style(WrapButtonStyle): [Read-Write]
- property allow_wrap_button: bool¶
[Read-Write] Set to false if the wrap button should never be shown (even if entries are clipped)
- Type:
(bool)
- property allow_wrapping_default: bool¶
[Read-Write] Set to false if the toolbar should not wrap (to the next line) by default, but can be overridden per section or entry
- Type:
(bool)
- property background_brush: SlateBrush¶
[Read-Write] The brush used for the background of the toolbar
- Type:
- property block_hovered: SlateBrush¶
[Read-Write] Hovered brush for an entire block
- Type:
- property button_style: ButtonStyle¶
[Read-Write]
- Type:
- property combo_button_style: ComboButtonStyle¶
[Read-Write]
- Type:
- property combo_content_horizontal_alignment: HorizontalAlignment¶
[Read-Write]
- Type:
- property combo_content_max_width: float¶
[Read-Write] Max width that label text block slot in combo buttons should have. 0 means no max.
- Type:
(float)
- property combo_content_min_width: float¶
[Read-Write] Min width that label text block slot in combo buttons should have.
- Type:
(float)
- property editable_text_style: EditableTextBoxStyle¶
[Read-Write]
- Type:
- property expand_brush: SlateBrush¶
[Read-Write] The brush used for the expand arrow when the toolbar runs out of room and needs to display toolbar items in a menu deprecated: Use WrapButtonStyle.ExpandBrush instead
- Type:
- property icon_size: DeprecateSlateVector2D¶
[Read-Write]
- Type:
- property label_style: TextBlockStyle¶
[Read-Write]
- Type:
- property separator_brush: SlateBrush¶
[Read-Write]
- Type:
- property settings_button_style: ButtonStyle¶
[Read-Write]
- Type:
- property settings_combo_button: ComboButtonStyle¶
[Read-Write]
- Type:
- property settings_toggle_button: CheckBoxStyle¶
[Read-Write]
- Type:
- property toggle_button: CheckBoxStyle¶
[Read-Write]
- Type:
- property wrap_button_index: int¶
[Read-Write] deprecated: Use WrapButtonStyle.Padding instead
- Type:
(int32)
- property wrap_button_padding: Margin¶
[Read-Write] deprecated: Use WrapButtonStyle.Padding instead
- Type:
(Margin)
- property wrap_button_style: WrapButtonStyle¶
[Read-Write]
- Type: