izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
a60-svg.h File Reference
#include <cstddef>
#include <cmath>
#include <algorithm>
#include <array>
#include <tuple>
#include <string>
#include <vector>
#include <set>
#include <unordered_map>
#include <sstream>
#include "a60-svg-color.h"
#include "a60-svg-color-palette.h"
#include "a60-svg-color-band.h"
#include "izzi-points.h"
#include "a60-svg-base-types.h"
#include "a60-svg-constants.h"
#include "a60-svg-elements.h"
#include "a60-svg-elements-components.h"
#include "a60-svg-render-state.h"
#include "a60-svg-render-basics.h"
#include "a60-svg-composite-and-layer-basics.h"
#include "a60-svg-sequences.h"
+ Include dependency graph for a60-svg.h:

Go to the source code of this file.

Classes

class  svg::string
 STL class. More...
 

Namespaces

namespace  svg
 
namespace  svg::constants
 

Typedefs

using svg::strings = std::vector<string>
 
using svg::vstrings = strings
 
using svg::vvstrings = std::vector<strings>
 
using svg::ushort = unsigned short
 Base integer type: positive and negative, signed integral value.
 
using svg::uint = unsigned int
 
using svg::ulong = unsigned long
 
using svg::ssize_type = int
 
using svg::space_type = double
 Base floating point type.
 

Functions

void svg::string_replace (std::string &target, const std::string &match, const std::string &replace)
 
double svg::scale_value_on_range (const ssize_type value, const ssize_type min, const ssize_type max, const ssize_type nfloor, const ssize_type nceil)
 Scale value from min to max on range (nfloor, nceil).
 
double & svg::get_dpi ()
 Resolution of output display device.
 
double svg::pt_to_px (const uint i=1)
 Conversion between point size to pixels given dpi density.
 
constexpr double svg::char_width_to_px (const uint sz)
 Approximate pixel height of type of point size @sz.
 
constexpr double svg::char_height_to_px (const uint sz)
 Approximate pixel height of type of point size @sz.
 
constexpr char svg::constants::space (' ')
 Formatting character constants.
 
constexpr char svg::constants::quote ('"')
 
constexpr char svg::constants::hyphen ('-')
 
constexpr char svg::constants::comma (',')
 
constexpr char svg::constants::tab ('\t')
 
constexpr char svg::constants::newline ('\n')
 
constexpr double svg::constants::pi (3.14159265358979323846)