#==============================================================================
# ** UCInputIcon
#------------------------------------------------------------------------------
#  Represents an input Icon user control on a window
#==============================================================================

class UCInputIcon < UCIcon
  
  #//////////////////////////////////////////////////////////////////////////
  # * Public Methods
  #//////////////////////////////////////////////////////////////////////////
  
  #--------------------------------------------------------------------------
  # * Draw the icon on the window
  #--------------------------------------------------------------------------
  def draw()
    if self.iconIndex != nil
      bitmap = Cache.system("InputIconSet")
      @cIcon.img_bitmap = bitmap
      @cIcon.src_rect = Rect.new(self.iconIndex % 16 * 24, self.iconIndex / 16 * 24, 
                        24, 24)
      @cIcon.draw()
    end
  end
  
end
