7fd59977 |
1 | /*********************************************************************** |
2 | |
3 | FONCTION : |
4 | ---------- |
5 | File OpenGl_textdisplaystyle : |
6 | |
7 | |
8 | REMARQUES: |
9 | ---------- |
10 | |
11 | |
12 | HISTORIQUE DES MODIFICATIONS : |
13 | -------------------------------- |
14 | 30-11-98 : FMN ; Creation. |
15 | |
16 | ************************************************************************/ |
17 | |
18 | /*----------------------------------------------------------------------*/ |
19 | /* |
20 | * Includes |
21 | */ |
22 | |
23 | |
24 | #include <OpenGl_tgl_all.hxx> |
25 | |
26 | #include <stddef.h> |
27 | #include <stdio.h> |
28 | |
29 | #include <OpenGl_cmn_varargs.hxx> |
30 | #include <OpenGl_telem_attri.hxx> |
31 | #include <OpenGl_tsm.hxx> |
32 | #include <OpenGl_telem.hxx> |
33 | #include <OpenGl_telem_inquire.hxx> |
34 | #include <OpenGl_Memory.hxx> |
35 | |
36 | /*----------------------------------------------------------------------*/ |
37 | /* |
38 | * Fonctions statiques |
39 | */ |
40 | |
41 | static TStatus TextDisplayTypeDisplay( TSM_ELEM_DATA, Tint, cmn_key* ); |
42 | static TStatus TextDisplayTypeAdd( TSM_ELEM_DATA, Tint, cmn_key* ); |
43 | static TStatus TextDisplayTypePrint( TSM_ELEM_DATA, Tint, cmn_key* ); |
44 | |
45 | /*----------------------------------------------------------------------*/ |
46 | |
47 | static TStatus (*MtdTbl[])( TSM_ELEM_DATA, Tint, cmn_key* ) = |
48 | { |
49 | 0, /* PickTraverse */ |
50 | TextDisplayTypeDisplay, |
51 | TextDisplayTypeAdd, |
52 | 0, /* Delete */ |
53 | TextDisplayTypePrint, |
54 | 0 /* Inquire */ |
55 | }; |
56 | |
57 | |
58 | /*----------------------------------------------------------------------*/ |
59 | |
60 | MtblPtr |
61 | TelTextDisplayTypeInitClass( TelType *el ) |
62 | { |
63 | *el = TelTextDisplayType; |
64 | return MtdTbl; |
65 | } |
66 | |
67 | /*----------------------------------------------------------------------*/ |
68 | |
69 | static TStatus |
70 | TextDisplayTypeAdd( TSM_ELEM_DATA d, Tint n, cmn_key *k ) |
71 | { |
72 | ((tsm_elem_data)(d.pdata))->ldata = k[0]->data.ldata; |
73 | |
74 | return TSuccess; |
75 | } |
76 | |
77 | |
78 | /*----------------------------------------------------------------------*/ |
79 | |
80 | static TStatus |
81 | TextDisplayTypeDisplay( TSM_ELEM_DATA d, Tint n, cmn_key *k ) |
82 | { |
83 | CMN_KEY key; |
84 | |
85 | key.id = TelTextDisplayType; |
86 | key.data.ldata = d.ldata; |
87 | TsmSetAttri( 1, &key ); |
88 | return TSuccess; |
89 | } |
90 | |
91 | /*----------------------------------------------------------------------*/ |
92 | |
93 | static TStatus |
94 | TextDisplayTypePrint( TSM_ELEM_DATA data, Tint n, cmn_key *k ) |
95 | { |
96 | return TSuccess; |
97 | } |
98 | |
99 | /*----------------------------------------------------------------------*/ |
100 | |