|
Class: VisualPart
Object
|
+--DisplayObject
|
+--VisualComponent
|
+--VisualPart
- Package:
- stx:libview2
- Category:
- Compatibility-ST80-Graphics-Display Objects
- Version:
- rev:
1.46
date: 2023/10/17 10:40:29
- user: matilk
- file: VisualPart.st directory: libview2
- module: stx stc-classLibrary: libview2
abstract superclass for all kinds of visual components, which
are containers for some other component.
This class and its subclasses (currently) exist mostly for
ST-80 compatibility - to provide a home for ported PD classes,
which depend on the VisualPart hierarchy.
Notice:
this class was implemented using protocol information
from alpha testers, from reading PD programs and
from the Hopkins/Horan book.
- it may not be complete or compatible to the corresponding ST-80 class.
If you encounter any incompatibilities, please forward a note
describing the incompatibility verbal (i.e. no code) to the ST/X team.
This is still being constructed - not yet finished.
see examples eg in RectangleMorph
copyrightCOPYRIGHT (c) 2002 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
beInvisible
-
-
beVisible
-
-
container
-
return my container
-
container: something
-
set container
-
drawableId
-
return the drawableId of where I am in
-
extent: newExtent
-
(comment from inherited method)
set my extent
-
graphicsContext
-
return the graphicsContext of where I am in
-
graphicsDevice
-
return the graphicsContext
-
name
-
-
name: something
-
-
origin: newOrigin
-
(comment from inherited method)
move my origin
-
topComponent
-
return the top component - typically the topView
-
view
-
return my view
accessing-channels
-
extentHolder
-
-
extentHolder: aValueHolder
-
-
heightHolder: aValueHolder
-
-
originHolder
-
-
originHolder: aValueHolder
-
-
visibilityChannel
-
self obsoleteMethodWarning.
-
visibilityChannel: something
-
self obsoleteMethodWarning.
-
visibilityHolder
-
-
visibilityHolder: aValueHolder
-
-
widthHolder: aValueHolder
-
-
xHolder: aValueHolder
-
-
yHolder: aValueHolder
-
accessing-color & font
-
backgroundColor
-
accessing-dimensions
-
bounds: newBounds
-
self assert:(newBounds left isInteger).
-
invalidateAfter: aBlock
-
perform aBlock, which may change my bounds.
Ensure that the affected region of the view is invalidated
(i.e. invalidate the union of the previous and the new bounds)
-
possiblyInvalidate
-
@Commented by cg at: 2022-01-12 18:26 Reason:
change & update
-
update: something with: aParameter from: changedObject
-
invalidate is always ok - however, it will redraw bg, fg and line
view protocol mimicri
-
bottomInset
-
-
computeBoundingBox
-
container notNil ifTrue:[
-
computeCorner
-
-
computeExtent
-
-
computeOrigin
-
-
containerChangedSize
-
my container changed its size.
The default here is to ignore this, but some wrappers like
to resize when this happens.
-
cornerRule
-
-
create
-
want myself to be created.
-
destroy
-
-
device
-
Please use graphicsDevice for ST80 compatibility.
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
extentRule
-
-
geometryLayout
-
-
geometryLayout: newLayoutOrNil
-
(comment from inherited method)
ignored here
-
invalidate
-
-
isComponentOf: aViewOrComponent
-
return true, if I am a (direct or indirect) component of aViewOrComponent
-
leftInset
-
-
originRelativeTo: aContainer
-
return the origin (in pixels) relative to a superView,
or relative to the rootView (if the aView argument is nil).
If the receiver is nonNil and not a subview of aView, return nil.
-
originRelativeToTopView
-
return the origin (in pixels) relative to my topView
-
originRule
-
-
realize
-
my container realized itself.
The default here is to ignore this, but some wrappers like
to do something when this happens.
-
realizeAllSubViews
-
realize all my subviews - but not myself.
-
relativeCorner
-
-
relativeExtent
-
-
relativeOrigin
-
-
rightInset
-
-
shown
-
-
subViewChangedSize
-
-
subViews
-
-
topInset
-
-
topView
-
return the topView - that's the one with no superview
-
windowGroup
-
-
withAllSubViewsDo: aBlock
-
|