/*
 * $Id: TextPlotP.h,v 1.0 91/08/22 15:34:10 gnb Exp $
 * $Source: /export/data/sources/x/At/Plotter/RCS/TextPlotP.h,v $
 * 
 * $Log:	TextPlotP.h,v $
 * Revision 1.0  91/08/22  15:34:10  gnb
 * Initial revision
 * 
 * 
 */

/*

Copyright 1990,1991 by the Massachusetts Institute of Technology

All rights reserved.

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of the Massachusetts
Institute of Technology (M.I.T.) not be used in advertising or publicity
pertaining to distribution of the software without specific, written
prior permission.

M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

*/
#ifndef _AtTextPlotP_h
#define _AtTextPlotP_h    

#include <X11/IntrinsicP.h>

#ifdef _AtDevelopment_
#include "PlotP.h"
#include "TextPlot.h"    
#include "FontFamily.h"
#include "Text.h"
#else
#include <At/PlotP.h>
#include <At/TextPlot.h>  
#include <At/FontFamily.h>
#include <At/Text.h>
#endif
    
typedef struct _AtTextPlotClassPart {
    int higgledy_piggledy;
} AtTextPlotClassPart;

typedef struct _AtTextPlotClassRec {
    ObjectClassPart object_class;
    AtPlotClassPart plot_class;
    AtTextPlotClassPart textplot_class;
} AtTextPlotClassRec;


typedef struct _AtTextPlotPart {
    /* resources */
    String	label;
    String	font_family;
    int		font_size;
    int		font_style;
    int		justify;
    int		x;
    int		y;
    Boolean	floatingPosition;
    double	floating_x;
    double	floating_y;

    /* private state */
    AtText	*label_text;
    AtFontFamily *ff;
    /* Percentage of x & y, set at create time */
    float	xpercent;
    float	ypercent;
    /* There it actually is after justifying it */
    int		xpos, ypos;
} AtTextPlotPart;

typedef struct _AtTextPlotRec {
    ObjectPart object;
    AtPlotPart plot;
    AtTextPlotPart textplot;
} AtTextPlotRec;


#endif /* _AtTextPlotP_h */
