From: Magnus Jacobsson Date: Sat, 24 Sep 2022 14:18:24 +0000 (+0200) Subject: API BREAK: types: add outline_width & outline_height to Agnodeinfo_t struct X-Git-Tag: 7.0.0~21^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98d00ae10931a636cc5ec480092b4a20f5156877;p=graphviz API BREAK: types: add outline_width & outline_height to Agnodeinfo_t struct --- diff --git a/CHANGELOG.md b/CHANGELOG.md index a537e2380..e7356af09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/common/types.h b/lib/common/types.h index 8c6f3040f..a7acbcde5 100644 --- a/lib/common/types.h +++ b/lib/common/types.h @@ -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)