summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/bitmap_table.h
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-04-05 21:39:01 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-06-10 08:24:39 +0200
commit6fd280bb5b27842a0ef2977798566c37bd4e1d0e (patch)
tree8e5dd8aa1adf8c6550b955d130c81c36b3db9ea5 /frontends/kolibrios/bitmap_table.h
parent9bf5ecfa87d022645e986249270c5a89e27f46fe (diff)
downloadnetsurf-6fd280bb5b27842a0ef2977798566c37bd4e1d0e.tar.gz
netsurf-6fd280bb5b27842a0ef2977798566c37bd4e1d0e.tar.bz2
Add kolibrios/ dir : Step 1 towards porting this to Kolibri OS
Diffstat (limited to 'frontends/kolibrios/bitmap_table.h')
-rw-r--r--frontends/kolibrios/bitmap_table.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/frontends/kolibrios/bitmap_table.h b/frontends/kolibrios/bitmap_table.h
new file mode 100644
index 000000000..e11274c61
--- /dev/null
+++ b/frontends/kolibrios/bitmap_table.h
@@ -0,0 +1,96 @@
+/* ------------------------------ */
+/* Part about GUI BITMAP TABLE. Will contain all functions required as well. */
+/* ------------------------------ */
+
+void *kolibri_create_bitmap(int width, int height, unsigned int state)
+{
+
+}
+
+
+void kolibri_destroy_bitmap(void *bitmap)
+{
+
+}
+
+
+void kolibri_set_bitmap_opaque(void *bitmap, bool opaque)
+{
+
+}
+
+
+void kolibri_get_bitmap_opaque(void *bitmap)
+{
+
+}
+
+
+bool kolibri_test_bitmap_opaque(void *bitmap)
+{
+
+}
+
+
+unsigned char *kolibri_get_imgbuffer_from_bitmap(void *bitmap)
+{
+
+}
+
+
+size_t kolibri_get_numbytes_row_image(void *bitmap)
+{
+
+}
+
+
+int kolibri_get_width_bitmap(void *bitmap)
+{
+
+}
+
+
+int kolibri_get_height_bitmap(void *bitmap)
+{
+
+}
+
+
+size_t kolibri_get_bpp(void *bitmap)
+{
+
+}
+
+
+bool kolibri_save_to_disk_bitmap(void *bitmap, const char *path, unsigned flags)
+{
+
+}
+
+
+void kolibri_mark_modified(void *bitmap)
+{
+
+}
+
+
+nserror kolibri_render_content_bitmap(struct bitmap *bitmap, struct hlcache_handle *content)
+{
+
+}
+
+struct gui_bitmap_table kolibri_bitmap_table = {
+ .create = kolibri_create_bitmap,
+ .destroy = kolibri_destroy_bitmap,
+ .set_opaque = kolibri_set_bitmap_opaque,
+ .get_opaque = kolibri_get_bitmap_opaque,
+ .test_opaque = kolibri_test_bitmap_opaque,
+ .get_buffer = kolibri_get_imgbuffer_from_bitmap,
+ .get_rowstride = kolibri_get_numbytes_row_image,
+ .get_width = kolibri_get_width_bitmap,
+ .get_height = kolibri_get_height_bitmap,
+ .get_bpp = kolibri_get_bpp,
+ .save = kolibri_save_to_disk_bitmap,
+ .modified = kolibri_mark_modified,
+ .render = kolibri_render_content_bitmap,
+ };