NetSurf
Functions | Variables
framebuffer.h File Reference

framebuffer interface. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nsfb_t * framebuffer_initialise (const char *fename, int width, int height, int bpp)
 
bool framebuffer_resize (nsfb_t *nsfb, int width, int height, int bpp)
 
void framebuffer_finalise (void)
 
bool framebuffer_set_cursor (struct fbtk_bitmap *bm)
 
nsfb_t * framebuffer_set_surface (nsfb_t *new_nsfb)
 Set framebuffer surface to render into. More...
 

Variables

const struct plotter_table fb_plotters
 framebuffer plot operation table More...
 

Detailed Description

framebuffer interface.

Definition in file framebuffer.h.

Function Documentation

◆ framebuffer_finalise()

void framebuffer_finalise ( void  )

Definition at line 638 of file framebuffer.c.

References nsfb.

Referenced by gui_quit().

Here is the caller graph for this function:

◆ framebuffer_initialise()

nsfb_t * framebuffer_initialise ( const char *  fename,
int  width,
int  height,
int  bpp 
)

Definition at line 577 of file framebuffer.c.

References fename, framebuffer_format_from_bpp(), height, nsfb, NSLOG, and width.

Referenced by main().

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

◆ framebuffer_resize()

bool framebuffer_resize ( nsfb_t *  nsfb,
int  width,
int  height,
int  bpp 
)

Definition at line 619 of file framebuffer.c.

References framebuffer_format_from_bpp(), height, nsfb, NSLOG, and width.

Referenced by gui_resize().

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

◆ framebuffer_set_cursor()

bool framebuffer_set_cursor ( struct fbtk_bitmap bm)

Definition at line 644 of file framebuffer.c.

References fbtk_bitmap::height, fbtk_bitmap::hot_x, fbtk_bitmap::hot_y, nsfb, fbtk_bitmap::pixdata, and fbtk_bitmap::width.

Referenced by fb_url_move(), gui_window_set_pointer(), main(), and set_ptr_default_move().

Here is the caller graph for this function:

◆ framebuffer_set_surface()

nsfb_t * framebuffer_set_surface ( nsfb_t *  new_nsfb)

Set framebuffer surface to render into.

Returns
return old surface

Definition at line 649 of file framebuffer.c.

References nsfb.

Referenced by bitmap_render().

Here is the caller graph for this function:

Variable Documentation

◆ fb_plotters

const struct plotter_table fb_plotters
extern

framebuffer plot operation table

Definition at line 525 of file framebuffer.c.

Referenced by bitmap_render(), fb_local_history_draw(), fb_redraw(), fb_redraw_text(), and fb_redraw_text_button().