|
Class: MacFlatButtonBorder
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
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.
copyrightCOPYRIGHT (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.
image specs
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
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
-
color: color1 backgroundColor: color2
-
create a new instance of the receiver with a border of the given color.
-
color: color1 insideColor: color2
-
create a new instance of the receiver with a border of the given color.
accessing-color & font
-
backgroundColor1
-
the first gradient color
-
backgroundColor1: newColor
-
the first gradient color
-
backgroundColor2
-
the second gradient color
-
backgroundColor2: newColor
-
the second gradient color
-
color: newColor
-
the color of the border
displaying
-
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
-
makeImages
-
imgBottomRight colorMap at:1 put:color darkened.
|