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.44 date: 2021/03/14 14:30:47
user: cg
file: ShadowView.st directory: libview
module: stx stc-classLibrary: libview

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.

copyright

COPYRIGHT (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.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:29:29 GMT