logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Description

       CGlue  defines a natural size, elasticity (its rate of stretching and shrinking relative to other CGlue),
       and deformation limits (total amount it can stretch and shrink)  in  both  the  horizontal  and  vertical
       dimensions.   CGlue  can  be  interposed  between  two connected connectors to augment their connectivity
       semantics; it acts like  two  non-linear  springs,  one  horizontal  and  one  vertical,  connecting  the
       connectors' centers.

Name

       CGlue - connector glue

Public Operations

CGlue(floathnat=0,floatvnat=0,floathshr=0,floathstr=0,floatvshr=0,floatvstr=0,floathshrlim=0,floathstrlim=0,floatvshrlim=0,floatvstrlim=0)CGlue(constShape&)
              Instantiate  CGlue,  providing  the requisite parameters explicitly or inferring them from a Shape
              object.  If a shape is supplied, then the CGlue adopts the shape's natural size,  and  it  assigns
              the  shape's stretchability and shrinkability values to its corresponding CGlue elasticity members
              to obtain a proportionately equivalent elasticity.  It also assigns the shape's stretchability and
              shrinkability values to its deformation limit members.  The parameters are described below:

              hnat,vnat: horizontal and vertical natural sizes, screen units

              hshr,vshr: horizontal and vertical shrinking rate, constant units

              hstr,vstr: horizontal and vertical stretching rate, constant units

              hshrlim,vshrlim: horizontal and vertical shrink limit, screen units

              hstrlim,vstrlim: horizontal and vertical stretch limit, screen units

       CGlue*Copy()
              Create a copy of this CGlue instance.

       voidRigid()
              Set all elasticity and deformation limits equal to zero.

       voidInterpose(constCGlue*glue)
              Change this instance's attributes to reflect the series combination of this and glue.

See Also

Connector(3U), Shape(3I)

Unidraw                                         23 November 1990                                       CGlue(3U)

Synopsis

#include<Unidraw/cglue.h>

See Also