ui::PushClipRoundedRect¶
Header: winui/render/Renderer.hpp.
A rectangular clip with rounded corners (a card or a tile whose picture follows its rounded edge). Paired with the same PopClip as every other clip.
Example:
const ui::Bitmap photo = ui::Bitmap::read("cover.jpg");
renderer.push_clip_rounded_rect(ui::Rect{0, 0, 240, 160}, 8.0f);
renderer.draw_image(photo, ui::Rect{0, 0, 240, 160}, ui::Stretch::UniformToFill);
renderer.pop_clip();
| Field | Type | Default | |
|---|---|---|---|
bounds |
Rect |
The rectangle, in DIPs. | |
radius |
float |
0.0f |
The corner radius, in DIPs; 0 is a plain rect clip. |