File: MwTooltipP.h

package info (click to toggle)
mowitz 0.2.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,168 kB
  • ctags: 4,214
  • sloc: ansic: 30,869; sh: 9,051; makefile: 169
file content (60 lines) | stat: -rw-r--r-- 1,290 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

/*
 * MwTooltipP.h - Private Header file for MwTooltip widget.
 */

#ifndef s_MwTooltipP_h
#define s_MwTooltipP_h

#include "MwTooltip.h"
#include <X11/ShellP.h>

typedef struct {
    XtPointer extension;		/* For future needs. */
} MwTooltipClassPart;

typedef struct s_MwTooltipClassRec {
  CoreClassPart	          core_class;
  CompositeClassPart      composite_class;
  ShellClassPart          shell_class;
  OverrideShellClassPart  override_shell_class;
  MwTooltipClassPart	  tooltip_class;
} MwTooltipClassRec;

extern MwTooltipClassRec mwTooltipClassRec;

typedef struct p_list {
	Widget w;
	char *p;
	struct p_list *next;
} p_list;

typedef struct s_MwTooltipPart {

  /* resources */

  Widget label;			/* mode 1 => display tip in this label */
  int mode;			/* 0 = don't display
				   1 = display in label
				   2 = display in popup
				   3 = display in both */
  int interval;

  /* private state */

  Widget plabel;		/* to display the tip */
  XtIntervalId timer;		/* used waiting to popup */
  p_list *plist;		/* list of widgets and tips */

} MwTooltipPart;

typedef struct s_MwTooltipRec {
  CorePart		core;
  CompositePart 	composite;
  ShellPart 	        shell;
  OverrideShellPart     override;
  MwTooltipPart		tooltip;
} MwTooltipRec;

#endif /* s_MwTooltipP_h */