File: MwBaseP.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 (78 lines) | stat: -rw-r--r-- 1,917 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
/***************************************************************************/
/* 	This code is part of X-toolkit widget library called Nws 	   */
/*	Copyright (c) 1997,1998,1999 Ondrejicka Stefan			   */
/*	(ondrej@idata.sk)						   */
/*	Distributed under GPL 2 or later				   */
/***************************************************************************/

#ifndef _MwBaseP_H_
#define _MwBaseP_H_


#include <X11/Core.h>
#include "MwBase.h"
#include "MwNws.h"

#if NeedFunctionPrototypes
typedef void (*highlight_Proc) (Widget , XEvent * , String * , Cardinal *);
typedef void (*unhighlight_Proc) (Widget , XEvent * , String * , Cardinal *);
#else
typedef void (*highlight_Proc) ();
typedef void (*unhighlight_Proc) ();
#endif

#define  XtInheritHighlight ((highlight_Proc) _XtInherit)
#define  XtInheritUnhighlight ((unhighlight_Proc) _XtInherit)


typedef struct {
	get_internal_dimension_Proc	get_internal_dimension;
	set_internal_dimension_Proc	set_internal_dimension;
	highlight_Proc			highlight;
	unhighlight_Proc		unhighlight;
	highlightBorder_Proc		highlightBorder;
	unhighlightBorder_Proc		unhighlightBorder;
} MwBaseClassPart;

typedef struct _MwBaseClassRec {
	CoreClassPart		core_class;
	MwBaseClassPart		base_class;
} MwBaseClassRec;

extern MwBaseClassRec mwBaseClassRec;

typedef struct _MwBasePart {
	/* public resources */
	void		*user_data;
	int		wid;
	Boolean		highlight_on_enter;
	int		help_show_delay;
	Cursor		cursor;
	int		box_type;
	int		box_width;
	int		box_intensity;
	Pixel		box_color;
	Pixel		activ_fg;
	Pixel		activ_bg;
	String		help_text;
	Pixel		foreground;
	int		bd_width;
	Pixel		bd_color;
	int		top_shadow_contrast;
	int		bot_shadow_contrast;
	/* private */
	XtIntervalId	timer;
	Widget		hlp;
	GC		gc;
	Pixel		dark,light;
	Boolean		have_shape;
	Boolean		entered;
	Boolean		focused;
} MwBasePart;

typedef struct _MwBaseRec {
	CorePart	core;
	MwBasePart	base;
} MwBaseRec;

#endif