VisualPart.st
author Claus Gittinger <cg@exept.de>
Thu, 09 May 1996 10:43:59 +0200
changeset 254 1286cec58b5d
parent 249 38827944ca9c
child 265 45c83acd7562
permissions -rw-r--r--
doku
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
249
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
VisualComponent subclass:#VisualPart
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
	instanceVariableNames:'container'
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	classVariableNames:''
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	poolDictionaries:''
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	category:'Graphics-Display Objects'
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
!
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
!VisualPart methodsFor:'accessing'!
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
container
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
    "return container"
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
    ^ container
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
    "Created: 9.5.1996 / 00:31:41 / cg"
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
!
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
container:something
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
    "set container"
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
    container := something.
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
    "Created: 9.5.1996 / 00:31:41 / cg"
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
graphicsContext
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
    "return the graphicsContext"
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
254
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    30
    ^ container graphicsContext
249
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
    "Created: 9.5.1996 / 00:32:12 / cg"
254
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    33
    "Modified: 9.5.1996 / 01:37:10 / cg"
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    34
!
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    35
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    36
graphicsDevice
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    37
    "return the graphicsContext"
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    38
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    39
    ^ container graphicsDevice
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    40
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    41
    "Created: 9.5.1996 / 00:32:12 / cg"
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    42
    "Modified: 9.5.1996 / 01:37:03 / cg"
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    43
!
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    44
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    45
topComponent
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    46
    "return the top component - typically the topView"
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    47
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    48
    ^ container topComponent
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    49
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    50
    "Modified: 9.5.1996 / 01:37:10 / cg"
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    51
    "Created: 9.5.1996 / 01:39:15 / cg"
249
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
! !
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
!VisualPart class methodsFor:'documentation'!
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
version
254
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    57
    ^ '$Header: /cvs/stx/stx/libview2/VisualPart.st,v 1.2 1996-05-09 08:43:43 cg Exp $'
249
38827944ca9c intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !