File: snd-xdata.c

package info (click to toggle)
snd 3.4-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,148 kB
  • ctags: 12,594
  • sloc: ansic: 86,516; lisp: 3,480; sh: 1,507; makefile: 119
file content (94 lines) | stat: -rw-r--r-- 2,110 bytes parent folder | download
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
#include "snd.h"


Widget main_SHELL(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->mainshell); else return(NULL);
}

Widget main_PANE(void *w) 
{
  snd_state *sp;
  sp = main_STATE(w);
  if (sp) return((sp->sgx)->mainpane); else return(NULL);
}

Widget sound_PANE(void *w) 
{
  snd_state *sp;
  sp = main_STATE(w);
  if (sp) return((sp->sgx)->soundpane); else return(NULL);
}

XtAppContext main_APP(void *w)
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->mainapp); 
  else return(NULL);
}

Display *main_DISPLAY(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->mdpy); else return(NULL);
}

Time main_TIME(snd_state *ss)
{
  return(XtLastTimestampProcessed((ss->sgx)->mdpy) - ss->play_start_time);
}

int main_SCREEN(void *w) 
{
  Display *dpy;
  if ((dpy = main_DISPLAY(w))) return(DefaultScreen(dpy)); else return(0);
}

XmFontList button_FONT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->button_fontlist); else return(NULL);
}

XmFontList bold_button_FONT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->bold_button_fontlist); else return(NULL);
}

XmFontList help_text_FONT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->help_text_fontlist); else return(NULL);
}

XFontStruct *peak_numbers_FONTSTRUCT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->button_fontstruct); else return(NULL);
}

XFontStruct *tiny_numbers_FONTSTRUCT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->tiny_fontstruct); else return(NULL);
}

XFontStruct *bold_peak_numbers_FONTSTRUCT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->bold_button_fontstruct); else return(NULL);
}

XFontStruct *axis_label_FONTSTRUCT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->axis_label_fontstruct); else return(NULL);
}

XFontStruct *axis_numbers_FONTSTRUCT(void *w) 
{
  snd_state *sp;
  if ((sp = main_STATE(w))) return((sp->sgx)->axis_numbers_fontstruct); else return(NULL);
}