Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Dynamic drawing classes
    [The subsections that follow are all repetitive code that would not be necessary if Inform had multiple inheritance.]

    A g-primitive is a kind of value. The g-primitives are rectangle, box, stroked rectangle, line.

    A g-string is a kind of value. The g-strings are bitmap string, and image string.

    Table of Primitive Types
    g-primitive  mother-element  
    rectangle  mother-rectangle  
    box  mother-box  
    stroked rectangle  mother-stroked-rectangle  
    line  mother-line  


    Table of String Types
    g-string  mother-element  
    bitmap string  mother-bitmap-string  
    image string  mother-image-string  


    To decide which g-element is the progenitor of (G - a g-primitive):
        if there is a g-primitive of G in the Table of Primitive Types:
            decide on the mother-element corresponding to a g-primitive of G in the Table of Primitive Types.
            
    To decide which g-element is the progenitor of (G - a g-string):
        if there is a g-string of G in the Table of String Types:
            decide on the mother-element corresponding to a g-string of G in the Table of String Types.