Exemplo n.º 1
0
 private static extern void Internal_CreateInstance(HandleSlider2D instance, int width, int height,
                                                    Slider2DConstraint constraint, UInt64 layer);
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new 2D handle slider.
 /// </summary>
 /// <param name="parentHandle">Handle that the slider belongs to.</param>
 /// <param name="width">Width of the area of the slider that can be interacted with, in pixels.</param>
 /// <param name="height">Height of the area of the slider that can be interacted with, in pixels.</param>
 /// <param name="layer">
 /// Layer that allows filtering of which sliders are interacted with from a specific camera.
 /// </param>
 /// <param name="constraint">
 /// Optional constraint that determines in which direction is the slider allowed to be moved in.
 /// </param>
 public HandleSlider2D(Handle parentHandle, int width, int height, Slider2DConstraint constraint, UInt64 layer = 1)
     : base(parentHandle)
 {
     Internal_CreateInstance(this, width, height, constraint, layer);
 }