|
Class: SimpleBorder
Object
|
+--AbstractBorder
|
+--SimpleBorder
|
+--MacFlatButtonBorder
|
+--RoundedBorder
- Package:
- stx:libview
- Category:
- Graphics-Support
- Version:
- rev:
1.8
date: 2017/02/22 20:18:34
- user: cg
- file: SimpleBorder.st directory: libview
- module: stx stc-classLibrary: libview
- Author:
- Claus Gittinger
a simple border, where all four sides are drawn in the same solid color
accessing
-
color
-
the color of the border
-
color: aColor
-
set the color of the border
displaying
-
displayOn: aGC forDisplayBox: aRectangle
-
View new
border:(SimpleBorder width:2 color:Color red);
open.
|v1 v2 b|
v1 := View new extent:100@100.
v2 := View origin:10@10 corner:90@20 in:v2.
v2 border:(SimpleBorder new color:Color red).
v1 openAndWait.
|
|