~ubuntu-branches/ubuntu/trusty/xfig/trusty

« back to all changes in this revision

Viewing changes to w_menuentryP.h

  • Committer: Bazaar Package Importer
  • Author(s): Roland Rosenfeld
  • Date: 2002-03-22 10:39:49 UTC
  • Revision ID: james.westby@ubuntu.com-20020322103949-63082hoxulq6n7u1
Tags: upstream-3.2.3.d-rel
ImportĀ upstreamĀ versionĀ 3.2.3.d-rel

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    w_menuentryP.h - Private Header file for subclassed BSB Menu Entry object 
 
3
    
 
4
    This adds the underline resource to underline one character of the label
 
5
*/
 
6
 
 
7
#ifndef _FigSmeBSBP_h
 
8
#define _FigSmeBSBP_h
 
9
 
 
10
/***********************************************************************
 
11
 *
 
12
 * Sme Object Private Data
 
13
 *
 
14
 ***********************************************************************/
 
15
 
 
16
#ifdef XAW3D
 
17
#include <X11/Xaw3d/SmeP.h>
 
18
#include <X11/Xaw3d/SmeBSBP.h>
 
19
#else
 
20
#include <X11/Xaw/SmeP.h>
 
21
#include <X11/Xaw/SmeBSBP.h>
 
22
#endif /* XAW3D */
 
23
 
 
24
/* our header file */
 
25
#include "w_menuentry.h"
 
26
 
 
27
/************************************************************
 
28
 *
 
29
 * New fields for the Fig Sme Object class record.
 
30
 *
 
31
 ************************************************************/
 
32
 
 
33
typedef struct {
 
34
  int make_compiler_happy;      /* just so it's not empty */
 
35
} FigSmeBSBClassPart;
 
36
 
 
37
/* Full class record declaration */
 
38
typedef struct _FigSmeBSBClassRec {
 
39
    RectObjClassPart    rect_class;
 
40
    SmeClassPart        sme_class;
 
41
#ifdef XAW3D
 
42
    SmeThreeDClassPart  sme_threeD_class;
 
43
#endif /* XAW3D */
 
44
    SmeBSBClassPart     sme_bsb_class;
 
45
    FigSmeBSBClassPart  figSme_bsb_class;
 
46
} FigSmeBSBClassRec;
 
47
 
 
48
extern FigSmeBSBClassRec figSmeBSBClassRec;
 
49
 
 
50
/* New fields for the FigSme Object record */
 
51
typedef struct {
 
52
    /* resources */
 
53
    int underline;              /* which letter of the label to underline */
 
54
 
 
55
    /* private resources. */
 
56
    int make_compiler_happy;    /* just so it's not empty */
 
57
 
 
58
} FigSmeBSBPart;
 
59
 
 
60
/****************************************************************
 
61
 *
 
62
 * Full instance record declaration
 
63
 *
 
64
 ****************************************************************/
 
65
 
 
66
typedef struct _FigSmeBSBRec {
 
67
    ObjectPart          object;
 
68
    RectObjPart         rectangle;
 
69
    SmePart             sme;
 
70
#ifdef XAW3D
 
71
    SmeThreeDPart       sme_threeD;
 
72
#endif /* XAW3D */
 
73
    SmeBSBPart          sme_bsb;
 
74
    FigSmeBSBPart       figSme_bsb;
 
75
} FigSmeBSBRec;
 
76
 
 
77
/************************************************************
 
78
 *
 
79
 * Private declarations.
 
80
 *
 
81
 ************************************************************/
 
82
 
 
83
#endif /* _FigSmeBSBP_h */