API BREAK: types: add outline_width & outline_height to Agnodeinfo_t struct
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 24 Sep 2022 14:18:24 +0000 (16:18 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 11 Oct 2022 19:45:27 +0000 (21:45 +0200)
CHANGELOG.md
lib/common/types.h

index a537e23806e0584c1205c51ab708a0cb3d00e3c1..e7356af09241afe3ac869b734bc6adbd4bb1797d 100644 (file)
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
-## [Unreleased (6.0.3)]
+## [Unreleased (7.0.0)]
+
+### Changed
+
+- **Breaking**: An `outline_width` field has been added to the `Agnodeinfo_t` struct.
+- **Breaking**: An `outline_height` field has been added to the `Agnodeinfo_t` struct.
 
 ## [6.0.2] - 2022-10-11
 
index 8c6f3040f2355275f8d0389e2d06d5026b5bd6c5..a7acbcde54c300c470f2924183f3d4c3a48eed88 100644 (file)
@@ -417,6 +417,8 @@ typedef enum {NATIVEFONTS,PSFONTS,SVGFONTS} fontname_kind;
        double ht;
        double lw;
        double rw;
+       double outline_width;  /* width in points with penwidth taken into account */
+       double outline_height; /* height in points with penwidth taken into account */
        textlabel_t *label;
        textlabel_t *xlabel;
        void *alg;
@@ -514,6 +516,8 @@ typedef enum {NATIVEFONTS,PSFONTS,SVGFONTS} fontname_kind;
 #define ND_other(n) (((Agnodeinfo_t*)AGDATA(n))->other)
 #define ND_out(n) (((Agnodeinfo_t*)AGDATA(n))->out)
 #define ND_outleaf(n) (((Agnodeinfo_t*)AGDATA(n))->outleaf)
+#define ND_outline_width(n) (((Agnodeinfo_t*)AGDATA(n))->outline_width)
+#define ND_outline_height(n) (((Agnodeinfo_t*)AGDATA(n))->outline_height)
 #define ND_par(n) (((Agnodeinfo_t*)AGDATA(n))->par)
 #define ND_pinned(n) (((Agnodeinfo_t*)AGDATA(n))->pinned)
 #define ND_pos(n) (((Agnodeinfo_t*)AGDATA(n))->pos)