25#include <libnsfb_plot.h>
48 nsfb_claim(
nsfb, &bbox);
51 if ((widget->
bg & 0xFF000000) != 0) {
53 nsfb_plot_rectangle_fill(
nsfb, &bbox, widget->
bg);
57 nsfb_plot_bitmap(
nsfb,
65 nsfb_update(
nsfb, &bbox);
77 widget->
u.
bitmap.bitmap = image;
Browser window creation and manipulation interface.
int fbtk_set_ptr(fbtk_widget_t *widget, fbtk_callback_info *cbi)
set pointer to bitmap in context.
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.
void fbtk_request_redraw(fbtk_widget_t *widget)
Indicate a widget should be redrawn.
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.
int(* fbtk_callback)(fbtk_widget_t *widget, fbtk_callback_info *cbi)
fbtk_widget_t * fbtk_create_button(fbtk_widget_t *parent, int x, int y, int width, int height, colour c, struct fbtk_bitmap *image, fbtk_callback click, void *pw)
Create a button widget with an image.
fbtk_widget_t * fbtk_create_bitmap(fbtk_widget_t *parent, int x, int y, int width, int height, colour c, struct fbtk_bitmap *image)
Create a bitmap widget.
static int fb_redraw_bitmap(fbtk_widget_t *widget, fbtk_callback_info *cbi)
void fbtk_set_bitmap(fbtk_widget_t *widget, struct fbtk_bitmap *image)
Change the bitmap in a widget.
struct fbtk_bitmap hand_image
framebuffer toolkit bitmaps
widget callback information
uint32_t colour
Colour type: XBGR.
struct rect rect
Rectangle coordinates.