Blender
V3.3
|
Public Attributes | |
uiBut * | but |
struct ButAlign * | neighbors [4] |
float * | borders [4] |
float | dists [4] |
char | flags [4] |
This struct stores a (simplified) 2D representation of all buttons of a same align group, with their immediate neighbors (if found), and needed value to compute 'stitching' of aligned buttons.
+--------+-------+ | BUT 1 | BUT 2 | BUT 3 has two 'top' neighbors... |----------------| => In practice, we only store one of BUT 1 or 2 (which ones is not | BUT 3 | really deterministic), and assume the other stores a ref to BUT 3. +----------------+
This will probably not work in all possible cases, but not sure we want to support such exotic cases anyway.
Definition at line 44 of file interface_align.c.
float* ButAlign::borders[4] |
Definition at line 51 of file interface_align.c.
Referenced by block_align_proximity_compute(), block_align_stitch_neighbors(), ui_block_align_butal_cmp(), and ui_block_align_calc().
uiBut* ButAlign::but |
Definition at line 45 of file interface_align.c.
Referenced by block_align_proximity_compute(), block_align_stitch_neighbors(), ui_block_align_but_to_region(), ui_block_align_butal_cmp(), ui_block_align_calc(), and ui_but_can_align().
float ButAlign::dists[4] |
Definition at line 54 of file interface_align.c.
Referenced by block_align_proximity_compute(), block_align_stitch_neighbors(), and ui_block_align_calc().
char ButAlign::flags[4] |
Definition at line 58 of file interface_align.c.
Referenced by block_align_proximity_compute(), and block_align_stitch_neighbors().
struct ButAlign* ButAlign::neighbors[4] |
Definition at line 48 of file interface_align.c.
Referenced by block_align_proximity_compute(), block_align_stitch_neighbors(), and ui_block_align_calc().