Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
user_message.h File Reference

Telling the user something happened. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dt_control_log (const char *msg,...) __attribute__((format(printf
 Post a message to the log overlay drawn over the centre view.
 
void void dt_toast_log (const char *msg,...) __attribute__((format(printf
 Post a transient toast, escaping markup in msg.
 
void void void dt_toast_markup_log (const char *msg,...) __attribute__((format(printf
 Post a transient toast, interpreting Pango markup in msg.
 
void void void void dt_control_log_busy_enter ()
 
void dt_control_toast_busy_enter ()
 
void dt_control_log_busy_leave ()
 
void dt_control_toast_busy_leave ()
 

Detailed Description

Telling the user something happened.

Split out of control/control.h, which 125 files include and 36 of them include for nothing else: twelve are IOP plugins compiling the whole view API to report one error, and one is in src/pixel, two layers below. control.h reaches libs/lib.h (a layer-7 header in a layer-3 one, because the progress vtable types its callbacks in dt_lib_module_t) and so hands 24 project headers to every includer.

This header deliberately includes NOTHING. Every signature below is plain C, so a file that only wants to say something to the user pays for exactly that. Keep it that way: the moment this needs a type from somewhere else, that type belongs in the caller's argument list, not in an include here.

WHERE THE MESSAGE GOES is not this header's business, and none of these is GUI-only – dt_control_log() is called from worker threads throughout, and the render half lives in control.c (log/toast rings) and, for the pipeline banner, in the orchestrator.

Definition in file user_message.h.

Function Documentation

◆ dt_control_log()

void dt_control_log ( const char *  msg,
  ... 
)

Post a message to the log overlay drawn over the centre view.

◆ dt_control_log_busy_enter()

◆ dt_control_log_busy_leave()

◆ dt_control_toast_busy_enter()

◆ dt_control_toast_busy_leave()

◆ dt_toast_log()

void void dt_toast_log ( const char *  msg,
  ... 
)

Post a transient toast, escaping markup in msg.

◆ dt_toast_markup_log()

void void void dt_toast_markup_log ( const char *  msg,
  ... 
)

Post a transient toast, interpreting Pango markup in msg.