|
Class: ShadowView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--ShadowView
- Package:
- stx:libview
- Category:
- Views-Special
- Version:
- rev:
1.44
date: 2021/03/14 14:30:47
- user: cg
- file: ShadowView.st directory: libview
- module: stx stc-classLibrary: libview
ShadowView exists just to give PopUps and ModalBoxes a shadow.
If shadowClr is nil, the shadowView reads the screen-contents under
itself before realization, and uses a greyed version of these pixels
for its background. If shadowClr is non-nil, that color is used
as shadow (can be used for solid-black shadows).
The instance variable myView is the view, for which the shadow is for.
copyrightCOPYRIGHT (c) 1991 by Claus Gittinger
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.
accessing
-
for: aView
-
set the view I am a shadow for
-
isPopUpView
-
return true, since I want to come up without decoration
-
shadowColor: aColor
-
set the shadow color
event handling
-
redraw
-
if I have a shadowColor, fill all of myself with it;
otherwise, draw the saved image under myself.
initialization
-
create
-
enable saveUnder of the covered view(s).
This may not be supported by all devices - these have to redraw then
-
initialize
-
the length of the shadow from myView
-
realize
-
realize the shadowView some distance away from myView,
get the pixels under the shadow from the screen
-
recreate
-
sent after a snapin or a migration, reinit for new device
-
unmap
-
unmap the view - the view stays created (but invisible), and can be remapped again later.
Release the saved image of the covered view
|