previous chapter contents page top page next chapter

ShapeToolButton

inherits from ToolButton; 


Class Description

A shape tool button is a kind of tool button that know how to draw the shape it represents.

Programming information

Instantiate: sometimes
Subclass: rarely
Call its methods: rarely

Most of the methods of class ShapeToolButton merely allow the tool button to act as a proxy for the shape tool. They pass along all changes to the shape tool itself. You'll rarely need to call or override these methods.

Methods defined by class ShapeToolButton

Class ShapeToolButton defines the following methods:

Method Description
SetShapeFlags Pass the shape flag settings along to the shape tool itself
SetShapeType Pass the new shape type along to the shape tool itself
CalcOpaqueBox Overridden to call inherited if the button has an image; otherwise
returns an empty box
CanAcceptCoupon Overridden to accept shape coupons
Draw Overridden to draw the current shape of the shape tool associated with
the button
EachReference Overridden to make sure the tool is copied when the tool button is
SetLineStyle Overridden to pass the line style change along to the shape tool itself
SetPartColor Overridden to pass the color change along to the shape tool itself
Swallow Overridden to swallow shape morsels

Fields defined by class ShapeToolButton

Class ShapeToolButton defines the following fields:

Field Type Description
Inherited from SingleLinkable:
next Object Next item in view list
Inherited from Linkable:
previous Object Previous item in view list
Inherited from Viewable:
superview Viewable Container for this object
subview Viewable Object contained by this object
relativeOrigin Dot Origin relative to superview
contentSize Dot Size of content rectangle
viewFlags Unsigned Property settings
labelStyle TextStyle Text style of object's label
color Color Color of object's content
altColor Color Alternative object color
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from Stamp:
image Image Image used to draw stamp
Inherited from HasBorder
border Border The button's border
Inherited from ToolButton
tool ChooseableTool Tool linked to the button