eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MacFlatButtonBorder':

Home

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

Class: MacFlatButtonBorder


Inheritance:

   Object
   |
   +--AbstractBorder
      |
      +--SimpleBorder
         |
         +--MacFlatButtonBorder

Package:
stx:libview
Category:
Graphics-Support
Version:
rev: 1.11 date: 2017/11/28 18:18:07
user: cg
file: MacFlatButtonBorder.st directory: libview
module: stx stc-classLibrary: libview

Description:


an as yet unused and unfinished attempt to provide a mac-osx like
button border. These will look like mac buttons in yosemite (i.e. ugly old 70s retro flat style).
To be continued.


Class protocol:

image specs
o  topLeftImageFilled
This resource specification was automatically generated
by the ImageEditor of ST/X.

usage example(s):

     self topLeftImageFilled inspect
     ImageEditor openOnClass:self andSelector:#topLeftImageFilled
     Icon flushCachedIcons

o  topLeftImageUnfilled
This resource specification was automatically generated
by the ImageEditor of ST/X.

usage example(s):

     self topLeftImageUnfilled inspect
     ImageEditor openOnClass:self andSelector:#topLeftImageUnfilled
     Icon flushCachedIcons

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

o  topLeftImageUnfilledMasked5
This resource specification was automatically generated
by the ImageEditor of ST/X.

usage example(s):

     self topLeftImageUnfilledMasked5 inspect
     ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked5
     Icon flushCachedIcons

o  topLeftImageUnfilledMasked6
This resource specification was automatically generated
by the ImageEditor of ST/X.

usage example(s):

     self topLeftImageUnfilledMasked6 inspect
     ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked6
     Icon flushCachedIcons

instance creation
o  color: color1 backgroundColor: color2
create a new instance of the receiver with a border of the given color.

o  color: color1 insideColor: color2
create a new instance of the receiver with a border of the given color.


Instance protocol:

accessing-color & font
o  backgroundColor1
the first gradient color

o  backgroundColor1: newColor
the first gradient color

o  backgroundColor2
the second gradient color

o  backgroundColor2: newColor
the second gradient color

o  color: newColor
the color of the border

displaying
o  displayOn: aGC forDisplayBox: aRectangle
|v1 v2|

v1 := TopView new.
v2 := View origin:10@10 corner:100@30 in:v1.
v2 border:(MacFlatButtonBorder color:Color red).
v1 open.

private
o  makeImages
imgBottomRight colorMap at:1 put:color darkened.



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 07:45:44 GMT