application/browser.c

changeset 3
c04433993fbb
child 4
d8e8f34e65ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/application/browser.c	Fri Dec 11 11:46:19 2020 +0100
@@ -0,0 +1,22 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+#include "browser.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+
+UIWIDGET document_browser_create(UiObject *obj) {
+    ui_layout_width(obj, 250);
+    UIWIDGET browser = ui_drawingarea(obj, browser_draw, NULL);
+    return browser;
+}
+
+void browser_draw(UiEvent *event, UiGraphics *g, void *udata) {   
+    ui_graphics_color(g, 100, 100, 100);
+    
+    ui_draw_rect(g, 0, 0, g->width, g->height, TRUE);
+}

mercurial