NetSurf
Variables
plot_style.c File Reference

Plotter global styles. More...

#include "netsurf/plot_style.h"
Include dependency graph for plot_style.c:

Go to the source code of this file.

Variables

static plot_style_t plot_style_fill_white_static
 
plot_style_tplot_style_fill_white = &plot_style_fill_white_static
 
static plot_style_t plot_style_fill_black_static
 
plot_style_tplot_style_fill_black = &plot_style_fill_black_static
 
static plot_style_t plot_style_fill_red_static
 
plot_style_tplot_style_fill_red = &plot_style_fill_red_static
 
static const plot_style_t plot_style_content_edge_static
 
plot_style_t const *const plot_style_content_edge
 
static const plot_style_t plot_style_padding_edge_static
 
plot_style_t const *const plot_style_padding_edge
 
static const plot_style_t plot_style_margin_edge_static
 
plot_style_t const *const plot_style_margin_edge
 
static const plot_style_t plot_style_broken_object_static
 
plot_style_t const *const plot_style_broken_object
 
static const plot_font_style_t plot_fstyle_broken_object_static
 
plot_font_style_t const *const plot_fstyle_broken_object
 
static plot_style_t plot_style_caret_static
 
plot_style_tplot_style_caret = &plot_style_caret_static
 
static plot_style_t plot_style_fill_wbasec_static
 plot style for filled widget base colour. More...
 
plot_style_tplot_style_fill_wbasec = &plot_style_fill_wbasec_static
 
static plot_style_t plot_style_fill_darkwbasec_static
 plot style for dark filled widget base colour . More...
 
plot_style_tplot_style_fill_darkwbasec = &plot_style_fill_darkwbasec_static
 
static plot_style_t plot_style_fill_lightwbasec_static
 plot style for light filled widget base colour. More...
 
plot_style_tplot_style_fill_lightwbasec = &plot_style_fill_lightwbasec_static
 
static plot_style_t plot_style_fill_wblobc_static
 plot style for widget background. More...
 
plot_style_tplot_style_fill_wblobc = &plot_style_fill_wblobc_static
 
static plot_style_t plot_style_stroke_wblobc_static
 plot style for checkbox cross. More...
 
plot_style_tplot_style_stroke_wblobc = &plot_style_stroke_wblobc_static
 
static plot_style_t plot_style_stroke_darkwbasec_static
 stroke style for widget double dark colour. More...
 
plot_style_tplot_style_stroke_darkwbasec = &plot_style_stroke_darkwbasec_static
 
static plot_style_t plot_style_stroke_lightwbasec_static
 stroke style for widget double light colour. More...
 
plot_style_tplot_style_stroke_lightwbasec = &plot_style_stroke_lightwbasec_static
 
static const plot_font_style_t plot_style_font_static
 
plot_font_style_t const *const plot_style_font = &plot_style_font_static
 

Detailed Description

Plotter global styles.

These plot styles are globaly available and used in many places.

Definition in file plot_style.c.

Variable Documentation

◆ plot_fstyle_broken_object

plot_font_style_t const* const plot_fstyle_broken_object
Initial value:
=
static const plot_font_style_t plot_fstyle_broken_object_static
Definition: plot_style.c:82

Definition at line 90 of file plot_style.c.

Referenced by html_redraw_box().

◆ plot_fstyle_broken_object_static

const plot_font_style_t plot_fstyle_broken_object_static
static
Initial value:
= {
.size = 16 * PLOT_STYLE_SCALE,
.weight = 400,
.flags = FONTF_NONE,
.background = 0x8888ff,
.foreground = 0x000044,
}
@ FONTF_NONE
Definition: plot_style.h:102
@ PLOT_FONT_FAMILY_SANS_SERIF
Definition: plot_style.h:89
#define PLOT_STYLE_SCALE
Scaling factor for plot styles.
Definition: plot_style.h:45

Definition at line 82 of file plot_style.c.

◆ plot_style_broken_object

