// Aseprite
// Copyright (C) 2001-2017  David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.

#ifndef APP_UI_EDITOR_HANDLE_TYPE_H_INCLUDED
#define APP_UI_EDITOR_HANDLE_TYPE_H_INCLUDED
#pragma once

namespace app {

  // Handles available to transform a region of pixels in the editor.
  enum HandleType {
    // No handle selected
    NoHandle,
    // This is the handle to move the pixels region, generally, the
    // whole region activates this handle.
    MovePixelsHandle,
    MoveSelectionHandle,
    // One of the region's corders to scale.
    ScaleNWHandle, ScaleNHandle, ScaleNEHandle,
    ScaleWHandle,                ScaleEHandle,
    ScaleSWHandle, ScaleSHandle, ScaleSEHandle,
    // One of the region's corders to rotate.
    RotateNWHandle, RotateNHandle, RotateNEHandle,
    RotateWHandle,                 RotateEHandle,
    RotateSWHandle, RotateSHandle, RotateSEHandle,
    // Handle used to move the pivot
    PivotHandle,
  };

} // namespace app

#endif
