Container corner clipping for rounded layouts in cpui
Raw Developer Origin & Technical Request
GitHub Issue
Dec 6, 2026
### What you are building
Rounded cards, media thumbnails, circular/pill image frames, and bordered rounded scroll areas or lists where children (images, colored headers/rows, canvases, or scrolled content) should be clipped cleanly to the container's rounded corners rather than leaking square corners outside the corner arcs or overwriting the container's border.
This follows up on the container-level rounded clipping step discussed in #146.
### How it might look in code
```rust
// Rounded card clipping an image and header without any new API:
ui.column()
.size(160, 120)
.rounded_lg()
.bordered()
.overflow_hidden()
.children(|ui| {
ui.image(&photo).size(160, 120);
});
// Bordered rounded list / scroll area clipping full-bleed rows inside its corners:
ui.list(100)
.row_height(28)
.h(200)
.bordered()
.rounded_md()
.show(|ui, row| {
ui.row().fill().bg(row_bg).children(|ui| {
ui.text(format_args!("Row {row}"));
});
});
```
### What you do today instead
Containers with `clip: true` (`overflow_hidden()`, `ui.scroll()`, `ui.list()`) only clip to their rectangular bounding box, so child backgrounds, images, canvases, and scrolled content stick out past the container's `rounded(...)` corners. Apps currently have to pre-mask bitmaps on the CPU or manually paint solid-color corner overlays over known flat backgrounds.
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from DEEIX-AI/cpui.
Frequently Asked Questions
Market intelligence mapped to Container corner clipping for rounded layouts in cpui.
What problem does Container corner clipping for rounded layouts in cpui solve?
What architecture is tied to Container corner clipping for rounded layouts in cpui?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like overflow_hidden() and rounded_lg() in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- overflow_hidden(): 1 records
- rounded_lg(): 1 records
- corner arcs: 1 records
- bordered rounded scroll areas: 1 records
SaaS Metrics