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