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.14 date: 2023/11/27 19:34:12
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.

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  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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 01:39:39 GMT