3 #if !defined(SVG_H_INCLUDED) 4 #define SVG_H_INCLUDED 1 43 double width,
double height,
double x_scale,
double y_scale,
47 void setOffsets(
double x_offset,
double y_offset);
55 unsigned int font_size);
60 #endif // !defined(SVG_H_INCLUDED) double width
Width of SVG image.
SVG_Struct is the data structure for representing Scalable Vector Graphics.
SVG(String_Const base_name, double width, double height, double x_scale, double y_scale, String_Const units)
Open an SVG object:
double y_scale
Amount to scale Y by.
double y_offset
Amount to offset Y by.
void cartesian_scale(double x_width, double y_height, BoundingBox *bounding_box)
Turns svg into a cartesian graphing canvas bounded by bounding_box.
double x_scale
Amount to scale X by.
FILE * File
FILE is a file I/O object.
void line(double x1, double y1, double x2, double y2, String_Const stroke)
Draw a line from (x1, y1) to (x2, y2) using stroke.
File stream
The output stream.
void text(String_Const message, double x, double y, String_Const font_family, unsigned int font_size)
draw message at (x, y).
double x_offset
Amount to offset X by.
void setOffsets(double x_offset, double y_offset)
String_Const units
Units to use for SVG values.
double height
Hight of SVG image.
const char * String_Const
void rectangle(double x, double y, double width, double height, String_Const stroke_color, String_Const fill_color)
Draw a width by height rectangle at (x, y).