|
1 /* |
|
2 * To change this license header, choose License Headers in Project Properties. |
|
3 * To change this template file, choose Tools | Templates |
|
4 * and open the template in the editor. |
|
5 */ |
|
6 |
|
7 #include "browser.h" |
|
8 |
|
9 #include <stdio.h> |
|
10 #include <stdlib.h> |
|
11 |
|
12 UIWIDGET document_browser_create(UiObject *obj) { |
|
13 ui_layout_width(obj, 250); |
|
14 UIWIDGET browser = ui_drawingarea(obj, browser_draw, NULL); |
|
15 return browser; |
|
16 } |
|
17 |
|
18 void browser_draw(UiEvent *event, UiGraphics *g, void *udata) { |
|
19 ui_graphics_color(g, 100, 100, 100); |
|
20 |
|
21 ui_draw_rect(g, 0, 0, g->width, g->height, TRUE); |
|
22 } |