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