Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Relating elements directly to windows

    Assignedness relates a g-element (called A) to a g-window (called B) when the associated canvas of B is the associated canvas of A. The verb to be assigned to implies the assignedness relation.

    To assign (element - a g-element) to (win - a g-window):
        now the associated canvas of the element is the associated canvas of win.

    To decide which g-window is the assigned window of (element - a g-element):
        repeat with win running through graphics g-windows:
            if element is assigned to win, decide on win.