// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine.GUI
{
///
/// UI control anchors presets.
///
public enum AnchorPresets
{
///
/// The empty preset.
///
Custom,
///
/// The top left corner of the parent control.
///
TopLeft,
///
/// The center of the top edge of the parent control.
///
TopCenter,
///
/// The top right corner of the parent control.
///
TopRight,
///
/// The middle of the left edge of the parent control.
///
MiddleLeft,
///
/// The middle center! Right in the middle of the parent control.
///
MiddleCenter,
///
/// The middle of the right edge of the parent control.
///
MiddleRight,
///
/// The bottom left corner of the parent control.
///
BottomLeft,
///
/// The center of the bottom edge of the parent control.
///
BottomCenter,
///
/// The bottom right corner of the parent control.
///
BottomRight,
///
/// The vertical stretch on the left of the parent control.
///
VerticalStretchLeft,
///
/// The vertical stretch on the center of the parent control.
///
VerticalStretchCenter,
///
/// The vertical stretch on the right of the parent control.
///
VerticalStretchRight,
///
/// The horizontal stretch on the top of the parent control.
///
HorizontalStretchTop,
///
/// The horizontal stretch in the middle of the parent control.
///
HorizontalStretchMiddle,
///
/// The horizontal stretch on the bottom of the parent control.
///
HorizontalStretchBottom,
///
/// All parent control edges.
///
StretchAll,
}
///
/// Specifies which scroll bars will be visible on a control
///
[Flags]
public enum ScrollBars
{
///
/// Don't use scroll bars.
///
[Tooltip("Don't use scroll bars.")]
None = 0,
///
/// Use horizontal scrollbar.
///
[Tooltip("Use horizontal scrollbar.")]
Horizontal = 1,
///
/// Use vertical scrollbar.
///
[Tooltip("Use vertical scrollbar.")]
Vertical = 2,
///
/// Use horizontal and vertical scrollbar.
///
[Tooltip("Use horizontal and vertical scrollbar.")]
Both = Horizontal | Vertical
}
///
/// The drag item positioning modes.
///
public enum DragItemPositioning
{
///
/// The none.
///
None = 0,
///
/// At the item.
///
At,
///
/// Above the item (near the upper/left edge).
///
Above,
///
/// Below the item (near the bottom/right edge)
///
Below
}
///
/// Specifies the orientation of controls or elements of controls
///
public enum Orientation
{
///
/// The horizontal.
///
Horizontal = 0,
///
/// The vertical.
///
Vertical = 1,
}
}