Add initial draft of fvwm-convert-2.6
[fvwm.git] / libs / vpacket.h
blob1d6a114c2fa6a1914166425b44d1bd4305d77ded
1 /* -*-c-*- */
3 #ifndef _VPACKET_
4 #define _VPACKET_
5 #include "fvwm/window_flags.h"
7 /*
8 All new-style module packets (i.e., those that are not simply arrays
9 of longs, as used by the older modules) should have a structure
10 definition in this file.
14 The M_CONFIGURE_WINDOW packet.
15 This is the same packet as the M_ADD_WINDOW packet, the
16 only difference being the type.
18 /* RBW- typedef struct config_win_packet */
19 typedef struct ConfigWinPacket
21 /*** Alignment notes ***/
22 /*** Note that this packet format will break on future 128 bit
23 *** platforms. ***/
24 /*** Put long, Window, and pointers here ***/
25 unsigned long w; /* Window */
26 unsigned long frame; /* Window */
27 unsigned long *fvwmwin;
28 signed long frame_x;
29 signed long frame_y;
30 unsigned long frame_width;
31 unsigned long frame_height;
32 unsigned long desk;
34 Temp word for alignment - old flags used to be here.
35 - remove before next release.
36 RBW - 05/01/2000 - layer has usurped this slot.
37 unsigned long dummy;
39 unsigned long layer;
41 unsigned long hints_base_width;
42 unsigned long hints_base_height;
43 unsigned long hints_width_inc;
44 unsigned long hints_height_inc;
45 unsigned long orig_hints_width_inc;
46 unsigned long orig_hints_height_inc;
47 unsigned long hints_min_width;
48 unsigned long hints_min_height;
49 unsigned long hints_max_width;
50 unsigned long hints_max_height;
51 unsigned long icon_w; /* Window */
52 unsigned long icon_pixmap_w; /* Window */
53 unsigned long hints_win_gravity;
54 unsigned long TextPixel;
55 unsigned long BackPixel;
57 /* Everything below this is post-GSFR */
58 unsigned long ewmh_hint_layer;
59 unsigned long ewmh_hint_desktop;
60 unsigned long ewmh_window_type;
62 /*** Put int here, fill with dummies to a multiple of 2 ***/
64 /*** Put short here, fill with dummies to a multiple of 4 ***/
65 unsigned short title_height;
66 unsigned short border_width;
67 unsigned short short_dummy_3;
68 unsigned short short_dummy_4;
70 /*** Put structures here ***/
71 window_flags flags;
72 action_flags allowed_actions;
74 } ConfigWinPacket;
76 typedef struct MiniIconPacket
78 Window w;
79 Window frame;
80 FvwmWindow *fvwmwin;
81 unsigned long width;
82 unsigned long height;
83 unsigned long depth;
84 Pixmap picture;
85 Pixmap mask;
86 Pixmap alpha;
87 char name[1];
88 } MiniIconPacket;
90 #endif /* _VPACKET_ */