author | Claus Gittinger <cg@exept.de> |
Wed, 05 Feb 2014 14:29:03 +0100 | |
changeset 6239 | 6566276ba3dc |
parent 6238 | d62bf03b097c |
child 6955 | fc29f17aeb4c |
permissions | -rw-r--r-- |
5459 | 1 |
" |
2 |
COPYRIGHT (c) 2009 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
5398 | 12 |
"{ Package: 'stx:libview' }" |
13 |
||
14 |
Object subclass:#AbstractBackground |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Graphics-Support' |
|
19 |
! |
|
20 |
||
21 |
!AbstractBackground class methodsFor:'documentation'! |
|
22 |
||
5459 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2009 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
5398 | 37 |
documentation |
38 |
" |
|
39 |
This will replace the viewBackground color. |
|
6238 | 40 |
Instances of me (and subclasses) can be set as a widget's |
41 |
viewBackground, and will get |
|
42 |
fillRectangleX:x y:y width:w height:h in:aView |
|
43 |
messages whenever the widget wants to redraw (parts of) its background. |
|
44 |
||
45 |
See the example in GradientBackground. |
|
5398 | 46 |
|
47 |
[author:] |
|
48 |
Claus Gittinger |
|
6238 | 49 |
|
50 |
[see also:] |
|
51 |
GradientBackground |
|
5398 | 52 |
" |
5683 | 53 |
! |
54 |
||
55 |
examples |
|
56 |
" |
|
57 |
|v| |
|
58 |
||
59 |
v := View new. |
|
60 |
v viewBackground:(SolidBackground new color:Color red). |
|
61 |
v open. |
|
62 |
" |
|
63 |
! ! |
|
64 |
||
65 |
!AbstractBackground methodsFor:'drawing'! |
|
66 |
||
67 |
fillRectangleX:x y:y width:w height:h in:aView |
|
68 |
self subclassResponsibility |
|
69 |
||
70 |
"Created: / 23-01-2011 / 01:59:29 / cg" |
|
71 |
! ! |
|
72 |
||
73 |
!AbstractBackground methodsFor:'ignored conversion'! |
|
74 |
||
75 |
asFormOn:aDevice |
|
5704
d7c401801223
comment/format in: #initializeAllPluginClasses
Claus Gittinger <cg@exept.de>
parents:
5683
diff
changeset
|
76 |
self subclassResponsibility |
5683 | 77 |
|
78 |
"Created: / 23-01-2011 / 01:45:35 / cg" |
|
5704
d7c401801223
comment/format in: #initializeAllPluginClasses
Claus Gittinger <cg@exept.de>
parents:
5683
diff
changeset
|
79 |
"Modified: / 03-02-2011 / 19:55:49 / cg" |
5683 | 80 |
! |
81 |
||
82 |
onDevice:aDevice |
|
5704
d7c401801223
comment/format in: #initializeAllPluginClasses
Claus Gittinger <cg@exept.de>
parents:
5683
diff
changeset
|
83 |
self subclassResponsibility |
5683 | 84 |
|
85 |
"Created: / 23-01-2011 / 01:46:11 / cg" |
|
5704
d7c401801223
comment/format in: #initializeAllPluginClasses
Claus Gittinger <cg@exept.de>
parents:
5683
diff
changeset
|
86 |
"Modified: / 03-02-2011 / 19:55:40 / cg" |
5398 | 87 |
! ! |
88 |
||
6239 | 89 |
!AbstractBackground methodsFor:'testing'! |
90 |
||
91 |
isViewBackground |
|
92 |
^ true |
|
93 |
! ! |
|
94 |
||
5398 | 95 |
!AbstractBackground class methodsFor:'documentation'! |
96 |
||
6239 | 97 |
version |
98 |
^ '$Header: /cvs/stx/stx/libview/AbstractBackground.st,v 1.6 2014-02-05 13:29:03 cg Exp $' |
|
99 |
! |
|
100 |
||
5398 | 101 |
version_CVS |
6239 | 102 |
^ '$Header: /cvs/stx/stx/libview/AbstractBackground.st,v 1.6 2014-02-05 13:29:03 cg Exp $' |
5398 | 103 |
! ! |
6238 | 104 |