summaryrefslogtreecommitdiff
path: root/inc/InterfaceGraphic_Aspect.hxx
blob: e10252e0fb7bff90f7ba1601a741c14c83bd9b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103

#ifndef InterfaceGraphic_AspectHeader
#define InterfaceGraphic_AspectHeader

#ifndef IMP100701
#define IMP100701 /* GG Add depth field in the bitmap structure */
#endif

#ifndef RIC120302
#define RIC120302       /*GG Add NEW field in CALL_DEF_WINDOW structure
//      to registred parent window ID 
//      Change Aspect_Handle to Aspect_Drawable for
//      a more correct understanding.
*/
#endif

/* 
25-01-00 VKH : Add CALL_DEF_BITMAP structure

Copyright (C) 1991,1992,1993 by

MATRA DATAVISION, FRANCE

This software is furnished in accordance with the terms and conditions
of the contract and with the inclusion of the above copyright notice.
This software or any other copy thereof may not be provided or otherwise
be made available to any other person. No title to an ownership of the
software is hereby transferred.

At the termination of the contract, the software and all copies of this
software must be deleted.

Facility : CAS-CADE V1

*/ 

#include <Aspect_Drawable.hxx>
#include <Aspect_RenderingContext.hxx>

typedef struct {
  int mapped;
} EXT_WINDOW ;

/* WINDOW */

typedef struct {

  int IsDefined;

  Aspect_Drawable XWindow;

#ifdef RIC120302
  Aspect_Drawable XParentWindow;
#endif

  EXT_WINDOW *ext_data;

  struct {
    float xm, ym, xM, yM;
  } Position;

  float dx, dy;

  char *Title;

  char *Icon;

  struct {
    float r, g, b;
  } Background;

} CALL_DEF_WINDOW;


typedef struct {
  int listIndex;
  void*  layerData;
} CALL_DEF_PTRLAYER, *call_def_ptrLayer;


/* LAYER */

typedef struct {
  CALL_DEF_PTRLAYER* ptrLayer;
  int layerType;
  int attach;
  int sizeDependent;
  float ortho[4];
  float viewport[2];

} CALL_DEF_LAYER;

typedef struct {
  int     width;
  int     height;
#ifdef IMP100701
  int     depth;
#endif
  Aspect_Drawable bitmap;
  Aspect_RenderingContext bitmapContext;
} CALL_DEF_BITMAP;

#endif /* InterfaceGraphic_AspectHeader */