Blender V5.3
blender::ui::TextIconPadFactor Struct Reference

Public Attributes

float text
float icon
float icon_only

Detailed Description

Factors to apply to UI_UNIT_X when calculating button width. This is used when the layout is a varying size, see layout_variable_size.

Definition at line 413 of file interface_layout.cc.

Member Data Documentation

◆ icon

float blender::ui::TextIconPadFactor::icon

◆ icon_only

float blender::ui::TextIconPadFactor::icon_only

Definition at line 416 of file interface_layout.cc.

Referenced by blender::ui::item_menu(), and blender::ui::text_icon_width_ex().

◆ text

float blender::ui::TextIconPadFactor::text

The documentation for this struct was generated from the following file: