M13.5: extended viewer (custom 3D views / Draft 3D render the pasteboard around the comp frame; view.extendedViewer)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ed46bc0cce
commit
baf4716246
@@ -89,6 +89,8 @@ pub enum Icon {
|
||||
MaskVis,
|
||||
Checker,
|
||||
Region,
|
||||
/// Extended Viewer: a small frame with corner ticks reaching outward.
|
||||
ExtendedViewer,
|
||||
Plus,
|
||||
Minus,
|
||||
Close,
|
||||
@@ -513,6 +515,12 @@ pub fn paint(painter: &Painter, rect: Rect, icon: Icon, color: Color32) {
|
||||
pen.rect(2.5, 2.5, 13.5, 13.5);
|
||||
pen.rect(5.5, 5.5, 10.5, 10.5);
|
||||
}
|
||||
ExtendedViewer => {
|
||||
pen.rect(5.0, 5.0, 11.0, 11.0);
|
||||
for (x, y, dx, dy) in [(2.0, 2.0, 1.0, 1.0), (14.0, 2.0, -1.0, 1.0), (2.0, 14.0, 1.0, -1.0), (14.0, 14.0, -1.0, -1.0)] {
|
||||
pen.line(&[(x + dx * 3.0, y), (x, y), (x, y + dy * 3.0)]);
|
||||
}
|
||||
}
|
||||
Plus => {
|
||||
pen.line(&[(8.0, 3.0), (8.0, 13.0)]);
|
||||
pen.line(&[(3.0, 8.0), (13.0, 8.0)]);
|
||||
|
||||
Reference in New Issue
Block a user