Wrapper.st
author Jan Vrany <jan.vrany@labware.com>
Tue, 04 Apr 2023 14:22:18 +0200
branchjv
changeset 4473 3675eb1de41b
parent 3855 1db7742d33ad
permissions -rw-r--r--
Cherry-picked `WindowBuilder >> #isWebPageBuilder`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1996 by Claus Gittinger
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
1789
f52f0a0d8448 category
Claus Gittinger <cg@exept.de>
parents: 1220
diff changeset
    12
"{ Package: 'stx:libview2' }"
f52f0a0d8448 category
Claus Gittinger <cg@exept.de>
parents: 1220
diff changeset
    13
3855
1db7742d33ad Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2662
diff changeset
    14
"{ NameSpace: Smalltalk }"
1db7742d33ad Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2662
diff changeset
    15
279
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
    16
VisualPart subclass:#Wrapper
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'component'
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
1789
f52f0a0d8448 category
Claus Gittinger <cg@exept.de>
parents: 1220
diff changeset
    20
	category:'Compatibility-ST80-Graphics-Display Objects'
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    23
!Wrapper class methodsFor:'documentation'!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 1996 by Claus Gittinger
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
              All Rights Reserved
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    abstract superclass for all kinds of wrapping components
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    45
    This class and its subclasses (currently) exist mostly for
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    46
    ST-80 compatibility - to provide a home for ported PD classes,
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    47
    which depend on the VisualPart hierarchy.
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    48
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    49
    Notice: 
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    50
        this class was implemented using protocol information
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    51
        from alpha testers, from reading PD programs and 
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    52
        from the Hopkins/Horan book.
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    53
        - it may not be complete or compatible to the corresponding ST-80 class. 
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    54
        If you encounter any incompatibilities, please forward a note 
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    55
        describing the incompatibility verbal (i.e. no code) to the ST/X team.
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    56
        This is still being constructed - not yet finished.
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    57
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    [author:]
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
        Claus Gittinger
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    64
!Wrapper class methodsFor:'instance creation'!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
on:aComponent
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    ^ self new component:aComponent
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "Created: 8.5.1996 / 23:20:46 / cg"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
!Wrapper methodsFor:'accessing'!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
component
247
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
    75
    "return the wrappers component"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
    76
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    ^ component
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "Created: 8.5.1996 / 23:17:30 / cg"
247
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
    80
    "Modified: 9.5.1996 / 00:19:58 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
component:someComponent
247
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
    84
    "set the wrappers component"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
    85
279
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
    86
    component := someComponent.
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
    87
    component notNil ifTrue:[
283
f28c462b9d13 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
    88
        "/ temporary kludge - images are (currently) not
f28c462b9d13 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
    89
        "/ inheriting from visualComponent ...
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    90
"/        (someComponent respondsTo:#container:) ifTrue:[
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    91
            someComponent container:self.
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    92
"/        ].
2662
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
    93
        frame isNil ifTrue:[
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    94
            component bounds notNil ifTrue:[
2662
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
    95
                frame := component bounds
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    96
            ]
283
f28c462b9d13 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 279
diff changeset
    97
        ]
279
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
    98
    ]
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "Created: 8.5.1996 / 23:17:46 / cg"
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   101
    "Modified: 5.6.1996 / 02:31:40 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
!Wrapper methodsFor:'accessing - bounds'!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
bounds:newBounds
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   107
    "set my bounds - forwarded to the wrapped object"
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   108
2662
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   109
    newBounds ~= frame ifTrue:[
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   110
        frame := newBounds.
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   111
        component bounds:newBounds
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   112
    ].
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Created: 8.5.1996 / 23:18:12 / cg"
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   115
    "Modified: 19.7.1996 / 17:47:34 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
279
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   118
newBounds:newBounds containingBounds:containingBounds
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   119
    self bounds:newBounds
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   120
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   121
    "Created: 26.5.1996 / 16:50:49 / cg"
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   122
!
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   123
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
preferredBounds
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   125
    "return my preferredBounds as the components preferredBounds"
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   126
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    ^ component preferredBounds
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
    "Created: 8.5.1996 / 23:18:53 / cg"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   130
    "Modified: 9.5.1996 / 00:10:32 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
!Wrapper methodsFor:'displaying'!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
2209
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   135
displayOn:aGCOrStream
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   136
    "display myself - forwarded to the wrapped object"
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   137
2209
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   138
    "/ what a kludge - Dolphin and Squeak mean: printOn: a stream;
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   139
    "/ ST/X (and some old ST80's) mean: draw-yourself on a GC.
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   140
    (aGCOrStream isStream or:[aGCOrStream == Transcript]) ifTrue:[
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   141
        self printOn:aGCOrStream.
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   142
        ^ self
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   143
    ].
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   144
    component displayOn:aGCOrStream
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
2209
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   146
    "Created: / 08-05-1996 / 23:19:24 / cg"
e5c8505b8530 *** empty log message ***
fm
parents: 1789
diff changeset
   147
    "Modified: / 11-09-2006 / 15:01:24 / User"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   150
!Wrapper methodsFor:'queries'!
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   151
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   152
hasBorder
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   153
    ^ false
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   154
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   155
    "Created: 26.5.1996 / 16:47:37 / cg"
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   156
!
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   157
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   158
isWrapper
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   159
    ^ true
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   160
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   161
    "Created: 5.6.1996 / 01:04:30 / cg"
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   162
! !
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   163
279
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   164
!Wrapper methodsFor:'testing'!
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   165
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   166
containsPoint:aPoint
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   167
    ^ component containsPoint:aPoint
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   168
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   169
    "Created: 26.5.1996 / 16:48:00 / cg"
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   170
!
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   171
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   172
intersects:aRectangle
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   173
    ^ component intersects:aRectangle
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   174
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   175
    "Created: 26.5.1996 / 16:48:52 / cg"
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   176
! !
bf069aab8a8c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   177
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   178
!Wrapper methodsFor:'view protocol mimicri'!
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   179
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   180
containerMapped
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   181
    component containerMapped
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   182
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   183
    "Created: 19.7.1996 / 17:41:31 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   184
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   185
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   186
containerUnmapped
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   187
    component containerUnmapped
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   188
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   189
    "Created: 19.7.1996 / 17:45:10 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   190
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   191
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   192
destroy
2662
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   193
    self destroyComponent.
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   194
    super destroy.
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   195
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   196
    "Created: 19.7.1996 / 17:26:02 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   197
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 292
diff changeset
   198
2662
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   199
destroyComponent
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   200
    component destroy
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   201
!
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   202
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   203
realize
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   204
    "my container realized itself. Forward this to my component"
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   205
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   206
    component realize.
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   207
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   208
    "Created: 4.6.1996 / 21:29:27 / cg"
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   209
!
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   210
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   211
removeSubView:aView
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   212
    component := nil
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   213
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   214
    "Created: 4.6.1996 / 21:39:50 / cg"
1220
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   215
!
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   216
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   217
withAllSubViewsDo:aBlock
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   218
    aBlock value:self.
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   219
    component notNil ifTrue:[
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   220
        component withAllSubViewsDo:aBlock
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   221
    ].
39e5e28042da protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   222
292
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   223
! !
60fbf13dfc8c prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   224
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   225
!Wrapper class methodsFor:'documentation'!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
version
2662
c8338281bc33 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2209
diff changeset
   228
    ^ '$Header: /cvs/stx/stx/libview2/Wrapper.st,v 1.13 2009-05-08 11:54:52 cg Exp $'
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
! !
3855
1db7742d33ad Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2662
diff changeset
   230