One more check on valid display which is known to be in the startup
[xcircuit.git] / Xw / STextP.h
blob70fa5e41f7f579fb2141c71bbe8417b6763fda1f
1 /*************************************<+>*************************************
2 *****************************************************************************
3 **
4 ** File: STextP.h
5 **
6 ** Project: X Widgets
7 **
8 ** Description: Private include file for StaticText class
9 **
10 *****************************************************************************
11 **
12 ** Copyright (c) 1988 by Hewlett-Packard Company
13 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
14 **
15 ** Permission to use, copy, modify, and distribute this software
16 ** and its documentation for any purpose and without fee is hereby
17 ** granted, provided that the above copyright notice appear in all
18 ** copies and that both that copyright notice and this permission
19 ** notice appear in supporting documentation, and that the names of
20 ** Hewlett-Packard or M.I.T. not be used in advertising or publicity
21 ** pertaining to distribution of the software without specific, written
22 ** prior permission.
23 **
24 *****************************************************************************
25 *************************************<+>*************************************/
29 /********************************************
31 * No new fields need to be defined
32 * for the StaticText widget class record
34 ********************************************/
35 typedef struct {int foo;} XwStaticTextClassPart;
37 /****************************************************
39 * Full class record declaration for StaticText class
41 ****************************************************/
42 typedef struct _XwStaticTextClassRec {
43 CoreClassPart core_class;
44 XwPrimitiveClassPart primitive_class;
45 XwStaticTextClassPart statictext_class;
46 } XwStaticTextClassRec;
48 /********************************************
50 * New fields needed for instance record
52 ********************************************/
53 typedef struct _XwStaticTextPart {
55 * "Public" members (Can be set by resource manager).
57 char *input_string; /* String sent to this widget. */
58 XwAlignment alignment; /* Alignment within the box */
59 int gravity; /* Controls use of extra space in window */
60 Boolean wrap; /* Controls wrapping on spaces */
61 Boolean strip; /* Controls stripping of blanks */
62 int line_space; /* Ratio of font height use as dead space
63 between lines. Can be less than zero
64 but not less than -1.0 */
65 XFontStruct *font; /* Font to write in. */
66 Dimension internal_height; /* Space from text to top and
67 bottom highlights */
68 Dimension internal_width; /* Space from left and right side highlights */
70 * "Private" members -- values computed by
71 * XwStaticTextWidgetClass methods.
73 GC normal_GC; /* GC for text */
74 XRectangle TextRect; /* The bounding box of the text, or clip rectangle
75 of the window; whichever is smaller. */
76 char *output_string; /* input_string after formatting */
77 } XwStaticTextPart;
79 /****************************************************************
81 * Full instance record declaration
83 ****************************************************************/
84 typedef struct _XwStaticTextRec {
85 CorePart core;
86 XwPrimitivePart primitive;
87 XwStaticTextPart static_text;
88 } XwStaticTextRec;