AbstractBackground.st
author Claus Gittinger <cg@exept.de>
Thu, 27 Jan 2011 18:30:41 +0100
changeset 5691 b2381760f050
parent 5683 486548535ec4
child 5704 d7c401801223
permissions -rw-r--r--
changed: #initialize use class based queries
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5459
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     1
"
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     2
 COPYRIGHT (c) 2009 by eXept Software AG
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     3
              All Rights Reserved
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     4
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     5
 This software is furnished under a license and may be used
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     6
 only in accordance with the terms of that license and with the
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
     9
 other person.  No title to or ownership of the software is
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    10
 hereby transferred.
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    11
"
5398
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libview' }"
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
Object subclass:#AbstractBackground
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Graphics-Support'
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!AbstractBackground class methodsFor:'documentation'!
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
5459
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    23
copyright
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    24
"
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    25
 COPYRIGHT (c) 2009 by eXept Software AG
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    26
              All Rights Reserved
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    27
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    28
 This software is furnished under a license and may be used
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    29
 only in accordance with the terms of that license and with the
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    31
 be provided or otherwise made available to, or used by, any
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    32
 other person.  No title to or ownership of the software is
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    33
 hereby transferred.
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    34
"
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    35
!
7adaeea72491 added: #copyright
Claus Gittinger <cg@exept.de>
parents: 5398
diff changeset
    36
5398
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
documentation
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    This will replace the viewBackground color.
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    [author:]
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
        Claus Gittinger
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
5683
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    44
!
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    45
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    46
examples
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    47
"
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    48
    |v|
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    49
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    50
    v := View new.
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    51
    v viewBackground:(SolidBackground new color:Color red).
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    52
    v open.
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    53
"
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    54
! !
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    55
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    56
!AbstractBackground methodsFor:'drawing'!
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    57
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    58
fillRectangleX:x y:y width:w height:h in:aView
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    59
    self subclassResponsibility
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    60
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    61
    "Created: / 23-01-2011 / 01:59:29 / cg"
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    62
! !
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    63
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    64
!AbstractBackground methodsFor:'ignored conversion'!
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    65
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    66
asFormOn:aDevice
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    67
    ^ nil
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    68
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    69
    "Created: / 23-01-2011 / 01:45:35 / cg"
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    70
!
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    71
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    72
onDevice:aDevice
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    73
    ^ nil
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    74
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    75
    "Created: / 23-01-2011 / 01:46:11 / cg"
5398
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
! !
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
!AbstractBackground class methodsFor:'documentation'!
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
version_CVS
5683
Claus Gittinger <cg@exept.de>
parents: 5459
diff changeset
    81
    ^ '$Header: /cvs/stx/stx/libview/AbstractBackground.st,v 1.3 2011-01-23 01:43:13 cg Exp $'
5398
9f94824ab735 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
! !