NetSurf
Functions
fill.c File Reference
#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"
Include dependency graph for fill.c:

Go to the source code of this file.

Functions

static int fb_redraw_fill (fbtk_widget_t *widget, fbtk_callback_info *cbi)
 
fbtk_widget_tfbtk_create_fill (fbtk_widget_t *parent, int x, int y, int width, int height, colour c)
 Create a filled rectangle. More...
 

Function Documentation

◆ fb_redraw_fill()

static int fb_redraw_fill ( fbtk_widget_t widget,
fbtk_callback_info cbi 
)
static

Definition at line 35 of file fill.c.

References fbtk_widget_s::bg, fbtk_get_bbox(), fbtk_get_nsfb(), and nsfb.

Referenced by fbtk_create_fill().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fbtk_create_fill()

fbtk_widget_t * fbtk_create_fill ( fbtk_widget_t window,
int  x,
int  y,
int  width,
int  height,
colour  c 
)

Create a filled rectangle.

Create a widget which is a filled rectangle, usually used for backgrounds.

Parameters
windowThe window to add the filled area widget to.
xX coordinate of widget.
yY coordinate of widget.
widthWidth of the widget
heightHeight of the widget
cwidget colour
Returns
new widget handle or NULL on error.

Definition at line 59 of file fill.c.

References fbtk_widget_s::bg, fb_redraw_fill(), FB_WIDGET_TYPE_FILL, FBTK_CBT_REDRAW, fbtk_set_handler(), fbtk_widget_new(), height, fbtk_widget_s::mapped, parent, and width.

Referenced by create_normal_browser_window(), and fb_corewindow_init().

Here is the call graph for this function:
Here is the caller graph for this function: