Adds nextDisabled, previousDisabled, and dotNavigationIndices to render*Controls callbacks to aid in the creation of custom controls.
Previously, library users would have to recreate the logic we already have inside the library for detecting when a next/prev button should be disabled, or for recreating the indices of the dots used for navigation. The logic for each of those is actually quite complex, with many edge cases, so it's very likely a library user would unintentionally introduce bugs into their program. By providing the values we use internally, they don't have to worry about recreating that logic.
Type of Change
[x] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
I used the newly provided values in the logic for rendering the default controls, so our existing test suite should catch any unexpected changes.
Description
Adds
nextDisabled
,previousDisabled
, anddotNavigationIndices
torender*Controls
callbacks to aid in the creation of custom controls.Previously, library users would have to recreate the logic we already have inside the library for detecting when a next/prev button should be disabled, or for recreating the indices of the dots used for navigation. The logic for each of those is actually quite complex, with many edge cases, so it's very likely a library user would unintentionally introduce bugs into their program. By providing the values we use internally, they don't have to worry about recreating that logic.
Type of Change
How Has This Been Tested?
I used the newly provided values in the logic for rendering the default controls, so our existing test suite should catch any unexpected changes.