1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
|
/*!
@file
@author Generate utility by Albert Semenov
@date 01/2009
@module
*/
using System;
using System.Runtime.InteropServices;
namespace MyGUI.Sharp
{
public partial class Widget
{
//InsertPoint
#region Property Height
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetHeight(IntPtr _native);
public int Height
{
get { return ExportWidget_GetHeight(Native); }
}
#endregion
#region Property Width
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetWidth(IntPtr _native);
public int Width
{
get { return ExportWidget_GetWidth(Native); }
}
#endregion
#region Property Bottom
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetBottom(IntPtr _native);
public int Bottom
{
get { return ExportWidget_GetBottom(Native); }
}
#endregion
#region Property Top
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetTop(IntPtr _native);
public int Top
{
get { return ExportWidget_GetTop(Native); }
}
#endregion
#region Property Right
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetRight(IntPtr _native);
public int Right
{
get { return ExportWidget_GetRight(Native); }
}
#endregion
#region Property Left
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetLeft(IntPtr _native);
public int Left
{
get { return ExportWidget_GetLeft(Native); }
}
#endregion
#region Property AbsoluteTop
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetAbsoluteTop(IntPtr _native);
public int AbsoluteTop
{
get { return ExportWidget_GetAbsoluteTop(Native); }
}
#endregion
#region Property AbsoluteLeft
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern int ExportWidget_GetAbsoluteLeft(IntPtr _native);
public int AbsoluteLeft
{
get { return ExportWidget_GetAbsoluteLeft(Native); }
}
#endregion
#region Property AbsoluteCoord
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportWidget_GetAbsoluteCoord(IntPtr _native);
public IntCoord AbsoluteCoord
{
get { return (IntCoord)Marshal.PtrToStructure(ExportWidget_GetAbsoluteCoord(Native), typeof(IntCoord)); }
}
#endregion
#region Property AbsoluteRect
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportWidget_GetAbsoluteRect(IntPtr _native);
public IntRect AbsoluteRect
{
get { return (IntRect)Marshal.PtrToStructure(ExportWidget_GetAbsoluteRect(Native), typeof(IntRect)); }
}
#endregion
#region Property AbsolutePosition
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportWidget_GetAbsolutePosition(IntPtr _native);
public IntPoint AbsolutePosition
{
get { return (IntPoint)Marshal.PtrToStructure(ExportWidget_GetAbsolutePosition(Native), typeof(IntPoint)); }
}
#endregion
#region Property Coord
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportWidget_GetCoord(IntPtr _widget);
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportWidget_SetCoord(IntPtr _widget, [In] ref IntCoord _value);
public IntCoord Coord
{
get { return (IntCoord)Marshal.PtrToStructure(ExportWidget_GetCoord(Native), typeof(IntCoord)); }
set { ExportWidget_SetCoord(Native, ref value); }
}
#endregion
#region Property Size
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportWidget_GetSize(IntPtr _widget);
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportWidget_SetSize(IntPtr _widget, [In] ref IntSize _value);
public IntSize Size
{
get { return (IntSize)Marshal.PtrToStructure(ExportWidget_GetSize(Native), typeof(IntSize)); }
set { ExportWidget_SetSize(Native, ref value); }
}
#endregion
#region Property Position
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportWidget_GetPosition(IntPtr _widget);
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportWidget_SetPosition(IntPtr _widget, [In] ref IntPoint _value);
public IntPoint Position
{
get { return (IntPoint)Marshal.PtrToStructure(ExportWidget_GetPosition(Native), typeof(IntPoint)); }
set { ExportWidget_SetPosition(Native, ref value); }
}
#endregion
}
}
|