mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 15:25:37 +00:00
27 lines
473 B
C#
27 lines
473 B
C#
|
// 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;
|
||
|
|
||
|
public EnumWrapper (int val) {
|
||
|
this.val = val;
|
||
|
}
|
||
|
|
||
|
public static explicit operator int (EnumWrapper wrap) {
|
||
|
return wrap.val;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|