278
|
1 |
TranslatingWrapper subclass:#LayoutWrapper
|
|
2 |
instanceVariableNames:'layout'
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Graphics-Display Objects'
|
|
6 |
!
|
|
7 |
|
|
8 |
|
|
9 |
!LayoutWrapper class methodsFor:'instance creation'!
|
|
10 |
|
|
11 |
on:aComponent in:aLayout
|
|
12 |
"create and return a layoutWrapper, which controls
|
|
13 |
aComponent bounds using aLayout.
|
|
14 |
The layout argument may be:
|
|
15 |
nil - no constraint
|
|
16 |
Point - origin shift
|
|
17 |
Rectangle - origin shift & extent
|
|
18 |
Layout - full control"
|
|
19 |
|
|
20 |
^ (self on:aComponent) layout:aLayout
|
|
21 |
|
|
22 |
"Created: 26.5.1996 / 16:18:44 / cg"
|
|
23 |
"Modified: 26.5.1996 / 16:34:04 / cg"
|
|
24 |
! !
|
|
25 |
|
|
26 |
!LayoutWrapper methodsFor:'accessing'!
|
|
27 |
|
|
28 |
layout
|
|
29 |
"return layout"
|
|
30 |
|
|
31 |
^ layout
|
|
32 |
|
|
33 |
"Created: 26.5.1996 / 16:18:11 / cg"
|
|
34 |
!
|
|
35 |
|
|
36 |
layout:something
|
|
37 |
"set layout"
|
|
38 |
|
|
39 |
layout := something.
|
|
40 |
|
|
41 |
"Created: 26.5.1996 / 16:18:11 / cg"
|
|
42 |
! !
|
|
43 |
|
|
44 |
!LayoutWrapper class methodsFor:'documentation'!
|
|
45 |
|
|
46 |
version
|
|
47 |
^ '$Header: /cvs/stx/stx/libview2/LayoutWrapper.st,v 1.1 1996-05-28 22:43:39 cg Exp $'
|
|
48 |
! !
|