#include <cstdint>
#include <memory>
#include <string>
#include <cctype>
#include <vector>
#include "detail/color.h"
#include "detail/font.h"
#include "detail/bitmap.h"
#include <cstring>
#include <fstream>
#include <cmath>
#include "detail/canvas.h"
#include "detail/svgelement.h"
#include "detail/svgparser.hpp"
Go to the source code of this file.
|
| #define | NOVASVG_INLINE inline |
| |
| #define | NOVASVG_EXPORT |
| |
| #define | NOVASVG_IMPORT |
| |
| #define | NOVASVG_API NOVASVG_IMPORT |
| |
| #define | NOVASVG_MAX(a, b) ((a) > (b) ? (a) : (b)) |
| |
| #define | NOVASVG_MIN(a, b) ((a) < (b) ? (a) : (b)) |
| |
| #define | NOVASVG_VERSION_MAJOR 0 |
| |
| #define | NOVASVG_VERSION_MINOR 10 |
| |
| #define | NOVASVG_VERSION_PATCH 0 |
| |
| #define | NOVASVG_VERSION_ENCODE(major, minor, patch) (((major) * 10000) + ((minor) * 100) + ((patch) * 1)) |
| |
| #define | NOVASVG_VERSION NOVASVG_VERSION_ENCODE(NOVASVG_VERSION_MAJOR, NOVASVG_VERSION_MINOR, NOVASVG_VERSION_PATCH) |
| |
| #define | NOVASVG_VERSION_XSTRINGIZE(major, minor, patch) #major"."#minor"."#patch |
| |
| #define | NOVASVG_VERSION_STRINGIZE(major, minor, patch) NOVASVG_VERSION_XSTRINGIZE(major, minor, patch) |
| |
| #define | NOVASVG_VERSION_STRING NOVASVG_VERSION_STRINGIZE(NOVASVG_VERSION_MAJOR, NOVASVG_VERSION_MINOR, NOVASVG_VERSION_PATCH) |
| |
|
| int | novasvg::version () |
| | Returns the version of the novasvg library encoded in a single integer.
|
| |
| std::string | novasvg::versionString () |
| | Returns the novasvg library version as a human-readable string in "X.Y.Z" format.
|
| |
◆ NOVASVG_API
◆ NOVASVG_EXPORT
◆ NOVASVG_IMPORT
◆ NOVASVG_INLINE
| #define NOVASVG_INLINE inline |
◆ NOVASVG_MAX
| #define NOVASVG_MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
◆ NOVASVG_MIN
| #define NOVASVG_MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
◆ NOVASVG_VERSION
◆ NOVASVG_VERSION_ENCODE
| #define NOVASVG_VERSION_ENCODE |
( |
|
major, |
|
|
|
minor, |
|
|
|
patch |
|
) |
| (((major) * 10000) + ((minor) * 100) + ((patch) * 1)) |
◆ NOVASVG_VERSION_MAJOR
| #define NOVASVG_VERSION_MAJOR 0 |
◆ NOVASVG_VERSION_MINOR
| #define NOVASVG_VERSION_MINOR 10 |
◆ NOVASVG_VERSION_PATCH
| #define NOVASVG_VERSION_PATCH 0 |
◆ NOVASVG_VERSION_STRING
◆ NOVASVG_VERSION_STRINGIZE
◆ NOVASVG_VERSION_XSTRINGIZE
| #define NOVASVG_VERSION_XSTRINGIZE |
( |
|
major, |
|
|
|
minor, |
|
|
|
patch |
|
) |
| #major"."#minor"."#patch |
◆ novasvg_destroy_func_t
| typedef void(* novasvg_destroy_func_t) (void *closure) |
Callback for cleaning up resources.
This function is called to release resources associated with a specific operation.
- Parameters
-
| closure | A user-defined pointer to the resource or context to be freed. |
Definition at line 121 of file novasvg.h.
◆ novasvg_write_func_t
| typedef void(* novasvg_write_func_t) (void *closure, void *data, int size) |
A function pointer type for a write callback.
- Parameters
-
| closure | A pointer to user-defined data or context. |
| data | A pointer to the data to be written. |
| size | The size of the data in bytes. |
Definition at line 129 of file novasvg.h.