Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
cr-rgb.h File Reference

Go to the source code of this file.

Classes

struct  _CRRgb
 

Typedefs

typedef typedefG_BEGIN_DECLS struct _CRRgb CRRgb
 

Functions

CRRgbcr_rgb_new (void)
 
CRRgbcr_rgb_new_with_vals (gulong a_red, gulong a_green, gulong a_blue, gboolean a_is_percentage)
 
CRRgbcr_rgb_parse_from_buf (const guchar *a_str, enum CREncoding a_enc)
 
enum CRStatus cr_rgb_compute_from_percentage (CRRgb *a_this)
 
enum CRStatus cr_rgb_set (CRRgb *a_this, gulong a_red, gulong a_green, gulong a_blue, gboolean a_is_percentage)
 
enum CRStatus cr_rgb_copy (CRRgb *a_dest, CRRgb const *a_src)
 
enum CRStatus cr_rgb_set_to_inherit (CRRgb *a_this, gboolean a_inherit)
 
gboolean cr_rgb_is_set_to_inherit (CRRgb const *a_this)
 
gboolean cr_rgb_is_set_to_transparent (CRRgb const *a_this)
 
enum CRStatus cr_rgb_set_to_transparent (CRRgb *a_this, gboolean a_is_transparent)
 
enum CRStatus cr_rgb_set_from_rgb (CRRgb *a_this, CRRgb const *a_rgb)
 
enum CRStatus cr_rgb_set_from_name (CRRgb *a_this, const guchar *a_color_name)
 
enum CRStatus cr_rgb_set_from_hex_str (CRRgb *a_this, const guchar *a_hex_value)
 
enum CRStatus cr_rgb_set_from_term (CRRgb *a_this, const struct _CRTerm *a_value)
 
guchar * cr_rgb_to_string (CRRgb const *a_this)
 
void cr_rgb_dump (CRRgb const *a_this, FILE *a_fp)
 
void cr_rgb_destroy (CRRgb *a_this)
 

Typedef Documentation

◆ CRRgb

typedef typedefG_BEGIN_DECLS struct _CRRgb CRRgb

Definition at line 34 of file cr-rgb.h.

Function Documentation

◆ cr_rgb_compute_from_percentage()

enum CRStatus cr_rgb_compute_from_percentage ( CRRgb a_this)

◆ cr_rgb_copy()

enum CRStatus cr_rgb_copy ( CRRgb a_dest,
CRRgb const *  a_src 
)

◆ cr_rgb_destroy()

void cr_rgb_destroy ( CRRgb a_this)

◆ cr_rgb_dump()

void cr_rgb_dump ( CRRgb const *  a_this,
FILE *  a_fp 
)

◆ cr_rgb_is_set_to_inherit()

gboolean cr_rgb_is_set_to_inherit ( CRRgb const *  a_this)

◆ cr_rgb_is_set_to_transparent()

gboolean cr_rgb_is_set_to_transparent ( CRRgb const *  a_this)

◆ cr_rgb_new()

CRRgb * cr_rgb_new ( void  )

◆ cr_rgb_new_with_vals()

CRRgb * cr_rgb_new_with_vals ( gulong  a_red,
gulong  a_green,
gulong  a_blue,
gboolean  a_is_percentage 
)

◆ cr_rgb_parse_from_buf()

CRRgb * cr_rgb_parse_from_buf ( const guchar *  a_str,
enum CREncoding  a_enc 
)

◆ cr_rgb_set()

enum CRStatus cr_rgb_set ( CRRgb a_this,
gulong  a_red,
gulong  a_green,
gulong  a_blue,
gboolean  a_is_percentage 
)

◆ cr_rgb_set_from_hex_str()

enum CRStatus cr_rgb_set_from_hex_str ( CRRgb a_this,
const guchar *  a_hex_value 
)

◆ cr_rgb_set_from_name()

enum CRStatus cr_rgb_set_from_name ( CRRgb a_this,
const guchar *  a_color_name 
)

◆ cr_rgb_set_from_rgb()

enum CRStatus cr_rgb_set_from_rgb ( CRRgb a_this,
CRRgb const *  a_rgb 
)

◆ cr_rgb_set_from_term()

enum CRStatus cr_rgb_set_from_term ( CRRgb a_this,
const struct _CRTerm a_value 
)

◆ cr_rgb_set_to_inherit()

enum CRStatus cr_rgb_set_to_inherit ( CRRgb a_this,
gboolean  a_inherit 
)

◆ cr_rgb_set_to_transparent()

enum CRStatus cr_rgb_set_to_transparent ( CRRgb a_this,
gboolean  a_is_transparent 
)

◆ cr_rgb_to_string()

guchar * cr_rgb_to_string ( CRRgb const *  a_this)