Documentation

ETSelectionAreaItem class documentation

ETSelectionAreaItem : ETLayoutItem

Layout item to represent any kind of selection area.

AuthorsQuentin Mathe
Declared inETSelectionAreaItem.h

Overview

ETSelectionAreaItem is a layout item which can be used to represent any selection area indepently of:

  • the tool/tool currently in use and how the selection was created
  • the selection shape (rectangular, circle, polygonal etc.)

ETSelectionAreaItem is initialized with a rectangular ETShape, but the shape can be customized with -setStyle: . For example: [selectionAreaItem setStyle: [ETShape ovalShapeWithRect: [selectionAreaItem contentBounds]];

An ETTool subclass is expected to provide a prototype which can be customized (color, shape, opacity etc.). See -[ETSelectionTool selectionAreaItem] and ETShape to learn what you can customize.

ETSelectionTool used ETSelectionAreaItem to implement visual feedback when the selection is underway (aka rubber-banding).


No public API available