Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Determining zoomedness of the editor window

    To decide whether we are zoomed in:
        if the arbitrary scaling factor of the working window > 0.0000:
            decide yes;
        otherwise:
            decide no.
            
    To decide whether we are zoomed out:
        if the arbitrary scaling factor of the working window is 0.0000 and the scaling factor of the working window is greater than 1.0000 or the scaling factor of the working window is less than 1.0000:
            decide yes;
        otherwise:
            decide no.
            
    To decide whether zoom is available:
        if the arbitrary scaling factor of the working window is 0.0000 and the scaling factor of the working window is 1.0000:
            decide no;
        otherwise:
            decide yes.