NovaSVG 0.10.0
A header-only SVG library
Loading...
Searching...
No Matches
paint.h File Reference
#include "private.h"
#include "utils.h"
#include <ctype.h>
Include dependency graph for paint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  novasvg::render::color_entry_t
 

Namespaces

namespace  novasvg
 Main namespace for the NovaSVG library.
 
namespace  novasvg::render
 

Macros

#define MAX_NAME   20
 

Functions

NOVASVG_INLINE void novasvg::render::color_init_rgb (color_t *color, float r, float g, float b)
 Initializes a color using RGB components in the 0-1 range.
 
NOVASVG_INLINE void novasvg::render::color_init_rgba (color_t *color, float r, float g, float b, float a)
 Initializes a color using RGBA components in the 0-1 range.
 
NOVASVG_INLINE void novasvg::render::color_init_rgb8 (color_t *color, int r, int g, int b)
 Initializes a color using RGB components in the 0-255 range.
 
NOVASVG_INLINE void novasvg::render::color_init_rgba8 (color_t *color, int r, int g, int b, int a)
 Initializes a color using RGBA components in the 0-255 range.
 
NOVASVG_INLINE void novasvg::render::color_init_rgba32 (color_t *color, unsigned int value)
 Initializes a color from a 32-bit unsigned RGBA value.
 
NOVASVG_INLINE void novasvg::render::color_init_argb32 (color_t *color, unsigned int value)
 Initializes a color from a 32-bit unsigned ARGB value.
 
NOVASVG_INLINE void novasvg::render::color_init_hsl (color_t *color, float h, float s, float l)
 Initializes a color with the specified HSL color values.
 
NOVASVG_INLINE void novasvg::render::color_init_hsla (color_t *color, float h, float s, float l, float a)
 Initializes a color with the specified HSLA color values.
 
NOVASVG_INLINE unsigned int novasvg::render::color_to_rgba32 (const color_t *color)
 Converts a color to a 32-bit unsigned RGBA value.
 
NOVASVG_INLINE unsigned int novasvg::render::color_to_argb32 (const color_t *color)
 Converts a color to a 32-bit unsigned ARGB value.
 
NOVASVG_INLINE int novasvg::render::color_parse (color_t *color, const char *data, int length)
 Parses a color from a string using CSS color syntax.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_create_rgb (float r, float g, float b)
 Creates a solid RGB paint.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_create_rgba (float r, float g, float b, float a)
 Creates a solid RGBA paint.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_create_color (const color_t *color)
 Creates a solid color paint.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_create_linear_gradient (float x1, float y1, float x2, float y2, spread_method_t spread, const gradient_stop_t *stops, int nstops, const matrix_t *matrix)
 Creates a linear gradient paint.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_create_radial_gradient (float cx, float cy, float cr, float fx, float fy, float fr, spread_method_t spread, const gradient_stop_t *stops, int nstops, const matrix_t *matrix)
 Creates a radial gradient paint.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_create_texture (surface_t *surface, texture_type_t type, float opacity, const matrix_t *matrix)
 Creates a texture paint from a surface.
 
NOVASVG_INLINE paint_t * novasvg::render::paint_reference (paint_t *paint)
 Increments the reference count of a paint object.
 
NOVASVG_INLINE void novasvg::render::paint_destroy (paint_t *paint)
 Decrements the reference count and destroys the paint if the count reaches zero.
 
NOVASVG_INLINE int novasvg::render::paint_get_reference_count (const paint_t *paint)
 Retrieves the reference count of a paint object.
 

Macro Definition Documentation

◆ MAX_NAME

#define MAX_NAME   20

Definition at line 109 of file paint.h.