plot_style_t const* const plot_style_broken_object
Initial value:
=
static const plot_style_t plot_style_broken_object_static
Definition: plot_style.c:72

Definition at line 79 of file plot_style.c.

Referenced by html_redraw_box().

◆ plot_style_broken_object_static

const plot_style_t plot_style_broken_object_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
.fill_colour = 0x008888ff,
.stroke_type = PLOT_OP_TYPE_SOLID,
.stroke_colour = 0x000000ff,
.stroke_width = plot_style_int_to_fixed(1),
}
#define plot_style_int_to_fixed(v)
Definition: plot_style.h:51
@ PLOT_OP_TYPE_SOLID
Solid colour.
Definition: plot_style.h:67

Definition at line 72 of file plot_style.c.

◆ plot_style_caret

plot_style_t* plot_style_caret = &plot_style_caret_static

Definition at line 98 of file plot_style.c.

◆ plot_style_caret_static

plot_style_t plot_style_caret_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
.stroke_colour = 0x0000ff,
}

Definition at line 94 of file plot_style.c.

◆ plot_style_content_edge

plot_style_t const* const plot_style_content_edge
Initial value:
=
static const plot_style_t plot_style_content_edge_static
Definition: plot_style.c:47

Definition at line 52 of file plot_style.c.

Referenced by html_redraw_box().

◆ plot_style_content_edge_static

const plot_style_t plot_style_content_edge_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
.stroke_colour = 0x00ff0000,
.stroke_width = plot_style_int_to_fixed(1),
}

Definition at line 47 of file plot_style.c.

◆ plot_style_fill_black

plot_style_t* plot_style_fill_black = &plot_style_fill_black_static

Definition at line 38 of file plot_style.c.

Referenced by ro_gui_status_bar_redraw(), and textplain_redraw().

◆ plot_style_fill_black_static

plot_style_t plot_style_fill_black_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
.fill_colour = 0x0,
}

Definition at line 34 of file plot_style.c.

◆ plot_style_fill_darkwbasec

plot_style_t* plot_style_fill_darkwbasec = &plot_style_fill_darkwbasec_static

Definition at line 116 of file plot_style.c.

Referenced by html_redraw_radio().

◆ plot_style_fill_darkwbasec_static

plot_style_t plot_style_fill_darkwbasec_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
}
#define WIDGET_BASEC
light grey widget base colour
Definition: plot_style.h:33
#define double_darken_colour(c1)
Definition: plot_style.h:138

plot style for dark filled widget base colour .

Definition at line 112 of file plot_style.c.

◆ plot_style_fill_lightwbasec

plot_style_t* plot_style_fill_lightwbasec = &plot_style_fill_lightwbasec_static

Definition at line 123 of file plot_style.c.

Referenced by form_redraw_select_menu(), and html_redraw_radio().

◆ plot_style_fill_lightwbasec_static

plot_style_t plot_style_fill_lightwbasec_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
}
#define double_lighten_colour(c1)
Definition: plot_style.h:156

plot style for light filled widget base colour.

Definition at line 119 of file plot_style.c.

◆ plot_style_fill_red

plot_style_t* plot_style_fill_red = &plot_style_fill_red_static

Definition at line 44 of file plot_style.c.

Referenced by ro_gui_progress_bar_redraw_window().

◆ plot_style_fill_red_static

plot_style_t plot_style_fill_red_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
.fill_colour = 0x000000ff,
}

Definition at line 40 of file plot_style.c.

◆ plot_style_fill_wbasec

plot_style_t* plot_style_fill_wbasec = &plot_style_fill_wbasec_static

Definition at line 109 of file plot_style.c.

Referenced by html_redraw_checkbox(), and html_redraw_radio().

◆ plot_style_fill_wbasec_static

plot_style_t plot_style_fill_wbasec_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
.fill_colour = WIDGET_BASEC,
}

plot style for filled widget base colour.

Definition at line 105 of file plot_style.c.

◆ plot_style_fill_wblobc

