1 /*************************************<+>*************************************
2 *****************************************************************************
8 ** Description: Private include file for StaticText class
10 *****************************************************************************
12 ** Copyright (c) 1988 by Hewlett-Packard Company
13 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
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
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
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 */
79 /****************************************************************
81 * Full instance record declaration
83 ****************************************************************/
84 typedef struct _XwStaticTextRec
{
86 XwPrimitivePart primitive
;
87 XwStaticTextPart static_text
;