eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SimpleBorder':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SimpleBorder


Inheritance:

   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

Description:


a simple border, where all four sides are drawn in the same solid color


Instance protocol:

accessing
o  color
the color of the border

o  color: aColor
set the color of the border

displaying
o  displayOn: aGC forDisplayBox: aRectangle
View new
border:(SimpleBorder width:2 color:Color red);
open.


Examples:


    |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.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 14 Nov 2019 01:20:56 GMT