Skip to main content

mapper.view_elements.operable_area()

mapper.view_elements.operable_area(param_table)

This function creates a OperableArea view element object.

Parameters

ParameterTypeDescription
param_tabletableThis parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section.

Parameters Table

KeyTypeDescription
reaction_colorColorThe region of this view element is filled with the specified color by this parameter while being touched.
The default is the color created by mapper.color('Cyan', 0.3)
round_rationumberThe ratio to the short side of the corner radius of the rectangle. This parameter is specified when the shape of the filled area, while being touched, is a rounded rectangle instead of a rectangle.
When specifying 0.5 and the width and height of the view element are equal, the filled area becomes a circle.
The default is 0.
event_tapnumberSpecifies the Event ID to be triggered upon detecting a tap action.
event_flick_upnumberSpecifies the Event ID to be triggered upon detecting a upward flick action.
event_flick_downnumberSpecifies the Event ID to be triggered upon detecting downward flick action.
event_flick_rightnumberSpecifies the Event ID to be triggered upon detecting rightward flick action.
event_flick_leftnumberSpecifies the Event ID to be triggered upon detecting leftward flick action.
event_rotate_clockwisenumberCURRENTRY NOT IMPLEMENTED
Specifies the Event ID to be triggered upon detecting clockwise rotation.
event_rotate_counterclockwisenumberCURRENTRY NOT IMPLEMENTED
Specifies the Event ID to be triggered upon detecting counterclockwise rotation.

Return Values

This function returns a OperableArea object.

See Also