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

BrushVarView, CompNameVarView, FileNameVarView, FontVarView, GravityVarView, MagnifVarView,

Description

       Unidraw predefines several state variable  view  subclasses  for  the  the  state  variable  subjects  it
       predefines, as described below.

Name

       BrushVarView,    CompNameVarView,    FileNameVarView,    FontVarView,    GravityVarView,   MagnifVarView,
       ModifStatusVarView, NameVarView, PatternVarView - various state variable view subclasses

Public Operations

BrushVarView(BrushVar*,ColorVar*=nil)FontVarView(FontVar*,Alignment=Center)PatternVarView(PatternVar*,ColorVar*=nil)
              Views  of graphics state state variable subjects.  BrushVarView displays a short line drawn in the
              subject's brush and in a color specified by the given ColorVar (black if no ColorVar is supplied).
              The  BrushVarView  displays  ``None''  if  the  BrushVar's   brush   is   invisible.    Similarly,
              PatternVarView displays a filled rectangle drawn in the subject's pattern and in a color specified
              by the given ColorVar (black if no ColorVar is supplied).  The PatternVarView displays ``None'' if
              the  PatternVar's  pattern  is  invisible.   FontVarView  displays the name of its subject's font,
              aligned as specified in its canvas.

       GravityVarView(GravityVar*,Alignment=Center)
              Displays either ``gravity on'' or a blank, depending on whether the subject indicates that gravity
              is on or not.

       MagnifVarView(MagnifVar*,Alignment=Center)
              Displays ``mag xx'', where x is the current modification factor recorded in the subject.

       ModifStateVarView(ModifStateVar*,Alignment=Center)
              Displays either an asterisk or a  blank,  depending  on  whether  the  subject  records  that  its
              component is modified.

       NameVarView(NameVar*,Alignment=Center,constchar*sample=nil)FileNameVarView(NameVar*,Alignment=Center,booleanrelative=true,constchar*sample=nil)CompNameVarView(CompNameVarView*,Alignment=Center,booleanrelative=true,constchar*sample=nil)
              Display  the  subject's  string aligned as specified with respect to the canvas.  Each constructor
              takes an optional sample string that defines the view's natural size.  FileNameVarView provides  a
              specialized  view  of  a  NameVar  for  displaying  file  names.   It adds a relative argument for
              displaying the file name either as a relative or  full  path.   CompNameVarView  provides  similar
              functionality  for  CompNameVar  subjects,  except it precedes its subject's component's name with
              ``[part of]'' for components that have a named parent but that are not named themselves.

See Also

statevars(3U), StateVarView(3U)

Unidraw                                           6 August 1990                                   stateviews(3U)

Synopsis

#include<Unidraw/stateviews.h>

See Also