249
|
1 |
VisualComponent subclass:#VisualPart
|
|
2 |
instanceVariableNames:'container'
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Graphics-Display Objects'
|
|
6 |
!
|
|
7 |
|
|
8 |
|
|
9 |
!VisualPart methodsFor:'accessing'!
|
|
10 |
|
|
11 |
container
|
|
12 |
"return container"
|
|
13 |
|
|
14 |
^ container
|
|
15 |
|
|
16 |
"Created: 9.5.1996 / 00:31:41 / cg"
|
|
17 |
!
|
|
18 |
|
|
19 |
container:something
|
|
20 |
"set container"
|
|
21 |
|
|
22 |
container := something.
|
|
23 |
|
|
24 |
"Created: 9.5.1996 / 00:31:41 / cg"
|
|
25 |
!
|
|
26 |
|
|
27 |
graphicsContext
|
|
28 |
"return the graphicsContext"
|
|
29 |
|
254
|
30 |
^ container graphicsContext
|
249
|
31 |
|
|
32 |
"Created: 9.5.1996 / 00:32:12 / cg"
|
254
|
33 |
"Modified: 9.5.1996 / 01:37:10 / cg"
|
|
34 |
!
|
|
35 |
|
|
36 |
graphicsDevice
|
|
37 |
"return the graphicsContext"
|
|
38 |
|
|
39 |
^ container graphicsDevice
|
|
40 |
|
|
41 |
"Created: 9.5.1996 / 00:32:12 / cg"
|
|
42 |
"Modified: 9.5.1996 / 01:37:03 / cg"
|
|
43 |
!
|
|
44 |
|
|
45 |
topComponent
|
|
46 |
"return the top component - typically the topView"
|
|
47 |
|
|
48 |
^ container topComponent
|
|
49 |
|
|
50 |
"Modified: 9.5.1996 / 01:37:10 / cg"
|
|
51 |
"Created: 9.5.1996 / 01:39:15 / cg"
|
249
|
52 |
! !
|
|
53 |
|
|
54 |
!VisualPart class methodsFor:'documentation'!
|
|
55 |
|
|
56 |
version
|
254
|
57 |
^ '$Header: /cvs/stx/stx/libview2/VisualPart.st,v 1.2 1996-05-09 08:43:43 cg Exp $'
|
249
|
58 |
! !
|