class
GraphicBlock
: public
Interactor
(Return to index)
an
Interactor
that contains a
Picture
.
Type:
Instantiable
Base Classes:
public
Interactor
Derived Classes
Include file:
Unidraw/Graphic/grblock.h
Description:
man page
Public:
virtual void
Adjust
(
Perspective
&)
virtual void
Draw
()
virtual
Graphic
*
GetGraphic
()
virtual float
GetMagnification
()
GraphicBlock
(
Graphic
*, Coord pad = 0, Alignment = Center, Zooming = Continuous )
GraphicBlock
( const char*,
Graphic
*, Coord pad = 0, Alignment = Center, Zooming = Continuous )
virtual void
Highlight
(boolean)
virtual void
SetGraphic
(
Graphic
*)
virtual void
SetMagnification
(float)
virtual void
Update
()
virtual
~GraphicBlock
()
Protected:
void
Align
()
void
Fix
()
virtual void
GetGraphicBox
(Coord&, Coord&, Coord&, Coord&)
void
GrabScroll
(
Event
&)
void
Init
()
virtual float
LimitMagnification
(float)
float
NearestPow2
(float)
void
Normalize
(
Perspective
&)
void
RateScroll
(
Event
&)
virtual void
Redraw
(Coord, Coord, Coord, Coord)
virtual void
Resize
()
float
ScaleFactor
(
Perspective
&)
virtual void
Scroll
(
Perspective
&)
void
UpdatePerspective
()
virtual void
Zoom
(
Perspective
&)
Alignment
_align
Graphic
*
_graphic
boolean
_highlighted
float
_mag
Coord
_pad
Coord
_x0, _y0
Zooming
_zooming
(more documentation)