/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    Icon.ShadeGroup.c
    Author:  Copyright  1994 Tim Browse
    Version: 1.00 (05 Mar 1994)
    Purpose: Shade/unshade a group of icons, specified by an array of 
             icon handles (-1 terminated).
*/

#include "Desk.Wimp.h"
#include "Desk.WimpSWIs.h"
#include "Desk.Icon.h"


extern void Desk_Icon_ShadeGroup(Desk_window_handle window, 
                            Desk_icon_handle icons[],
                            Desk_bool Desk_fade_flag_value)
{
  int i = 0;

  while (icons[i] != -1)
  {
    if (Desk_fade_flag_value)
      Desk_Icon_Shade(window, icons[i]);
    else
      Desk_Icon_Unshade(window, icons[i]);

    i++;
  }
}
