summaryrefslogtreecommitdiff
path: root/content/content_protected.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-13 19:03:14 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-13 19:03:14 +0100
commit3a7fc30a5f1c0945c021abf185274e88f72e7080 (patch)
tree2bb5252d22b799cc01ef1ee1858fdcb5473095bf /content/content_protected.h
parent95e0a24fac2abc4cddaa91bf44304ebc3d776b17 (diff)
downloadnetsurf-3a7fc30a5f1c0945c021abf185274e88f72e7080.tar.gz
netsurf-3a7fc30a5f1c0945c021abf185274e88f72e7080.tar.bz2
implement content opacity check through the function table
Diffstat (limited to 'content/content_protected.h')
-rw-r--r--content/content_protected.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/content/content_protected.h b/content/content_protected.h
index 667f5ba7b..881a43268 100644
--- a/content/content_protected.h
+++ b/content/content_protected.h
@@ -119,7 +119,16 @@ struct content_handler {
/**
* handler dependant content sensitive internal data interface.
*/
- void * (*get_internal)(const struct content *c, void *context);
+ void *(*get_internal)(const struct content *c, void *context);
+
+ /**
+ * are the content contents opaque.
+ *
+ * Determine if this content would obscure (not mix with) any background
+ *
+ * \param c The content to check
+ */
+ bool (*is_opaque)(struct content *c);
/**
* There must be one content per user for this type.