25#include <libnsfb_plot.h>
48 if ((widget->
bg & 0xFF000000) == 0)
55 nsfb_claim(
nsfb, &bbox);
57 nsfb_plot_rectangle_fill(
nsfb, &bbox, widget->
bg);
59 nsfb_update(
nsfb, &bbox);
Browser window creation and manipulation interface.
fbtk_widget_t * fbtk_widget_new(fbtk_widget_t *parent, enum fbtk_widgettype_e type, int x, int y, int width, int height)
creates a new widget and insert it into to hierachy.
fbtk_callback fbtk_set_handler(fbtk_widget_t *widget, fbtk_callback_type cbt, fbtk_callback cb, void *pw)
Set a callback handler.
bool fbtk_get_bbox(fbtk_widget_t *widget, struct nsfb_bbox_s *bbox)
Get a widget's bounding box in absolute screen co-ordinates.
nsfb_t * fbtk_get_nsfb(fbtk_widget_t *widget)
Retrieve the framebuffer library handle from toolkit widget.
fbtk_widget_t * fbtk_create_window(fbtk_widget_t *parent, int x, int y, int width, int height, colour bg)
Create a window widget.
static int fb_redraw_window(fbtk_widget_t *widget, fbtk_callback_info *cbi)
Window redraw callback.
widget callback information
uint32_t colour
Colour type: XBGR.