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

ColorData, GSData, MobilityData, MoveData, VoidData - Data subclasses for storing common undo information

Colordata Public Operations

ColorData(PSColor*,PSColor*)
              Create a ColorData instance, supplying the PSColor objects it stores.

Description

       The  Unidraw  library  predefines  several Data subclasses for storing common undo information: ColorData
       stores two PSColors (usually representing foreground  and  background  colors),  while  GSData  stores  a
       complete  set  of  graphics state in a FullGraphic object.  MobilityData stores the mobility and graphics
       state information needed to undo a  change  in  mobility.  MoveData  stores  a  horizontal  and  vertical
       distance.  VoidData stores a void pointer as a useful alternative to deriving trivially from Data just to
       store one word of information.

Gsdata Public Operations

GSData(Graphic*)
              Create  a  GSData  instance,  supplying  the  Graphic  object from which to copy a complete set of
              graphics state.  The GSData constructor copies this information into its _gs member,  from  whence
              it can be retrieved later.

Mobilitydata Public Operations

MobilityData(Mobility,Graphic*)
              Create  a  MobilityData instance, supplying the mobility and a Graphic object from which to copy a
              complete set of graphics state.  The MobilityData constructor copies  the  graphic  into  its  _gs
              member, from whence it can be retrieved later.

Movedata Public Operations

MoveData(float,float)
              Create  a  MoveData  instance,  supplying  two  floating  point  numbers  that  normally represent
              horizontal and vertical movement.

Name

       ColorData, GSData, MobilityData, MoveData, VoidData - Data subclasses for storing common undo information

See Also

Data(3U), Graphic(3U), globals(3U)

Unidraw                                          24 January 1991                                       datas(3U)

Synopsis

#include<Unidraw/Commands/datas.h>

Voiddata Public Operations

VoidData(void*)
              Create a VoidData instance, supplying a pointer to an object of unknown type.

See Also