AbstractBackground.st
author Claus Gittinger <cg@exept.de>
Sun, 23 Jan 2011 02:43:13 +0100
changeset 5683 486548535ec4
parent 5459 7adaeea72491
child 5704 d7c401801223
permissions -rw-r--r--
added: #asFormOn: #examples #fillRectangleX:y:width:height:in: #onDevice:

"
 COPYRIGHT (c) 2009 by 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.
"
"{ Package: 'stx:libview' }"

Object subclass:#AbstractBackground
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Graphics-Support'
!

!AbstractBackground class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2009 by 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.
"
!

documentation
"
    This will replace the viewBackground color.

    [author:]
        Claus Gittinger
"
!

examples
"
    |v|

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

!AbstractBackground methodsFor:'drawing'!

fillRectangleX:x y:y width:w height:h in:aView
    self subclassResponsibility

    "Created: / 23-01-2011 / 01:59:29 / cg"
! !

!AbstractBackground methodsFor:'ignored conversion'!

asFormOn:aDevice
    ^ nil

    "Created: / 23-01-2011 / 01:45:35 / cg"
!

onDevice:aDevice
    ^ nil

    "Created: / 23-01-2011 / 01:46:11 / cg"
! !

!AbstractBackground class methodsFor:'documentation'!

version_CVS
    ^ '$Header: /cvs/stx/stx/libview/AbstractBackground.st,v 1.3 2011-01-23 01:43:13 cg Exp $'
! !