|
Blender V5.3
|
Public Attributes | |
| Button * | but |
| ButAlign * | neighbors [4] |
| std::array< float *, 4 > | borders |
| float4 | dists |
| char4 | flags |
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 45 of file interface_align.cc.
| std::array<float *, 4> blender::ui::ButAlign::borders |
Definition at line 52 of file interface_align.cc.
Referenced by blender::ui::block_align_butal_cmp(), blender::ui::block_align_calc(), blender::ui::block_align_proximity_compute(), and blender::ui::block_align_stitch_neighbors().
| Button* blender::ui::ButAlign::but |
Definition at line 46 of file interface_align.cc.
Referenced by blender::ui::block_align_butal_cmp(), blender::ui::block_align_calc(), blender::ui::block_align_proximity_compute(), and blender::ui::block_align_stitch_neighbors().
| float4 blender::ui::ButAlign::dists |
Definition at line 55 of file interface_align.cc.
Referenced by blender::ui::block_align_calc(), blender::ui::block_align_proximity_compute(), and blender::ui::block_align_stitch_neighbors().
| char4 blender::ui::ButAlign::flags |
Definition at line 59 of file interface_align.cc.
Referenced by blender::ui::block_align_proximity_compute(), and blender::ui::block_align_stitch_neighbors().
| ButAlign* blender::ui::ButAlign::neighbors[4] |
Definition at line 49 of file interface_align.cc.
Referenced by blender::ui::block_align_calc(), blender::ui::block_align_proximity_compute(), and blender::ui::block_align_stitch_neighbors().