SeslRoundedCorner
Utility class for managing and drawing rounded corners. This class provides methods to set which corners should be rounded, the color of the rounded corners, and to draw these corners on a Canvas.
It defines constants for specifying different combinations of rounded corners:
- ROUNDED_CORNER_NONE: No corners are rounded.
- ROUNDED_CORNER_TOP_LEFT: Only the top-left corner is rounded.
- ROUNDED_CORNER_TOP_RIGHT: Only the top-right corner is rounded.
- ROUNDED_CORNER_BOTTOM_LEFT: Only the bottom-left corner is rounded.
- ROUNDED_CORNER_BOTTOM_RIGHT: Only the bottom-right corner is rounded.
- ROUNDED_CORNER_ALL: All four corners are rounded.
The class also includes a nested SeslRoundedChunkingDrawable class, which is a Drawable responsible for rendering a single rounded corner.
Note: The implementation details of how the rounded corners are drawn, including the use of Bezier curves and scaling factors, are handled internally.
Inheritors
Constructors
Types
Properties
Functions
Link copied to clipboard
Draws the rounded corners on the given canvas.
Draws the rounded corners on the given canvas with the specified insets.
Draws the rounded corners onto the provided canvas.
Draws the rounded corners for the given view.
Link copied to clipboard
Retrieves the color of a specific rounded corner.
Link copied to clipboard
Retrieves the radius of the rounded corners.
Link copied to clipboard
Returns the current rounded corner mode.
Link copied to clipboard
Link copied to clipboard
Sets the color for the specified rounded corners.
Link copied to clipboard
Sets the rounded corners to be drawn.