Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
test_stroke_raster.c File Reference
#include "widgets/stroke_raster.h"
#include <cairo.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <cmocka.h>
+ Include dependency graph for test_stroke_raster.c:

Go to the source code of this file.

Functions

static uint32_t _pixel (cairo_surface_t *surface, const int x, const int y)
 
static int _alpha (cairo_surface_t *surface, const int x, const int y)
 
static dt_stroke_style_t _solid (const double width, const double r, const double g, const double b)
 
static void _a_horizontal_line_paints_a_band_of_its_width (void **state)
 
static void _flat_caps_stop_at_the_ends (void **state)
 
static void _dashes_leave_gaps_along_the_line (void **state)
 
static void _the_bright_pass_paints_over_the_dark_one (void **state)
 
static void _a_surface_it_cannot_write_is_refused_and_the_path_kept (void **state)
 
static void _a_path_in_a_pushed_group_lands_where_cairo_puts_it (void **state)
 
static void _the_matrix_scales_widths_and_positions (void **state)
 
static void _a_device_scaled_surface_is_painted_in_its_pixels (void **state)
 
static void _the_touched_record_resets (void **state)
 
int main (void)
 

Function Documentation

◆ _a_device_scaled_surface_is_painted_in_its_pixels()

static void _a_device_scaled_surface_is_painted_in_its_pixels ( void **  state)
static

Definition at line 196 of file test_stroke_raster.c.

References _alpha(), _solid(), dt_stroke_raster_path(), state, and void().

Referenced by main().

◆ _a_horizontal_line_paints_a_band_of_its_width()

static void _a_horizontal_line_paints_a_band_of_its_width ( void **  state)
static

◆ _a_path_in_a_pushed_group_lands_where_cairo_puts_it()

static void _a_path_in_a_pushed_group_lands_where_cairo_puts_it ( void **  state)
static

Definition at line 152 of file test_stroke_raster.c.

References _alpha(), _solid(), dt_stroke_raster_path(), state, and void().

Referenced by main().

◆ _a_surface_it_cannot_write_is_refused_and_the_path_kept()

static void _a_surface_it_cannot_write_is_refused_and_the_path_kept ( void **  state)
static

Definition at line 134 of file test_stroke_raster.c.

References _solid(), dt_stroke_raster_path(), state, and void().

Referenced by main().

◆ _alpha()

◆ _dashes_leave_gaps_along_the_line()

static void _dashes_leave_gaps_along_the_line ( void **  state)
static

◆ _flat_caps_stop_at_the_ends()

static void _flat_caps_stop_at_the_ends ( void **  state)
static

◆ _pixel()

static uint32_t _pixel ( cairo_surface_t *  surface,
const int  x,
const int  y 
)
static

◆ _solid()

◆ _the_bright_pass_paints_over_the_dark_one()

static void _the_bright_pass_paints_over_the_dark_one ( void **  state)
static

◆ _the_matrix_scales_widths_and_positions()

static void _the_matrix_scales_widths_and_positions ( void **  state)
static

Definition at line 178 of file test_stroke_raster.c.

References _alpha(), _solid(), dt_stroke_raster_path(), state, and void().

Referenced by main().

◆ _the_touched_record_resets()

static void _the_touched_record_resets ( void **  state)
static

◆ main()