Before

1// Gdk.EventWindowState.cs - Custom WindowState event wrapper
2//
3// Author: Mike Kestner <mkestner@novell.com>
4//
5// Copyright (c) 2004-2009 Novell, Inc.
6//
7// This program is free software; you can redistribute it and/or
8// modify it under the terms of version 2 of the Lesser GNU General
9// Public License as published by the Free Software Foundation.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this program; if not, write to the
18// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19// Boston, MA 02111-1307, USA.
20
21
22namespace Gdk {
23
24 using System;
25 using System.Runtime.InteropServices;
26
27 public class EventWindowState : Event {
28
29 public EventWindowState (IntPtr raw) : base (raw) {}
30
31 [StructLayout (LayoutKind.Sequential)]
32 struct NativeStruct {
33 EventType type;
34 IntPtr window;
35 sbyte send_event;
36 public WindowState changed_mask;
37 public WindowState new_window_state;
38 }
39
40 NativeStruct Native {
41 get { return (NativeStruct) Marshal.PtrToStructure (Handle, typeof(NativeStruct)); }
42 }
43
44 public WindowState ChangedMask {
45 get { return Native.changed_mask; }
46 set {
47 NativeStruct native = Native;
48 native.changed_mask = value;
49 Marshal.StructureToPtr (native, Handle, false);
50 }
51 }
52
53 public WindowState NewWindowState {
54 get { return Native.new_window_state; }
55 set {
56 NativeStruct native = Native;
57 native.new_window_state = value;
58 Marshal.StructureToPtr (native, Handle, false);
59 }
60 }
61 }
62}
63
64

After

1// Gdk.EventWindowState.cs - Custom WindowState event wrapper
2//
3// Author: Mike Kestner <mkestner@novell.com>
4//
5// Copyright (c) 2004-2009 Novell, Inc.
6//
7// This program is free software; you can redistribute it and/or
8// modify it under the terms of version 2 of the Lesser GNU General
9// Public License as published by the Free Software Foundation.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this program; if not, write to the
18// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19// Boston, MA 02111-1307, USA.
20
21
22namespace Gdk {
23
24 using System;
25 using System.Runtime.InteropServices;
26
27 public class EventWindowState : Event {
28
29 public EventWindowState(IntPtr raw) : base(raw) { }
30
31 [StructLayout(LayoutKind.Sequential)]
32 struct NativeStruct {
33 EventType type;
34 IntPtr window;
35 sbyte send_event;
36 public WindowState changed_mask;
37 public WindowState new_window_state;
38 }
39
40 NativeStruct Native {
41 get { return (NativeStruct)Marshal.PtrToStructure(Handle, typeof(NativeStruct)); }
42 }
43
44 public WindowState ChangedMask {
45 get { return Native.changed_mask; }
46 set {
47 NativeStruct native = Native;
48 native.changed_mask = value;
49 Marshal.StructureToPtr(native, Handle, false);
50 }
51 }
52
53 public WindowState NewWindowState {
54 get { return Native.new_window_state; }
55 set {
56 NativeStruct native = Native;
57 native.new_window_state = value;
58 Marshal.StructureToPtr(native, Handle, false);
59 }
60 }
61 }
62}

Before

compilation_unit
comment "// Gdk.EventWindowState.cs - Custom WindowState event wrappe"...
comment "//"
comment "// Author: Mike Kestner <mkestner@novell.com>"
comment "//"
comment "// Copyright (c) 2004-2009 Novell, Inc."
comment "//"
comment "// This program is free software; you can redistribute it an"...
comment "// modify it under the terms of version 2 of the Lesser GNU "...
comment "// Public License as published by the Free Software Foundati"...
comment "//"
comment "// This program is distributed in the hope that it will be u"...
comment "// but WITHOUT ANY WARRANTY; without even the implied warran"...
comment "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See"...
comment "// Lesser General Public License for more details."
comment "//"
comment "// You should have received a copy of the GNU Lesser General"...
comment "// License along with this program; if not, write to the"
comment "// Free Software Foundation, Inc., 59 Temple Place - Suite 3"...
comment "// Boston, MA 02111-1307, USA."
namespace_declaration (+262 nodes collapsed)

After

compilation_unit
comment "// Gdk.EventWindowState.cs - Custom WindowState event wrappe"...
comment "//"
comment "// Author: Mike Kestner <mkestner@novell.com>"
comment "//"
comment "// Copyright (c) 2004-2009 Novell, Inc."
comment "//"
comment "// This program is free software; you can redistribute it an"...
comment "// modify it under the terms of version 2 of the Lesser GNU "...
comment "// Public License as published by the Free Software Foundati"...
comment "//"
comment "// This program is distributed in the hope that it will be u"...
comment "// but WITHOUT ANY WARRANTY; without even the implied warran"...
comment "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See"...
comment "// Lesser General Public License for more details."
comment "//"
comment "// You should have received a copy of the GNU Lesser General"...
comment "// License along with this program; if not, write to the"
comment "// Free Software Foundation, Inc., 59 Temple Place - Suite 3"...
comment "// Boston, MA 02111-1307, USA."
namespace_declaration (+262 nodes collapsed)