eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'RoundedBorder':

Home

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

Class: RoundedBorder


Inheritance:

   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

Description:


a rounded border as in modern yosemite and new adwaita

copyright

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

Class protocol:

image specs
o  templateBottomLeftImage
self templateBottomLeftImage

o  templateBottomRightImage
self templateBottomRightImage

o  templateTopLeftImage
TemplateTopLeft := TemplateTopRight := nil.
TemplateBottomLeft := TemplateBottomRight := nil.

o  templateTopRightImage
self templateTopRightImage

o  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

o  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

o  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

o  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


Instance protocol:

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

private
o  makeImages


Examples:


     |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


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:34:26 GMT