Blender  V3.3
Public Attributes | List of all members
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 2175 of file area.c.

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 2181 of file area.c.

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

◆ 

struct { ... } RegionTypeAlignInfo::by_type[RGN_TYPE_NUM]

◆ hidden

bool RegionTypeAlignInfo::hidden

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

Definition at line 2185 of file area.c.

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: