File: vpacket.h

package info (click to toggle)
fvwm 1:2.6.8-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,804 kB
  • sloc: ansic: 145,770; xml: 17,093; perl: 7,302; sh: 4,921; makefile: 1,094; yacc: 688; lex: 187; sed: 11
file content (90 lines) | stat: -rw-r--r-- 2,387 bytes parent folder | download | duplicates (7)
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
/* -*-c-*- */

#ifndef _VPACKET_
#define _VPACKET_
#include "fvwm/window_flags.h"

/*
  All new-style module packets (i.e., those that are not simply arrays
  of longs, as used by the older modules) should have a structure
  definition in this file.
*/

/*
  The M_CONFIGURE_WINDOW packet.
  This is the same packet as the M_ADD_WINDOW packet, the
  only difference being the type.
*/
/*  RBW- typedef struct config_win_packet  */
typedef struct ConfigWinPacket
{
	/*** Alignment notes ***/
	/*** Note that this packet format will break on future 128 bit
	 *** platforms. ***/
	/*** Put long, Window, and pointers  here ***/
	unsigned long  w;      /* Window */
	unsigned long  frame; /* Window */
	unsigned long *fvwmwin;
	signed long    frame_x;
	signed long    frame_y;
	unsigned long  frame_width;
	unsigned long  frame_height;
	unsigned long  desk;
	/*
	  Temp word for alignment - old flags used to be here.
	  - remove before next release.
	  RBW - 05/01/2000 - layer has usurped this slot.
	  unsigned long  dummy;
	*/
	unsigned long  layer;

	unsigned long  hints_base_width;
	unsigned long  hints_base_height;
	unsigned long  hints_width_inc;
	unsigned long  hints_height_inc;
	unsigned long  orig_hints_width_inc;
	unsigned long  orig_hints_height_inc;
	unsigned long  hints_min_width;
	unsigned long  hints_min_height;
	unsigned long  hints_max_width;
	unsigned long  hints_max_height;
	unsigned long  icon_w;        /* Window */
	unsigned long  icon_pixmap_w; /* Window */
	unsigned long  hints_win_gravity;
	unsigned long  TextPixel;
	unsigned long  BackPixel;

	/*  Everything below this is post-GSFR  */
	unsigned long  ewmh_hint_layer;
	unsigned long  ewmh_hint_desktop;
	unsigned long  ewmh_window_type;

	/*** Put int here, fill with dummies to a multiple of 2 ***/

	/*** Put short here, fill with dummies to a multiple of 4 ***/
	unsigned short title_height;
	unsigned short border_width;
	unsigned short short_dummy_3;
	unsigned short short_dummy_4;

	/*** Put structures here ***/
	window_flags   flags;
	action_flags   allowed_actions;

} ConfigWinPacket;

typedef struct MiniIconPacket
{
	Window         w;
	Window         frame;
	FvwmWindow    *fvwmwin;
	unsigned long  width;
	unsigned long  height;
	unsigned long  depth;
	Pixmap         picture;
	Pixmap         mask;
	Pixmap         alpha;
	char           name[1];
} MiniIconPacket;

#endif /* _VPACKET_ */