From 3ed3940af059b1e822a7871216e70fad9d4399b8 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 12 Jan 2000 13:58:32 +0000 Subject: Renommage des fichiers d'entetes --- generic/Attrs.h | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 generic/Attrs.h (limited to 'generic/Attrs.h') diff --git a/generic/Attrs.h b/generic/Attrs.h new file mode 100644 index 0000000..1d9ba0e --- /dev/null +++ b/generic/Attrs.h @@ -0,0 +1,132 @@ +/* + * Attrs.h -- Header for the attribute manipulation routines. + * + * Authors : Patrick Lecoanet. + * Creation date : Fri Dec 31 10:06:37 1999 + * + * $Id$ + */ + +/* + * Copyright (c) 1993 - 1999 CENA, Patrick Lecoanet -- + * + * This code 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. + * + * This code 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 this code; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + + +#ifndef _Attrs_h +#define _Attrs_h + +#ifdef __CPLUSPLUS__ +extern "C" { +#endif + + +#include + + +/* + * Label Formats. + */ + +/* + * field flags. + */ +#define LF_ATTACH_PIXEL 0 +#define LF_ATTACH_FWD 1 +#define LF_ATTACH_BWD 2 +#define LF_ATTACH_LEFT 3 /* Align left on left or top on top */ +#define LF_ATTACH_RIGHT 4 /* Align right on right or bottom on bottom */ + +#define LF_DIM_PIXEL 0 +#define LF_DIM_FONT 1 +#define LF_DIM_ICON 2 +#define LF_DIM_AUTO 3 + +typedef struct { + int x_spec; + int y_spec; + short width_spec; + short height_spec; + char x_attach; + char y_attach; + char x_dim; + char y_dim; +} FieldFormatStruct, *FieldFormat; + +typedef struct { + short clip_width; + short clip_height; + int num_fields; + Tcl_HashEntry *entry; + int ref_count; + FieldFormatStruct fields[1]; +} LabelFormatStruct, *LabelFormat; + + +LabelFormat +LabelFormatCreate(Tcl_Interp * /* interp */, + char * /* format_str */, + int /* num_fields */); +LabelFormat +LabelFormatDuplicate(LabelFormat /* label_format */); +void +LabelFormatDelete(LabelFormat /* label_format */); +char * +LabelFormatGetString(LabelFormat /* label_format */); +RadarBool +LabelFormatGetClipBox(LabelFormat /* label_format */, + RadarDim */* width */, + RadarDim */* height */); +#define LabelFormatNumFields(lf) ((lf)->num_fields) +void +LabelFormatGetField(LabelFormat /* label_format */, + int /* field */, + char */* x_attach */, + char */* y_attach */, + char */* x_dim */, + char */* y_dim */, + int */* x_spec */, + int */* y_spec */, + short */* width_spec */, + short */* height_spec */); + +/* + * Line Ends. + */ +typedef struct { + RadarReal shape_a; + RadarReal shape_b; + RadarReal shape_c; + Tcl_HashEntry *entry; + int ref_count; +} LineEndStruct, *LineEnd; + +LineEnd +LineEndCreate(Tcl_Interp *interp, + char *line_end_str); +LineEnd +LineEndDuplicate(LineEnd le); +void +LineEndDelete(LineEnd le); +char * +LineEndGetString(LineEnd le); + +#ifdef __CPLUSPLUS__ +} +#endif + +#endif /* _Attrs_h */ -- cgit v1.1