application/browser.c

Fri, 11 Dec 2020 18:32:54 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 11 Dec 2020 18:32:54 +0100
changeset 4
d8e8f34e65ee
parent 3
c04433993fbb
permissions
-rw-r--r--

add sqlite dependency

/*
 * 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, 220);
    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