plot_style_t* plot_style_fill_wblobc = &plot_style_fill_wblobc_static

Definition at line 131 of file plot_style.c.

Referenced by html_redraw_checkbox(), and html_redraw_radio().

◆ plot_style_fill_wblobc_static

plot_style_t plot_style_fill_wblobc_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
.fill_colour = WIDGET_BLOBC,
}
#define WIDGET_BLOBC
black blob colour
Definition: plot_style.h:36

plot style for widget background.

Definition at line 127 of file plot_style.c.

◆ plot_style_fill_white

plot_style_t* plot_style_fill_white = &plot_style_fill_white_static

◆ plot_style_fill_white_static

plot_style_t plot_style_fill_white_static
static
Initial value:
= {
.fill_type = PLOT_OP_TYPE_SOLID,
.fill_colour = 0xffffff,
}

Definition at line 28 of file plot_style.c.

◆ plot_style_font

plot_font_style_t const* const plot_style_font = &plot_style_font_static

Definition at line 165 of file plot_style.c.

Referenced by amiga_plugin_hack_redraw(), redraw_entry(), and svg_redraw_internal().

◆ plot_style_font_static

const plot_font_style_t plot_style_font_static
static
Initial value:
= {
.size = 8 * PLOT_STYLE_SCALE,
.weight = 400,
.flags = FONTF_NONE,
.background = 0xffffff,
.foreground = 0x000000,
}

Definition at line 157 of file plot_style.c.

◆ plot_style_margin_edge

plot_style_t const* const plot_style_margin_edge
Initial value:
=
static const plot_style_t plot_style_margin_edge_static
Definition: plot_style.c:63

Definition at line 68 of file plot_style.c.

Referenced by html_redraw_box().

◆ plot_style_margin_edge_static

const plot_style_t plot_style_margin_edge_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
.stroke_colour = 0x0000ffff,
.stroke_width = plot_style_int_to_fixed(1),
}

Definition at line 63 of file plot_style.c.

◆ plot_style_padding_edge

plot_style_t const* const plot_style_padding_edge
Initial value:
=
static const plot_style_t plot_style_padding_edge_static
Definition: plot_style.c:55

Definition at line 60 of file plot_style.c.

Referenced by html_redraw_box().

◆ plot_style_padding_edge_static

const plot_style_t plot_style_padding_edge_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
.stroke_colour = 0x000000ff,
.stroke_width = plot_style_int_to_fixed(1),
}

Definition at line 55 of file plot_style.c.

◆ plot_style_stroke_darkwbasec

plot_style_t* plot_style_stroke_darkwbasec = &plot_style_stroke_darkwbasec_static

Definition at line 146 of file plot_style.c.

Referenced by form_redraw_select_menu(), and html_redraw_checkbox().

◆ plot_style_stroke_darkwbasec_static

plot_style_t plot_style_stroke_darkwbasec_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
}

stroke style for widget double dark colour.

Definition at line 142 of file plot_style.c.

◆ plot_style_stroke_lightwbasec

plot_style_t* plot_style_stroke_lightwbasec = &plot_style_stroke_lightwbasec_static

Definition at line 153 of file plot_style.c.

Referenced by html_redraw_checkbox().

◆ plot_style_stroke_lightwbasec_static

plot_style_t plot_style_stroke_lightwbasec_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
}

stroke style for widget double light colour.

Definition at line 149 of file plot_style.c.

◆ plot_style_stroke_wblobc

plot_style_t* plot_style_stroke_wblobc = &plot_style_stroke_wblobc_static

Definition at line 139 of file plot_style.c.

Referenced by html_redraw_checkbox().

◆ plot_style_stroke_wblobc_static

plot_style_t plot_style_stroke_wblobc_static
static
Initial value:
= {
.stroke_type = PLOT_OP_TYPE_SOLID,
.stroke_colour = WIDGET_BLOBC,
.stroke_width = plot_style_int_to_fixed(2),
}

plot style for checkbox cross.

Definition at line 134 of file plot_style.c.