diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-10-04 23:54:42 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-10-04 23:54:42 +0000 |
commit | 403f12872d55a71b04287ed828be0c63be19e856 (patch) | |
tree | 190dbf327b98bb49831dc609f6c13bd828ded377 /gtk | |
parent | 7144ce65ebbc7b1cb77d1f6b678a6d2b3c6547d1 (diff) | |
download | netsurf-403f12872d55a71b04287ed828be0c63be19e856.tar.gz netsurf-403f12872d55a71b04287ed828be0c63be19e856.tar.bz2 |
[project @ 2004-10-04 23:54:42 by rjw]
Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too.
svn path=/import/netsurf/; revision=1301
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_bitmap.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk/gtk_bitmap.c b/gtk/gtk_bitmap.c index 7aaedf075..3a228a5ef 100644 --- a/gtk/gtk_bitmap.c +++ b/gtk/gtk_bitmap.c @@ -44,6 +44,33 @@ struct bitmap *bitmap_create(int width, int height) /**
+ * Sets whether a bitmap should be plotted opaque
+ *
+ * \param bitmap a bitmap, as returned by bitmap_create()
+ * \param opaque whether the bitmap should be plotted opaque
+ */
+void bitmap_set_opaque(struct bitmap *bitmap, bool opaque)
+{
+ assert(bitmap);
+/* todo: set bitmap as opaque */
+}
+
+
+/**
+ * Tests whether a bitmap has an opaque alpha channel
+ *
+ * \param bitmap a bitmap, as returned by bitmap_create()
+ * \return whether the bitmap is opaque
+ */
+bool bitmap_test_opaque(struct bitmap *bitmap)
+{
+ assert(bitmap);
+/* todo: test if bitmap as opaque */
+ return false;
+}
+
+
+/**
* Return a pointer to the pixel data in a bitmap.
*
* \param bitmap a bitmap, as returned by bitmap_create()
|