Toolbar.getDropIndex

Returns the position corresponding to the indicated point on @toolbar. This is useful when dragging items to the toolbar: this function returns the position a new item should be inserted.

@x and @y are in @toolbar coordinates.

class Toolbar
int
getDropIndex
(
int x
,
int y
)

Parameters

x int

x coordinate of a point on the toolbar

y int

y coordinate of a point on the toolbar

Return Value

Type: int

The position corresponding to the point (@x, @y) on the toolbar.

Meta