Logo Search packages:      
Sourcecode: inkscape version File versions

repr-util.cpp File Reference


Detailed Description

Miscellaneous helpers for reprs.

Definition in file repr-util.cpp.

#include "config.h"
#include <math.h>
#include <stdio.h>
#include <glib.h>
#include "svg/stringstream.h"
#include "xml/repr.h"
#include "xml/repr-sorting.h"
#include "xml/sp-repr-attr.h"

Go to the source code of this file.

Classes

struct  SPXMLNs

Defines

#define __SP_REPR_UTIL_C__
#define FALSE   0
#define MAX(a, b)   (((a) < (b)) ? (b) : (a))
#define TRUE   (!FALSE)

Functions

int sp_repr_compare_position (SPRepr *first, SPRepr *second)
unsigned int sp_repr_get_boolean (SPRepr *repr, const gchar *key, unsigned int *val)
unsigned int sp_repr_get_double (SPRepr *repr, const gchar *key, double *val)
double sp_repr_get_double_attribute (SPRepr *repr, const char *key, double def)
unsigned int sp_repr_get_int (SPRepr *repr, const gchar *key, int *val)
int sp_repr_get_int_attribute (SPRepr *repr, const char *key, int def)
SPRepr * sp_repr_lookup_child (SPRepr *repr, const gchar *key, const gchar *value)
SPRepr * sp_repr_lookup_name (SPRepr *repr, gchar const *name, gint maxdepth)
 Recursively find the SPRepr matching the given XML name.
unsigned int sp_repr_set_boolean (SPRepr *repr, const gchar *key, unsigned int val)
unsigned int sp_repr_set_double (SPRepr *repr, const gchar *key, double val)
unsigned int sp_repr_set_double_default (SPRepr *repr, const gchar *key, double val, double def, double e)
unsigned int sp_repr_set_int (SPRepr *repr, const gchar *key, int val)
unsigned int sp_xml_dtoa (gchar *buf, double val, unsigned int tprec, unsigned int fprec, unsigned int padf)
static char * sp_xml_ns_auto_prefix (const char *uri)
const gchar * sp_xml_ns_prefix_uri (const gchar *prefix)
static void sp_xml_ns_register_defaults ()
const gchar * sp_xml_ns_uri_prefix (const gchar *uri, const gchar *suggested)

Variables

static SPXMLNs * namespaces = NULL


Generated by  Doxygen 1.6.0   Back to index