![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
One shape's membership of one group, BY VALUE. More...
#include <masks_types.h>
Collaboration diagram for dt_masks_member_t:Data Fields | |
| int | formid |
| int | parentid |
| guint | index |
| dt_masks_state_t | state |
| float | opacity |
One shape's membership of one group, BY VALUE.
The caller gets a copy, never a pointer into the group's own list. That is deliberate twice over: the entry it would otherwise point at belongs to a refcounted, copy-on-write object that the next dt_masks_cow_touch() replaces wholesale, and dt_masks_form_group_t itself can never be made opaque – common/xmp_sidecar.cc casts an XMP blob straight to an array of them and validates the length against sizeof, so its size and field order ARE the on-disk format in every user's sidecars. A value type is what lets everyone else stop depending on that layout.
index is the position in the group's list, and position is meaning: it is the compositing order, the GTK row identity, and the index into iop/retouch.c's rt_forms[] and iop/spots.c's clone_algo[] – both persisted in the user's database.
Definition at line 171 of file masks_types.h.
| int dt_masks_member_t::formid |
Definition at line 173 of file masks_types.h.
Referenced by _copy_members_preserves_order_and_reports_the_total().
| guint dt_masks_member_t::index |
Definition at line 175 of file masks_types.h.
Referenced by _tree_apply_operation().
| float dt_masks_member_t::opacity |
Definition at line 177 of file masks_types.h.
Referenced by _a_shared_group_is_cloned_before_its_opacity_changes(), _tree_apply_operation(), dt_masks_form_change_opacity(), dt_masks_form_get_interaction_value(), dt_masks_form_set_interaction_value(), and rt_masks_form_change_opacity().
| int dt_masks_member_t::parentid |
Definition at line 174 of file masks_types.h.
| dt_masks_state_t dt_masks_member_t::state |
Definition at line 176 of file masks_types.h.
Referenced by _tree_apply_operation(), and update_modelines.modelines_updater_t::process_line().