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

#include <collection.h>

+ Collaboration diagram for dt_collection_rule_t:

Data Fields

dt_collection_properties_t property
 
int mode
 
const char * text
 
gboolean recursive
 

Detailed Description

One rule of a collection: "images whose <property> <mode> matches <text>".

This is what crosses into the database module. The module turns rules into SQL; reading them out of the user's configuration is common/collection.c's.

Definition at line 171 of file collection.h.

Field Documentation

◆ mode

int dt_collection_rule_t::mode

0 = AND, 1 = OR, 2 = AND NOT

Definition at line 174 of file collection.h.

Referenced by dt_collection_update_query().

◆ property

dt_collection_properties_t dt_collection_rule_t::property

Definition at line 173 of file collection.h.

Referenced by dt_collection_update_query().

◆ recursive

gboolean dt_collection_rule_t::recursive

for the path-like properties: match below the value too

Definition at line 176 of file collection.h.

Referenced by dt_collection_update_query().

◆ text

const char* dt_collection_rule_t::text

empty or NULL means "match everything"

Definition at line 175 of file collection.h.

Referenced by dt_collection_free(), dt_collection_set_rules(), and dt_collection_update_query().


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