From 3ade071f273aaa973e44bf95d6b1d4913a18f03b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:39:48 +0200 Subject: Adding upstream version 43.2. Signed-off-by: Daniel Baumann --- eel/eel-art-extensions.h | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 eel/eel-art-extensions.h (limited to 'eel/eel-art-extensions.h') diff --git a/eel/eel-art-extensions.h b/eel/eel-art-extensions.h new file mode 100644 index 0000000..b9dde53 --- /dev/null +++ b/eel/eel-art-extensions.h @@ -0,0 +1,61 @@ + +/* eel-art-extensions.h - interface of libart extension functions. + + Copyright (C) 2000 Eazel, Inc. + + The Gnome Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The Gnome Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Gnome Library; see the file COPYING.LIB. If not, + see . + + Authors: Darin Adler + Ramiro Estrugo +*/ + +#pragma once + +#include + +G_BEGIN_DECLS + +typedef struct { + double x0, y0, x1, y1; +} EelDRect; + +typedef struct { + /*< public >*/ + int x0, y0, x1, y1; +} EelIRect; + +extern const EelDRect eel_drect_empty; +extern const EelIRect eel_irect_empty; + +void eel_irect_union (EelIRect *dest, + const EelIRect *src1, + const EelIRect *src2); +gboolean eel_irect_equal (EelIRect rectangle_a, + EelIRect rectangle_b); +gboolean eel_irect_hits_irect (EelIRect rectangle_a, + EelIRect rectangle_b); +EelIRect eel_irect_offset_by (EelIRect rectangle, + int x, + int y); +EelIRect eel_irect_scale_by (EelIRect rectangle, + double scale); +int eel_irect_get_width (EelIRect rectangle); +int eel_irect_get_height (EelIRect rectangle); + +void eel_drect_union (EelDRect *dest, + const EelDRect *src1, + const EelDRect *src2); + +G_END_DECLS \ No newline at end of file -- cgit v1.2.3