2002-06-24 22:04:10 +00:00
|
|
|
// EnumWrapper.cs - Class to hold arbitrary glib enums
|
|
|
|
//
|
|
|
|
// Author: Rachel Hestilow <hestilow@ximian.com>
|
|
|
|
//
|
|
|
|
// (c) 2002 Rachel Hestilow
|
|
|
|
|
|
|
|
namespace GLib {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
// <summary> Enum wrapping class </summary>
|
|
|
|
// <remarks> </remarks>
|
|
|
|
public class EnumWrapper {
|
|
|
|
int val;
|
2002-08-03 22:24:37 +00:00
|
|
|
public bool flags;
|
2002-06-24 22:04:10 +00:00
|
|
|
|
2002-08-03 22:24:37 +00:00
|
|
|
public EnumWrapper (int val, bool flags) {
|
2002-06-24 22:04:10 +00:00
|
|
|
this.val = val;
|
2002-08-03 22:24:37 +00:00
|
|
|
this.flags = flags;
|
2002-06-24 22:04:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static explicit operator int (EnumWrapper wrap) {
|
|
|
|
return wrap.val;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|