eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'AbstractBackground':

Home

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

Class: AbstractBackground


Inheritance:

   Object
   |
   +--AbstractBackground
      |
      +--DiffTextView::DiffTextScrollerBackground
      |
      +--GradientBackground
      |
      +--ImageBackground
      |
      +--NoBackground
      |
      +--SolidBackground
      |
      +--Tools::CodeView2::AnnotationShowingScrollerBackground

Package:
stx:libview
Category:
Graphics-Support
Version:
rev: 1.10 date: 2021/01/20 15:45:02
user: cg
file: AbstractBackground.st directory: libview
module: stx stc-classLibrary: libview

Description:


This will replace the viewBackground color.
Instances of me (and subclasses) can be set as a widget's
viewBackground, and will get 
    fillRectangleX:x y:y width:w height:h in:aView
messages whenever the widget wants to redraw (parts of) its background.

See the example in GradientBackground.

copyright

COPYRIGHT (c) 2009 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:

queries
o  isAbstract
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.


Instance protocol:

drawing
o  fillRectangleX: x y: y width: w height: h in: aView

** This method must be redefined in concrete classes (subclassResponsibility) **

ignored conversion
o  asFormOn: aDevice

** This method must be redefined in concrete classes (subclassResponsibility) **

o  onDevice: aDevice

** This method must be redefined in concrete classes (subclassResponsibility) **

testing
o  isViewBackground
(comment from inherited method)
return false here; to be redefined in subclass(es)

o  needsFullRedrawOnChangeOfHeight

o  needsFullRedrawOnChangeOfWidth


Examples:


|v|

v := View new.
v viewBackground:(SolidBackground new color:Color red).
v open.


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 07 Oct 2024 22:49:21 GMT