Tree.DropModeFlags/dropModeFlags - multiple declarations

Function Tree.dropModeFlags

The drop mode as an OR combination of flags. See dropmodeflags constants. Once dropping is done, reverts to constant DROP_MODE_DISABLED. Setting this during Control.canDropData is recommended. This controls the drop sections, i.e. the decision and drawing of possible drop locations based on the mouse position.

long dropModeFlags() nothrow @property @nogc;

void dropModeFlags (
  long v
) nothrow @property @nogc;

Enum Tree.DropModeFlags

enum DropModeFlags : int { ... }

Enum members

NameDescription
dropModeDisabled Disables all drop sections, but still allows to detect the "on item" drop section by getDropSectionAtPosition. Note: This is the default flag, it has no effect when combined with other flags.
dropModeInbetween Enables "above item" and "below item" drop sections. The "above item" drop section covers the top half of the item, and the "below item" drop section covers the bottom half. When combined with constant DROP_MODE_ON_ITEM, these drop sections halves the height and stays on top / bottom accordingly.
dropModeOnItem Enables the "on item" drop section. This drop section covers the entire item. When combined with constant DROP_MODE_INBETWEEN, this drop section halves the height and stays centered vertically.