def Set(self, stc, line, delete=False):
     """Add/Delete the marker to the stc at the given line"""
     for marker in self.GetIds():
         if delete:
             mask = stc.MarkerGet(line)
             if (1<<marker & mask):
                 stc.MarkerDelete(line, marker)
         else:
             handle = stc.MarkerAdd(line, marker)
             if self.Handle < 0:
                 self.Line = line
                 self.Handle = handle
 def IsSet(cls, stc, line):
     """Is the marker set on the given line"""
     mask = stc.MarkerGet(line)
     return True in [ bool(1<<marker & mask) for marker in cls.GetIds() ]