NetSurf
Functions | Variables
plotters.h File Reference

Target independent plotting GTK+ interface. More...

#include <gtk/gtk.h>
Include dependency graph for plotters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void nsgtk_set_colour (colour c)
 Set cairo context colour to nsgtk colour. More...
 
void nsgtk_plot_caret (int x, int y, int h)
 Plot a caret. More...
 

Variables

const struct plotter_table nsgtk_plotters
 GTK plotter table. More...
 
cairo_t * current_cr
 

Detailed Description

Target independent plotting GTK+ interface.

Definition in file plotters.h.

Function Documentation

◆ nsgtk_plot_caret()

void nsgtk_plot_caret ( int  x,
int  y,
int  h 
)

Plot a caret.

Note
It is assumed that the plotters have been set up.

Definition at line 278 of file plotters.c.

References current_cr, nsgtk_set_colour(), and nsgtk_set_solid().

Referenced by nsgtk_window_draw_event().

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

◆ nsgtk_set_colour()

void nsgtk_set_colour ( colour  c)

Set cairo context colour to nsgtk colour.

Parameters
cthe netsurf colour to set in cairo

Definition at line 51 of file plotters.c.

References current_cr.

Referenced by nsfont_paint(), nsgtk_plot_arc(), nsgtk_plot_caret(), nsgtk_plot_disc(), nsgtk_plot_line(), nsgtk_plot_path(), nsgtk_plot_polygon(), and nsgtk_plot_rectangle().

Here is the caller graph for this function:

Variable Documentation

◆ current_cr

cairo_t* current_cr
extern

◆ nsgtk_plotters

const struct plotter_table nsgtk_plotters
extern