|
Class: RoundedBorder
Object
|
+--AbstractBorder
|
+--SimpleBorder
|
+--RoundedBorder
- Package:
- stx:libview
- Category:
- Graphics-Support
- Version:
- rev:
1.6
date: 2022/03/08 22:45:33
- user: cg
- file: RoundedBorder.st directory: libview
- module: stx stc-classLibrary: libview
a rounded border as in modern yosemite and new adwaita
copyrightCOPYRIGHT (c) 2015 by Claus Gittinger / eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
image specs
-
templateBottomLeftImage
-
self templateBottomLeftImage
-
templateBottomRightImage
-
self templateBottomRightImage
-
templateTopLeftImage
-
TemplateTopLeft := TemplateTopRight := nil.
TemplateBottomLeft := TemplateBottomRight := nil.
-
templateTopRightImage
-
self templateTopRightImage
-
topLeftImageUnfilledMasked
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self topLeftImageUnfilledMasked inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked2
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self topLeftImageUnfilledMasked2 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked2
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked3
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self topLeftImageUnfilledMasked3 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked3
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked4
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self topLeftImageUnfilledMasked4 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked4
Icon flushCachedIcons
|
displaying
-
displayOn: aGC forDisplayBox: aRectangle
-
(comment from inherited method)
View new
border:(SimpleBorder width:2 color:Color red);
open.
private
-
makeImages
-
|v b|
v := StandardSystemView extent:200@100.
v openAndWaitUntilVisible.
b := RoundedBorder width:5 color:Color grey.
b displayOn:v forDisplayBox:(0@0 extent:100@100).
|
|t v b|
t := StandardSystemView extent:200@100.
t viewBackground:Color green.
v := View in:t.
v viewBackground:Color red.
v origin:10@10 corner:90@90.
t openAndWaitUntilVisible.
b := RoundedBorder width:10 color:Color blue.
v border:b
|
|