Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_masks_member_t Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ formid

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().

◆ index

guint dt_masks_member_t::index

Definition at line 175 of file masks_types.h.

Referenced by _tree_apply_operation().

◆ opacity

◆ parentid

int dt_masks_member_t::parentid

Definition at line 174 of file masks_types.h.

◆ state

dt_masks_state_t dt_masks_member_t::state

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