mirror of https://github.com/mono/CppSharp.git
6 changed files with 54 additions and 2 deletions
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
#include "QApplication" |
||||
#include "qevent.h" |
||||
#include "QPushButton" |
||||
|
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
using System; |
||||
using System.Runtime.InteropServices; |
||||
using Mono.Cxxi; |
||||
|
||||
namespace Qt.Gui { |
||||
|
||||
[StructLayout (LayoutKind.Sequential)] |
||||
public struct QFlags<T> where T : struct { |
||||
|
||||
public T Value; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
using System; |
||||
using System.Runtime.InteropServices; |
||||
using Mono.Cxxi; |
||||
|
||||
namespace Qt.Gui { |
||||
|
||||
[StructLayout (LayoutKind.Sequential)] |
||||
public struct QPoint { |
||||
|
||||
private int xy, yx; //Wtf.. on Mac the order is y, x; elsewhere x, y
|
||||
|
||||
public QPoint (int x, int y) |
||||
{ |
||||
//FIXME: do some snazzy stuff to get this right.. for now, I'm a mac user :P
|
||||
this.yx = x; |
||||
this.xy = y; |
||||
} |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue