SurfaceToolIcon:
PUBLIC
PROC[]
RETURNS [icon: Icons.IconFlavor] ~
BEGIN
iconRef: Icons.IconRef ←
NEW[Icons.IconRep ← [
bits: ALL[0],
label: TRUE,
invertLabel: FALSE,
lx: 4,
ly: 4,
lw: 56,
lh: 56,
proc: PaintSurfaceToolIcon]];
icon ← Icons.NewIcon[iconRef];
END;
SurfaceViewerIcon:
PUBLIC
PROC[]
RETURNS [icon: Icons.IconFlavor] ~
BEGIN
iconRef: Icons.IconRef ←
NEW[Icons.IconRep ← [
bits: ALL[0],
label: TRUE,
invertLabel: FALSE,
lx: 4,
ly: 4,
lw: 56,
lh: 56,
proc: PaintSurfaceViewerIcon]];
icon ← Icons.NewIcon[iconRef];
END;
PaintSurfaceToolIcon: Icons.DrawIconProc ~
BEGIN
mathFont, textFont: ImagerFont.Font;
mathFont ← ImagerFont.Scale[ImagerFont.Find["xerox/pressfonts/cmex60"], 30];
textFont ← ImagerFont.Find["xerox/pressfonts/cmex60"];
Imager.SetColor[context, Imager.black];
Imager.MaskRectangleI[context, 50, 50, 10, 10];
Imager.SetFont[context, mathFont];
Imager.SetXYI[context, 15, 40];
Imager.ShowChar[context, '\122];
END;