eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ShadowView':

Home

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

Class: ShadowView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--ShadowView

Package:
stx:libview
Category:
Views-Special
Version:
rev: 1.42 date: 2017/10/10 12:42:21
user: mawalch
file: ShadowView.st directory: libview
module: stx stc-classLibrary: libview
Author:
Claus Gittinger

Description:


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.


Instance protocol:

accessing
o  for: aView
set the view I am a shadow for

o  isPopUpView
return true, since I want to come up without decoration

o  shadowColor: aColor
set the shadow color

event handling
o  redraw
if I have a shadowColor, fill all of myself with it;
otherwise, draw the saved image under myself.

initialization
o  create
enable saveUnder of the covered view(s).
This may not be supported by all devices - these have to redraw then

o  initialize
the length of the shadow from myView

o  realize
realize the shadowView some distance away from myView,
get the pixels under the shadow from the screen

o  recreate
sent after a snapin or a migration, reinit for new device

o  unmap
unmap the view - the view stays created (but invisible), and can be remapped again later.
Release the saved image of the covered view



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 07:30:46 GMT