Flexible Windows

version 13/130803 by Jon Ingold

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Some useful little functions

    To decide which number is the measure of (g - a g-window):
        if the position of g is at least g-placeabove, decide on the height of g;
        decide on the width of g.

    To decide which number is the width of (g - a g-window):
    (- WindowSize({g}, 0) -).

    To decide which number is the height of (g - a g-window):
    (- WindowSize({g}, 1) -).

    Include (-

    [ WindowSize g index result;
        if (g hasnt g_present) return 0;
        result = glk_window_get_size(g.ref_number, gg_arguments, gg_arguments+WORDSIZE);
    return gg_arguments-->index;
    ];

    -)