Blender V5.0
RegionTypeAlignInfo Struct Reference

Public Attributes

struct { 
   short   alignment 
   bool   hidden 
by_type [RGN_TYPE_NUM]

Detailed Description

Store the alignment & other info per region type (use as a region-type aligned array).

Note
Currently this is only done for headers, we might want to do this with the tool-bar in the future too.

Definition at line 2431 of file area.cc.

Member Data Documentation

◆ alignment

short RegionTypeAlignInfo::alignment

Values match ARegion.alignment without flags (see RGN_ALIGN_ENUM_FROM_MASK). store all so we can sync alignment without adding extra checks.

Definition at line 2437 of file area.cc.

Referenced by region_align_info_from_area(), region_align_info_to_area_for_headers(), and region_alignment_from_header_and_tool_header_state().

◆ [struct]

◆ hidden

bool RegionTypeAlignInfo::hidden

Needed for detecting which header displays the space-type switcher.

Definition at line 2441 of file area.cc.

Referenced by region_align_info_from_area(), region_align_info_to_area_for_headers(), and region_alignment_from_header_and_tool_header_state().


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