Generic tool for resizing a component
Called when the drag operation starts.
The event parameter is the mouse event that established the drag operation; its x and y attributes correspond to the current location of the mouse, and not to the position of the mouse when the initial left_down or right_down event happened.
Return the current value that is being modified
the hotspots which are active for this tool
Returns whether the (x,y) position is in a region that is OK to drag.
Used by the tool to determine when to start a drag.
the minimum bounds that we can resize to
set_delta(value, delta_x, delta_y)¶
Set the value that is being modified
This function should modify the underlying value based on the provided delta_x and delta_y in data coordinates. These deltas are total displacement from the original location, not incremental. The value parameter is the original value at the point where the drag started.
the distance in pixels from a hotspot required to register a hit