Fri, 11 Dec 2020 11:46:19 +0100
add drawingarea and textarea group
/* * 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); }