|
@@ -12,30 +12,58 @@ namespace BansheeEngine
|
|
|
get { return _layout;}
|
|
get { return _layout;}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public enum ResizeAxis
|
|
|
|
|
|
|
+ internal GUIArea()
|
|
|
|
|
+ { }
|
|
|
|
|
+
|
|
|
|
|
+ internal static GUIArea Create(GUIBase parent, int x, int y, int width, int height, short depth)
|
|
|
|
|
+ {
|
|
|
|
|
+ GUIArea newArea = new GUIArea();
|
|
|
|
|
+ Internal_CreateInstance(newArea, parent, x, y, width, height, depth);
|
|
|
|
|
+ newArea._layout = new GUILayoutX(newArea);
|
|
|
|
|
+
|
|
|
|
|
+ return newArea;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ internal static GUIArea CreateResizableX(GUIBase parent, int offsetLeft, int offsetRight, int offsetTop, int height, short depth)
|
|
|
{
|
|
{
|
|
|
- X,
|
|
|
|
|
- Y,
|
|
|
|
|
- XY
|
|
|
|
|
|
|
+ GUIArea newArea = new GUIArea();
|
|
|
|
|
+ Internal_CreateInstanceResizableX(newArea, parent, offsetLeft, offsetRight, offsetTop, height, depth);
|
|
|
|
|
+ newArea._layout = new GUILayoutX(newArea);
|
|
|
|
|
+
|
|
|
|
|
+ return newArea;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- internal GUIArea(GUIBase parent, int x, int y, int width, int height, short depth)
|
|
|
|
|
|
|
+ internal static GUIArea CreateResizableY(GUIBase parent, int offsetTop, int offsetBottom, int offsetLeft, int width, short depth)
|
|
|
{
|
|
{
|
|
|
- Internal_CreateInstance(this, parent, x, y, width, height, depth);
|
|
|
|
|
- _layout = new LayoutX(this);
|
|
|
|
|
|
|
+ GUIArea newArea = new GUIArea();
|
|
|
|
|
+ Internal_CreateInstanceResizableY(newArea, parent, offsetTop, offsetBottom, offsetLeft, width, depth);
|
|
|
|
|
+ newArea._layout = new GUILayoutX(newArea);
|
|
|
|
|
+
|
|
|
|
|
+ return newArea;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- internal GUIArea(GUIBase parent, int offsetLeft, int offsetRight, int offsetTop, int offsetBottom, ResizeAxis resizeAxis, short depth)
|
|
|
|
|
|
|
+ internal static GUIArea CreateResizableXY(GUIBase parent, int offsetLeft, int offsetRight, int offsetTop, int offsetBottom, short depth)
|
|
|
{
|
|
{
|
|
|
- Internal_CreateResizableInstance(this, parent, offsetLeft, offsetRight, offsetTop, offsetBottom, resizeAxis, depth);
|
|
|
|
|
- _layout = new LayoutX(this);
|
|
|
|
|
|
|
+ GUIArea newArea = new GUIArea();
|
|
|
|
|
+ Internal_CreateInstanceResizableXY(newArea, parent, offsetLeft, offsetRight, offsetTop, offsetBottom, depth);
|
|
|
|
|
+ newArea._layout = new GUILayoutX(newArea);
|
|
|
|
|
+
|
|
|
|
|
+ return newArea;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
|
private static extern void Internal_CreateInstance(GUIArea instance, GUIBase parent, int x, int y, int width, int height, short depth);
|
|
private static extern void Internal_CreateInstance(GUIArea instance, GUIBase parent, int x, int y, int width, int height, short depth);
|
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
|
- private static extern void Internal_CreateResizableInstance(GUIArea instance, GUIBase parent, int offsetLeft, int offsetRight, int offsetTop,
|
|
|
|
|
- int offsetBottom, ResizeAxis resizeAxis, short depth);
|
|
|
|
|
|
|
+ private static extern void Internal_CreateInstanceResizableX(GUIArea instance, GUIBase parent, int offsetLeft, int offsetRight, int offsetTop,
|
|
|
|
|
+ int height, short depth);
|
|
|
|
|
+
|
|
|
|
|
+ [MethodImpl(MethodImplOptions.InternalCall)]
|
|
|
|
|
+ private static extern void Internal_CreateInstanceResizableY(GUIArea instance, GUIBase parent, int offsetTop, int offsetBottom, int offsetLeft,
|
|
|
|
|
+ int width, short depth);
|
|
|
|
|
+
|
|
|
|
|
+ [MethodImpl(MethodImplOptions.InternalCall)]
|
|
|
|
|
+ private static extern void Internal_CreateInstanceResizableXY(GUIArea instance, GUIBase parent, int offsetLeft, int offsetRight, int offsetTop,
|
|
|
|
|
+ int offsetBottom, short depth);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|