|
NetSurf
|
#include <stdbool.h>#include <stdlib.h>#include <libnsfb.h>#include <libnsfb_plot.h>#include "netsurf/browser_window.h"#include "framebuffer/gui.h"#include "framebuffer/fbtk.h"#include "widget.h"Go to the source code of this file.
Functions | |
| static int | fb_redraw_window (fbtk_widget_t *widget, fbtk_callback_info *cbi) |
| Window redraw callback. More... | |
| fbtk_widget_t * | fbtk_create_window (fbtk_widget_t *parent, int x, int y, int width, int height, colour bg) |
| Create a window widget. More... | |
|
static |
Window redraw callback.
Called when a window requires redrawing.
| widget | The widget to be redrawn. |
| cbi | The callback parameters. |
Definition at line 43 of file window.c.
References fbtk_widget_s::bg, fbtk_get_bbox(), fbtk_get_nsfb(), and nsfb.
Referenced by fbtk_create_window().
| fbtk_widget_t * fbtk_create_window | ( | fbtk_widget_t * | parent, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| colour | bg | ||
| ) |
Create a window widget.
| parent | The parent window or the root widget for a top level window. |
| x | The x location relative to the parent window. |
| y | the y location relative to the parent window. |
| width | The width of the window. 0 indicates parents width should be used. Negative value indicates parents width less the value should be used. The width is limited to lie within the parent window. |
| height | The height of the window limited in a similar way to the /a width. |
| bg | The background colour. |
Definition at line 66 of file window.c.
References fbtk_widget_s::bg, fb_redraw_window(), FB_WIDGET_TYPE_WINDOW, FBTK_CBT_REDRAW, fbtk_set_handler(), fbtk_widget_new(), height, parent, and width.
Referenced by create_normal_browser_window(), create_toolbar(), fb_corewindow_init(), and fbtk_enable_oskb().