From 98d00ae10931a636cc5ec480092b4a20f5156877 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 24 Sep 2022 16:18:24 +0200 Subject: [PATCH] API BREAK: types: add outline_width & outline_height to Agnodeinfo_t struct --- CHANGELOG.md | 7 ++++++- lib/common/types.h | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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) -- 2.40.0