cf::ui::base::geometry¶
Types¶
| Name | |
|---|---|
| enum class | ShapeScale { ShapeNone, ShapeExtraSmall, ShapeSmall, ShapeMedium, ShapeLarge, ShapeExtraLarge, ShapeFull} Material Design shape scale categories. |
Functions¶
| Name | |
|---|---|
| float | radiusForScale(ShapeScale scale) |
| QPainterPath | roundedRect(constQRectF & rect, ShapeScale scale) Creates a rounded rectangle path with Material Design scale. |
| QPainterPath | roundedRect(constQRectF & rect, float radius) Creates a rounded rectangle path with uniform corner radius. |
| QPainterPath | roundedRect(constQRectF & rect, float topLeft, float topRight, float bottomLeft, float bottomRight) Creates a rounded rectangle path with individual corner radii. |
Types Documentation¶
enum ShapeScale¶
| Enumerator | Value | Description |
|---|---|---|
| ShapeNone | No rounding (0dp). | |
| ShapeExtraSmall | Extra small rounding (4dp). | |
| ShapeSmall | Small rounding (8dp). | |
| ShapeMedium | Medium rounding (12dp). | |
| ShapeLarge | Large rounding (16dp). | |
| ShapeExtraLarge | Extra large rounding (28dp). | |
| ShapeFull | Full rounding (50% of size). |
Material Design shape scale categories.
Defines standard corner radius values following Material Design shape specifications.
Functions Documentation¶
function radiusForScale¶
function roundedRect¶
Creates a rounded rectangle path with Material Design scale.
Parameters:
- rect The base rectangle to round.
- scale The Material Design shape scale for corner radius.
Exceptions:
- None
Return: QPainterPath with rounded rectangle.
Since: 0.1
Note: None
Warning: None
function roundedRect¶
Creates a rounded rectangle path with uniform corner radius.
Parameters:
- rect The base rectangle to round.
- radius Uniform corner radius in pixels.
Exceptions:
- None
Return: QPainterPath with rounded rectangle.
Since: 0.1
Note: None
Warning: None
function roundedRect¶
QPainterPath roundedRect(
constQRectF & rect,
float topLeft,
float topRight,
float bottomLeft,
float bottomRight
)
Creates a rounded rectangle path with individual corner radii.
Parameters:
- rect The base rectangle to round.
- topLeft Top-left corner radius in pixels.
- topRight Top-right corner radius in pixels.
- bottomLeft Bottom-left corner radius in pixels.
- bottomRight Bottom-right corner radius in pixels.
Exceptions:
- None
Return: QPainterPath with rounded rectangle.
Since: 0.1
Note: None
Warning: None
Updated on 2026-03-09 at 10:14:00 +0000